aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/initializers/checker-before-init.ts3
-rw-r--r--server/initializers/config.ts4
-rw-r--r--server/initializers/constants.ts4
3 files changed, 7 insertions, 4 deletions
diff --git a/server/initializers/checker-before-init.ts b/server/initializers/checker-before-init.ts
index d9d90d4b4..fe7006083 100644
--- a/server/initializers/checker-before-init.ts
+++ b/server/initializers/checker-before-init.ts
@@ -49,7 +49,8 @@ function checkMissedConfig () {
49 'search.remote_uri.users', 'search.remote_uri.anonymous', 'search.search_index.enabled', 'search.search_index.url', 49 'search.remote_uri.users', 'search.remote_uri.anonymous', 'search.search_index.enabled', 'search.search_index.url',
50 'search.search_index.disable_local_search', 'search.search_index.is_default_search', 50 'search.search_index.disable_local_search', 'search.search_index.is_default_search',
51 'live.enabled', 'live.allow_replay', 'live.max_duration', 'live.max_user_lives', 'live.max_instance_lives', 51 'live.enabled', 'live.allow_replay', 'live.max_duration', 'live.max_user_lives', 'live.max_instance_lives',
52 'live.rtmp.enabled', 'live.rtmp.port', 'live.rtmps.enabled', 'live.rtmps.port', 'live.rtmps.key_file', 'live.rtmps.cert_file', 52 'live.rtmp.enabled', 'live.rtmp.port', 'live.rtmp.hostname',
53 'live.rtmps.enabled', 'live.rtmps.port', 'live.rtmps.hostname', 'live.rtmps.key_file', 'live.rtmps.cert_file',
53 'live.transcoding.enabled', 'live.transcoding.threads', 'live.transcoding.profile', 54 'live.transcoding.enabled', 'live.transcoding.threads', 'live.transcoding.profile',
54 'live.transcoding.resolutions.144p', 'live.transcoding.resolutions.240p', 'live.transcoding.resolutions.360p', 55 'live.transcoding.resolutions.144p', 'live.transcoding.resolutions.240p', 'live.transcoding.resolutions.360p',
55 'live.transcoding.resolutions.480p', 'live.transcoding.resolutions.720p', 'live.transcoding.resolutions.1080p', 56 'live.transcoding.resolutions.480p', 'live.transcoding.resolutions.720p', 'live.transcoding.resolutions.1080p',
diff --git a/server/initializers/config.ts b/server/initializers/config.ts
index c1b82d12f..63056b41d 100644
--- a/server/initializers/config.ts
+++ b/server/initializers/config.ts
@@ -297,12 +297,14 @@ const CONFIG = {
297 297
298 RTMP: { 298 RTMP: {
299 get ENABLED () { return config.get<boolean>('live.rtmp.enabled') }, 299 get ENABLED () { return config.get<boolean>('live.rtmp.enabled') },
300 get PORT () { return config.get<number>('live.rtmp.port') } 300 get PORT () { return config.get<number>('live.rtmp.port') },
301 get HOSTNAME () { return config.get<number>('live.rtmp.hostname') }
301 }, 302 },
302 303
303 RTMPS: { 304 RTMPS: {
304 get ENABLED () { return config.get<boolean>('live.rtmps.enabled') }, 305 get ENABLED () { return config.get<boolean>('live.rtmps.enabled') },
305 get PORT () { return config.get<number>('live.rtmps.port') }, 306 get PORT () { return config.get<number>('live.rtmps.port') },
307 get HOSTNAME () { return config.get<number>('live.rtmps.hostname') },
306 get KEY_FILE () { return config.get<string>('live.rtmps.key_file') }, 308 get KEY_FILE () { return config.get<string>('live.rtmps.key_file') },
307 get CERT_FILE () { return config.get<string>('live.rtmps.cert_file') } 309 get CERT_FILE () { return config.get<string>('live.rtmps.cert_file') }
308 }, 310 },
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 () {