diff options
author | Chocobozzz <me@florianbigard.com> | 2022-05-02 14:32:12 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-05-02 14:32:12 +0200 |
commit | cfbe6be516808de4b45ca9d98f912999ef8daaab (patch) | |
tree | f458df7621833582ccd350a00c5c0404fe782a88 /server/initializers/config.ts | |
parent | 42efd780a2db0925b6befd308bd8fc6590117546 (diff) | |
download | PeerTube-cfbe6be516808de4b45ca9d98f912999ef8daaab.tar.gz PeerTube-cfbe6be516808de4b45ca9d98f912999ef8daaab.tar.zst PeerTube-cfbe6be516808de4b45ca9d98f912999ef8daaab.zip |
Add ability to provide rtmp listening hostname
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 d8f5f3496..59a65d6a5 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts | |||
@@ -313,13 +313,15 @@ const CONFIG = { | |||
313 | RTMP: { | 313 | RTMP: { |
314 | get ENABLED () { return config.get<boolean>('live.rtmp.enabled') }, | 314 | get ENABLED () { return config.get<boolean>('live.rtmp.enabled') }, |
315 | get PORT () { return config.get<number>('live.rtmp.port') }, | 315 | get PORT () { return config.get<number>('live.rtmp.port') }, |
316 | get HOSTNAME () { return config.get<number>('live.rtmp.hostname') } | 316 | get HOSTNAME () { return config.get<number>('live.rtmp.hostname') }, |
317 | get PUBLIC_HOSTNAME () { return config.get<number>('live.rtmp.public_hostname') } | ||
317 | }, | 318 | }, |
318 | 319 | ||
319 | RTMPS: { | 320 | RTMPS: { |
320 | get ENABLED () { return config.get<boolean>('live.rtmps.enabled') }, | 321 | get ENABLED () { return config.get<boolean>('live.rtmps.enabled') }, |
321 | get PORT () { return config.get<number>('live.rtmps.port') }, | 322 | get PORT () { return config.get<number>('live.rtmps.port') }, |
322 | get HOSTNAME () { return config.get<number>('live.rtmps.hostname') }, | 323 | get HOSTNAME () { return config.get<number>('live.rtmps.hostname') }, |
324 | get PUBLIC_HOSTNAME () { return config.get<number>('live.rtmps.public_hostname') }, | ||
323 | get KEY_FILE () { return config.get<string>('live.rtmps.key_file') }, | 325 | get KEY_FILE () { return config.get<string>('live.rtmps.key_file') }, |
324 | get CERT_FILE () { return config.get<string>('live.rtmps.cert_file') } | 326 | get CERT_FILE () { return config.get<string>('live.rtmps.cert_file') } |
325 | }, | 327 | }, |