aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-05-02 14:32:12 +0200
committerChocobozzz <me@florianbigard.com>2022-05-02 14:32:12 +0200
commitcfbe6be516808de4b45ca9d98f912999ef8daaab (patch)
treef458df7621833582ccd350a00c5c0404fe782a88 /server/initializers/constants.ts
parent42efd780a2db0925b6befd308bd8fc6590117546 (diff)
downloadPeerTube-cfbe6be516808de4b45ca9d98f912999ef8daaab.tar.gz
PeerTube-cfbe6be516808de4b45ca9d98f912999ef8daaab.tar.zst
PeerTube-cfbe6be516808de4b45ca9d98f912999ef8daaab.zip
Add ability to provide rtmp listening hostname
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 4656ccdbc..9986dbf89 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -1074,8 +1074,11 @@ function updateWebserverUrls () {
1074 WEBSERVER.HOSTNAME = CONFIG.WEBSERVER.HOSTNAME 1074 WEBSERVER.HOSTNAME = CONFIG.WEBSERVER.HOSTNAME
1075 WEBSERVER.PORT = CONFIG.WEBSERVER.PORT 1075 WEBSERVER.PORT = CONFIG.WEBSERVER.PORT
1076 1076
1077 WEBSERVER.RTMP_URL = 'rtmp://' + CONFIG.LIVE.RTMP.HOSTNAME + ':' + CONFIG.LIVE.RTMP.PORT + '/' + VIDEO_LIVE.RTMP.BASE_PATH 1077 const rtmpHostname = CONFIG.LIVE.RTMP.PUBLIC_HOSTNAME || CONFIG.WEBSERVER.HOSTNAME
1078 WEBSERVER.RTMPS_URL = 'rtmps://' + CONFIG.LIVE.RTMPS.HOSTNAME + ':' + CONFIG.LIVE.RTMPS.PORT + '/' + VIDEO_LIVE.RTMP.BASE_PATH 1078 const rtmpsHostname = CONFIG.LIVE.RTMPS.PUBLIC_HOSTNAME || CONFIG.WEBSERVER.HOSTNAME
1079
1080 WEBSERVER.RTMP_URL = 'rtmp://' + rtmpHostname + ':' + CONFIG.LIVE.RTMP.PORT + '/' + VIDEO_LIVE.RTMP.BASE_PATH
1081 WEBSERVER.RTMPS_URL = 'rtmps://' + rtmpsHostname + ':' + CONFIG.LIVE.RTMPS.PORT + '/' + VIDEO_LIVE.RTMP.BASE_PATH
1079} 1082}
1080 1083
1081function updateWebserverConfig () { 1084function updateWebserverConfig () {