diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-16 09:12:50 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-16 09:12:50 +0200 |
commit | 287057050526e1f474c4f4d5d9a7ef3b7c677f2f (patch) | |
tree | 09fc9e4879617973b78534252ab601f4aeb9a242 /server/initializers | |
parent | b30ad9888f54e6b55f3b6ca6e73534227d4d401e (diff) | |
download | PeerTube-287057050526e1f474c4f4d5d9a7ef3b7c677f2f.tar.gz PeerTube-287057050526e1f474c4f4d5d9a7ef3b7c677f2f.tar.zst PeerTube-287057050526e1f474c4f4d5d9a7ef3b7c677f2f.zip |
Provide public RTMP URL to runners
Diffstat (limited to 'server/initializers')
-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 () { |