diff options
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 1dfc9fb27..46455dd5b 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -55,8 +55,12 @@ const WEBSERVER = { | |||
55 | WS: '', | 55 | WS: '', |
56 | HOSTNAME: '', | 56 | HOSTNAME: '', |
57 | PORT: 0, | 57 | PORT: 0, |
58 | |||
58 | RTMP_URL: '', | 59 | RTMP_URL: '', |
59 | RTMPS_URL: '' | 60 | RTMPS_URL: '', |
61 | |||
62 | RTMP_BASE_LIVE_URL: '', | ||
63 | RTMPS_BASE_LIVE_URL: '' | ||
60 | } | 64 | } |
61 | 65 | ||
62 | // Sortable columns per schema | 66 | // Sortable columns per schema |
@@ -1242,8 +1246,11 @@ function updateWebserverUrls () { | |||
1242 | const rtmpHostname = CONFIG.LIVE.RTMP.PUBLIC_HOSTNAME || CONFIG.WEBSERVER.HOSTNAME | 1246 | const rtmpHostname = CONFIG.LIVE.RTMP.PUBLIC_HOSTNAME || CONFIG.WEBSERVER.HOSTNAME |
1243 | const rtmpsHostname = CONFIG.LIVE.RTMPS.PUBLIC_HOSTNAME || CONFIG.WEBSERVER.HOSTNAME | 1247 | const rtmpsHostname = CONFIG.LIVE.RTMPS.PUBLIC_HOSTNAME || CONFIG.WEBSERVER.HOSTNAME |
1244 | 1248 | ||
1245 | WEBSERVER.RTMP_URL = 'rtmp://' + rtmpHostname + ':' + CONFIG.LIVE.RTMP.PORT + '/' + VIDEO_LIVE.RTMP.BASE_PATH | 1249 | WEBSERVER.RTMP_URL = 'rtmp://' + rtmpHostname + ':' + CONFIG.LIVE.RTMP.PORT |
1246 | WEBSERVER.RTMPS_URL = 'rtmps://' + rtmpsHostname + ':' + CONFIG.LIVE.RTMPS.PORT + '/' + VIDEO_LIVE.RTMP.BASE_PATH | 1250 | WEBSERVER.RTMPS_URL = 'rtmps://' + rtmpsHostname + ':' + CONFIG.LIVE.RTMPS.PORT |
1251 | |||
1252 | WEBSERVER.RTMP_BASE_LIVE_URL = WEBSERVER.RTMP_URL + '/' + VIDEO_LIVE.RTMP.BASE_PATH | ||
1253 | WEBSERVER.RTMPS_BASE_LIVE_URL = WEBSERVER.RTMPS_URL + '/' + VIDEO_LIVE.RTMP.BASE_PATH | ||
1247 | } | 1254 | } |
1248 | 1255 | ||
1249 | function updateWebserverConfig () { | 1256 | function updateWebserverConfig () { |