From 2ee09f9697d1fea7b85a8df3bfc2033bf7c7c17f Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sun, 25 Oct 2020 22:17:56 -0700 Subject: [PATCH] Add stream key to config admin api --- controllers/admin/serverConfig.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/admin/serverConfig.go b/controllers/admin/serverConfig.go index 166ea4a5a..724eb037a 100644 --- a/controllers/admin/serverConfig.go +++ b/controllers/admin/serverConfig.go @@ -12,6 +12,7 @@ func GetServerConfig(w http.ResponseWriter, r *http.Request) { response := serverConfigAdminResponse{ InstanceDetails: config.Config.InstanceDetails, FFmpegPath: config.Config.GetFFMpegPath(), + StreamKey: config.Config.VideoSettings.StreamingKey, WebServerPort: config.Config.GetPublicWebServerPort(), VideoSettings: videoSettings{ VideoQualityVariants: config.Config.GetVideoStreamQualities(), @@ -29,6 +30,7 @@ func GetServerConfig(w http.ResponseWriter, r *http.Request) { type serverConfigAdminResponse struct { InstanceDetails config.InstanceDetails `json:"instanceDetails"` FFmpegPath string `json:"ffmpegPath"` + StreamKey string `json:"streamKey"` WebServerPort int `json:"webServerPort"` S3 config.S3 `json:"s3"` VideoSettings videoSettings `json:"videoSettings"`