web: provide bosh URL as relative only if flagged (#1682)
This commit is contained in:
committed by
GitHub
parent
60100d6ce2
commit
11cbfccd8b
@@ -19,6 +19,7 @@ services:
|
|||||||
- AUDIO_QUALITY_OPUS_BITRATE
|
- AUDIO_QUALITY_OPUS_BITRATE
|
||||||
- AUTO_CAPTION_ON_RECORD
|
- AUTO_CAPTION_ON_RECORD
|
||||||
- BRANDING_DATA_URL
|
- BRANDING_DATA_URL
|
||||||
|
- BOSH_RELATIVE
|
||||||
- CALLSTATS_CUSTOM_SCRIPT_URL
|
- CALLSTATS_CUSTOM_SCRIPT_URL
|
||||||
- CALLSTATS_ID
|
- CALLSTATS_ID
|
||||||
- CALLSTATS_SECRET
|
- CALLSTATS_SECRET
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{ $BOSH_RELATIVE := .Env.BOSH_RELATIVE | default "false" | toBool -}}
|
||||||
{{ $CONFIG_EXTERNAL_CONNECT := .Env.CONFIG_EXTERNAL_CONNECT | default "false" | toBool -}}
|
{{ $CONFIG_EXTERNAL_CONNECT := .Env.CONFIG_EXTERNAL_CONNECT | default "false" | toBool -}}
|
||||||
{{ $ENABLE_AUTH := .Env.ENABLE_AUTH | default "false" | toBool -}}
|
{{ $ENABLE_AUTH := .Env.ENABLE_AUTH | default "false" | toBool -}}
|
||||||
{{ $ENABLE_AUTH_DOMAIN := .Env.ENABLE_AUTH_DOMAIN | default "true" | toBool -}}
|
{{ $ENABLE_AUTH_DOMAIN := .Env.ENABLE_AUTH_DOMAIN | default "true" | toBool -}}
|
||||||
@@ -44,7 +45,19 @@ config.hosts.authdomain = '{{ $XMPP_DOMAIN }}';
|
|||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
{{ if $BOSH_RELATIVE -}}
|
||||||
|
{{ if $ENABLE_SUBDOMAINS -}}
|
||||||
|
config.bosh = '/'+ subdir + 'http-bind';
|
||||||
|
{{ else -}}
|
||||||
config.bosh = '/http-bind';
|
config.bosh = '/http-bind';
|
||||||
|
{{ end -}}
|
||||||
|
{{ else -}}
|
||||||
|
{{ if $ENABLE_SUBDOMAINS -}}
|
||||||
|
config.bosh = 'https://{{ $PUBLIC_URL_DOMAIN}}/' + subdir + 'http-bind';
|
||||||
|
{{ else -}}
|
||||||
|
config.bosh = 'https://{{ $PUBLIC_URL_DOMAIN}}/http-bind';
|
||||||
|
{{ end -}}
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
{{ if $ENABLE_XMPP_WEBSOCKET -}}
|
{{ if $ENABLE_XMPP_WEBSOCKET -}}
|
||||||
{{ if $ENABLE_SUBDOMAINS -}}
|
{{ if $ENABLE_SUBDOMAINS -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user