diff options
author | kontrollanten <6680299+kontrollanten@users.noreply.github.com> | 2022-03-01 13:37:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 13:37:34 +0100 |
commit | 8d07888728bc5aabc7d0cd6211bc49fc45fd0353 (patch) | |
tree | 11b25f2a922f53d5c7f2273ebe5a56afaff96cd3 /server/initializers/config.ts | |
parent | b5c00b9b67efee77a3476f31403e196fedfc7c99 (diff) | |
download | PeerTube-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/config.ts')
-rw-r--r-- | server/initializers/config.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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 | }, |