aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorkontrollanten <6680299+kontrollanten@users.noreply.github.com>2022-03-01 13:37:34 +0100
committerGitHub <noreply@github.com>2022-03-01 13:37:34 +0100
commit8d07888728bc5aabc7d0cd6211bc49fc45fd0353 (patch)
tree11b25f2a922f53d5c7f2273ebe5a56afaff96cd3 /server/initializers/constants.ts
parentb5c00b9b67efee77a3476f31403e196fedfc7c99 (diff)
downloadPeerTube-8d07888728bc5aabc7d0cd6211bc49fc45fd0353.tar.gz
PeerTube-8d07888728bc5aabc7d0cd6211bc49fc45fd0353.tar.zst
PeerTube-8d07888728bc5aabc7d0cd6211bc49fc45fd0353.zip
Possibility to set custom RTMP/RTMPS hostname (#4811)
* live: set custom RTMP/RTMPS hostname closes #4786 * dont use webserver.hostname as default * check that rtmp/s.hostname is set
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 2367e7689..3069e2353 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -1046,8 +1046,8 @@ function updateWebserverUrls () {
1046 WEBSERVER.HOSTNAME = CONFIG.WEBSERVER.HOSTNAME 1046 WEBSERVER.HOSTNAME = CONFIG.WEBSERVER.HOSTNAME
1047 WEBSERVER.PORT = CONFIG.WEBSERVER.PORT 1047 WEBSERVER.PORT = CONFIG.WEBSERVER.PORT
1048 1048
1049 WEBSERVER.RTMP_URL = 'rtmp://' + CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.LIVE.RTMP.PORT + '/' + VIDEO_LIVE.RTMP.BASE_PATH 1049 WEBSERVER.RTMP_URL = 'rtmp://' + CONFIG.LIVE.RTMP.HOSTNAME + ':' + CONFIG.LIVE.RTMP.PORT + '/' + VIDEO_LIVE.RTMP.BASE_PATH
1050 WEBSERVER.RTMPS_URL = 'rtmps://' + CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.LIVE.RTMPS.PORT + '/' + VIDEO_LIVE.RTMP.BASE_PATH 1050 WEBSERVER.RTMPS_URL = 'rtmps://' + CONFIG.LIVE.RTMPS.HOSTNAME + ':' + CONFIG.LIVE.RTMPS.PORT + '/' + VIDEO_LIVE.RTMP.BASE_PATH
1051} 1051}
1052 1052
1053function updateWebserverConfig () { 1053function updateWebserverConfig () {