|
|
@ -15,6 +15,9 @@ http_default_host = "{{ .Env.XMPP_DOMAIN }}" |
|
|
|
{{ $JWT_TOKEN_AUTH_MODULE := .Env.JWT_TOKEN_AUTH_MODULE | default "token_verification" }} |
|
|
|
{{ $JWT_TOKEN_AUTH_MODULE := .Env.JWT_TOKEN_AUTH_MODULE | default "token_verification" }} |
|
|
|
{{ $ENABLE_LOBBY := .Env.ENABLE_LOBBY | default "0" | toBool }} |
|
|
|
{{ $ENABLE_LOBBY := .Env.ENABLE_LOBBY | default "0" | toBool }} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ $ENABLE_XMPP_WEBSOCKET := .Env.ENABLE_XMPP_WEBSOCKET | default "0" | toBool }} |
|
|
|
|
|
|
|
{{ $PUBLIC_URL := .Env.PUBLIC_URL | default "https://localhost:8443" -}} |
|
|
|
|
|
|
|
|
|
|
|
{{ if and $ENABLE_AUTH (eq $AUTH_TYPE "jwt") .Env.JWT_ACCEPTED_ISSUERS }} |
|
|
|
{{ if and $ENABLE_AUTH (eq $AUTH_TYPE "jwt") .Env.JWT_ACCEPTED_ISSUERS }} |
|
|
|
asap_accepted_issuers = { "{{ join "\",\"" (splitList "," .Env.JWT_ACCEPTED_ISSUERS) }}" } |
|
|
|
asap_accepted_issuers = { "{{ join "\",\"" (splitList "," .Env.JWT_ACCEPTED_ISSUERS) }}" } |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
@ -23,6 +26,13 @@ asap_accepted_issuers = { "{{ join "\",\"" (splitList "," .Env.JWT_ACCEPTED_ISSU |
|
|
|
asap_accepted_audiences = { "{{ join "\",\"" (splitList "," .Env.JWT_ACCEPTED_AUDIENCES) }}" } |
|
|
|
asap_accepted_audiences = { "{{ join "\",\"" (splitList "," .Env.JWT_ACCEPTED_AUDIENCES) }}" } |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ if $ENABLE_XMPP_WEBSOCKET }} |
|
|
|
|
|
|
|
-- Deprecated in 0.12 |
|
|
|
|
|
|
|
-- https://github.com/bjc/prosody/commit/26542811eafd9c708a130272d7b7de77b92712de |
|
|
|
|
|
|
|
cross_domain_websocket = { "{{ $PUBLIC_URL }}" }; |
|
|
|
|
|
|
|
consider_bosh_secure = true; |
|
|
|
|
|
|
|
{{ end }} |
|
|
|
|
|
|
|
|
|
|
|
VirtualHost "{{ .Env.XMPP_DOMAIN }}" |
|
|
|
VirtualHost "{{ .Env.XMPP_DOMAIN }}" |
|
|
|
{{ if $ENABLE_AUTH }} |
|
|
|
{{ if $ENABLE_AUTH }} |
|
|
|
{{ if eq $AUTH_TYPE "jwt" }} |
|
|
|
{{ if eq $AUTH_TYPE "jwt" }} |
|
|
@ -42,7 +52,15 @@ VirtualHost "{{ .Env.XMPP_DOMAIN }}" |
|
|
|
authentication = "internal_hashed" |
|
|
|
authentication = "internal_hashed" |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
{{ else }} |
|
|
|
{{ else }} |
|
|
|
|
|
|
|
-- https://github.com/jitsi/docker-jitsi-meet/pull/502#issuecomment-619146339 |
|
|
|
|
|
|
|
{{ if $ENABLE_XMPP_WEBSOCKET }} |
|
|
|
|
|
|
|
authentication = "token" |
|
|
|
|
|
|
|
{{ else }} |
|
|
|
authentication = "anonymous" |
|
|
|
authentication = "anonymous" |
|
|
|
|
|
|
|
{{ end }} |
|
|
|
|
|
|
|
app_id = "" |
|
|
|
|
|
|
|
app_secret = "" |
|
|
|
|
|
|
|
allow_empty_token = true |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
ssl = { |
|
|
|
ssl = { |
|
|
|
key = "/config/certs/{{ .Env.XMPP_DOMAIN }}.key"; |
|
|
|
key = "/config/certs/{{ .Env.XMPP_DOMAIN }}.key"; |
|
|
@ -50,6 +68,10 @@ VirtualHost "{{ .Env.XMPP_DOMAIN }}" |
|
|
|
} |
|
|
|
} |
|
|
|
modules_enabled = { |
|
|
|
modules_enabled = { |
|
|
|
"bosh"; |
|
|
|
"bosh"; |
|
|
|
|
|
|
|
{{ if $ENABLE_XMPP_WEBSOCKET }} |
|
|
|
|
|
|
|
"websocket"; |
|
|
|
|
|
|
|
"smacks"; -- XEP-0198: Stream Management |
|
|
|
|
|
|
|
{{ end }} |
|
|
|
"pubsub"; |
|
|
|
"pubsub"; |
|
|
|
"ping"; |
|
|
|
"ping"; |
|
|
|
"speakerstats"; |
|
|
|
"speakerstats"; |
|
|
@ -80,7 +102,16 @@ VirtualHost "{{ .Env.XMPP_DOMAIN }}" |
|
|
|
|
|
|
|
|
|
|
|
{{ if $ENABLE_GUEST_DOMAIN }} |
|
|
|
{{ if $ENABLE_GUEST_DOMAIN }} |
|
|
|
VirtualHost "{{ .Env.XMPP_GUEST_DOMAIN }}" |
|
|
|
VirtualHost "{{ .Env.XMPP_GUEST_DOMAIN }}" |
|
|
|
|
|
|
|
-- https://github.com/jitsi/docker-jitsi-meet/pull/502#issuecomment-619146339 |
|
|
|
|
|
|
|
{{ if $ENABLE_XMPP_WEBSOCKET }} |
|
|
|
|
|
|
|
authentication = "token" |
|
|
|
|
|
|
|
{{ else }} |
|
|
|
authentication = "anonymous" |
|
|
|
authentication = "anonymous" |
|
|
|
|
|
|
|
{{ end }} |
|
|
|
|
|
|
|
app_id = "" |
|
|
|
|
|
|
|
app_secret = "" |
|
|
|
|
|
|
|
allow_empty_token = true |
|
|
|
|
|
|
|
|
|
|
|
c2s_require_encryption = false |
|
|
|
c2s_require_encryption = false |
|
|
|
|
|
|
|
|
|
|
|
{{ if $ENABLE_LOBBY }} |
|
|
|
{{ if $ENABLE_LOBBY }} |
|
|
|