From 1ff70c13c5ffc4e04f74a87ed00f509d4ba88d1a Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 21 Dec 2020 22:20:27 -0800 Subject: [PATCH] Surface RTMP server port in admin. For #475 --- controllers/admin/serverConfig.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/admin/serverConfig.go b/controllers/admin/serverConfig.go index 89f5d80d8..80713d0a4 100644 --- a/controllers/admin/serverConfig.go +++ b/controllers/admin/serverConfig.go @@ -26,6 +26,7 @@ func GetServerConfig(w http.ResponseWriter, r *http.Request) { FFmpegPath: config.Config.GetFFMpegPath(), StreamKey: config.Config.VideoSettings.StreamingKey, WebServerPort: config.Config.GetPublicWebServerPort(), + RTMPServerPort: config.Config.GetRTMPServerPort(), VideoSettings: videoSettings{ VideoQualityVariants: videoQualityVariants, SegmentLengthSeconds: config.Config.GetVideoSegmentSecondsLength(), @@ -47,6 +48,7 @@ type serverConfigAdminResponse struct { FFmpegPath string `json:"ffmpegPath"` StreamKey string `json:"streamKey"` WebServerPort int `json:"webServerPort"` + RTMPServerPort int `json:"rtmpServerPort"` S3 config.S3 `json:"s3"` VideoSettings videoSettings `json:"videoSettings"` YP config.YP `json:"yp"`