|
|
|
@ -1,11 +1,11 @@ |
|
|
|
|
admins = { "{{ .Env.JICOFO_AUTH_USER }}@{{ .Env.XMPP_AUTH_DOMAIN }}" } |
|
|
|
|
plugin_paths = { "/prosody-plugins/", "/prosody-plugins-custom" } |
|
|
|
|
http_default_host = "{{ .Env.XMPP_DOMAIN }}" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ $ENABLE_AUTH := .Env.ENABLE_AUTH | default "0" | toBool }} |
|
|
|
|
{{ $AUTH_TYPE := .Env.AUTH_TYPE | default "internal" }} |
|
|
|
|
{{ $JWT_ASAP_KEYSERVER := .Env.JWT_ASAP_KEYSERVER | default "" }} |
|
|
|
|
{{ $JWT_ALL_EMPTY := .Env.JWT_ALLOW_EMPTY | default "0" | toBool }} |
|
|
|
|
{{ $JWT_ALLOW_EMPTY := .Env.JWT_ALLOW_EMPTY | default "0" | toBool }} |
|
|
|
|
{{ $JWT_AUTH_TYPE := .Env.JWT_AUTH_TYPE | default "token" }} |
|
|
|
|
{{ $JWT_TOKEN_AUTH_MODULE := .Env.JWT_TOKEN_AUTH_MODULE | default "token_verification" }} |
|
|
|
|
|
|
|
|
@ -23,7 +23,7 @@ VirtualHost "{{ .Env.XMPP_DOMAIN }}" |
|
|
|
|
authentication = "{{ $JWT_AUTH_TYPE }}" |
|
|
|
|
app_id = "{{ .Env.JWT_APP_ID }}" |
|
|
|
|
app_secret = "{{ .Env.JWT_APP_SECRET }}" |
|
|
|
|
allow_empty_token = {{ if $JWT_ALL_EMPTY }}true{{ else }}false{{ end }} |
|
|
|
|
allow_empty_token = {{ if $JWT_ALLOW_EMPTY }}true{{ else }}false{{ end }} |
|
|
|
|
{{ if $JWT_ASAP_KEYSERVER }} |
|
|
|
|
asap_key_server = "{{ .Env.JWT_ASAP_KEYSERVER }}" |
|
|
|
|
{{ end }} |
|
|
|
@ -85,7 +85,7 @@ Component "{{ .Env.XMPP_MUC_DOMAIN }}" "muc" |
|
|
|
|
{{ if .Env.XMPP_MUC_MODULES }} |
|
|
|
|
"{{ join "\";\n\"" (splitList "," .Env.XMPP_MUC_MODULES) }}"; |
|
|
|
|
{{ end }} |
|
|
|
|
{{ if .Env.JWT_ENABLE_TOKEN_AUTH | default "0" | toBool }} |
|
|
|
|
{{ if eq $AUTH_TYPE "jwt" }} |
|
|
|
|
"{{ $JWT_TOKEN_AUTH_MODULE }}"; |
|
|
|
|
{{ end }} |
|
|
|
|
} |
|
|
|
|