Show YP configuration in the config API

This commit is contained in:
Gabe Kangas
2020-10-07 22:42:14 -07:00
parent 268085e41f
commit aac7fa2476
3 changed files with 23 additions and 6 deletions

View File

@ -18,6 +18,7 @@ func GetServerConfig(w http.ResponseWriter, r *http.Request) {
SegmentLengthSeconds: config.Config.GetVideoSegmentSecondsLength(),
NumberOfPlaylistItems: config.Config.GetMaxNumberOfReferencedSegmentsInPlaylist(),
},
YP: config.Config.YP,
S3: config.Config.S3,
}
@ -31,6 +32,7 @@ type serverConfigAdminResponse struct {
WebServerPort int `json:"webServerPort"`
S3 config.S3 `json:"s3"`
VideoSettings videoSettings `json:"videoSettings"`
YP config.YP `json:"yp"`
}
type videoSettings struct {