|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
{{ $CONFIG_EXTERNAL_CONNECT := .Env.CONFIG_EXTERNAL_CONNECT | default "false" | toBool -}} |
|
|
|
|
{{ $ENABLE_AUTH := .Env.ENABLE_AUTH | default "false" | toBool -}} |
|
|
|
|
{{ $ENABLE_AUTH_DOMAIN := .Env.ENABLE_AUTH_DOMAIN | default "true" | toBool -}} |
|
|
|
|
{{ $ENABLE_GUESTS := .Env.ENABLE_GUESTS | default "false" | toBool -}} |
|
|
|
|
{{ $ENABLE_SUBDOMAINS := .Env.ENABLE_SUBDOMAINS | default "true" | toBool -}} |
|
|
|
|
{{ $ENABLE_XMPP_WEBSOCKET := .Env.ENABLE_XMPP_WEBSOCKET | default "1" | toBool -}} |
|
|
|
@ -37,9 +38,11 @@ config.hosts.muc = '{{ $XMPP_MUC_DOMAIN }}'; |
|
|
|
|
// When using authentication, domain for guest users.
|
|
|
|
|
config.hosts.anonymousdomain = '{{ $XMPP_GUEST_DOMAIN }}'; |
|
|
|
|
{{ end -}} |
|
|
|
|
{{ if $ENABLE_AUTH_DOMAIN -}} |
|
|
|
|
// Domain for authenticated users. Defaults to <domain>.
|
|
|
|
|
config.hosts.authdomain = '{{ $XMPP_DOMAIN }}'; |
|
|
|
|
{{ end -}} |
|
|
|
|
{{ end -}} |
|
|
|
|
|
|
|
|
|
config.bosh = '/http-bind'; |
|
|
|
|
|
|
|
|
|