prosody: s2s whitelist duplicate param fix (#1625)

pull/1626/head
Aaron van Meerten 1 year ago committed by GitHub
parent eb91893895
commit af50ddeecb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      prosody/rootfs/defaults/prosody.cfg.lua

@ -179,6 +179,7 @@ c2s_interfaces = { "*" }
-- set s2s port
s2s_ports = { {{ $S2S_PORT }} } -- Listen on specific s2s port
{{ if eq .Env.PROSODY_MODE "visitors" -}}
s2s_whitelist = {
{{ if $ENABLE_VISITORS -}}
'{{ $XMPP_MUC_DOMAIN }}'; -- needed for visitors to send messages to main room
@ -192,6 +193,8 @@ s2s_whitelist = {
}
{{ end -}}
{{ end -}}
{{ if $ENABLE_VISITORS -}}
{{ if $.Env.VISITORS_XMPP_SERVER -}}
s2sout_override = {
@ -202,6 +205,7 @@ s2sout_override = {
["v{{ $index }}.{{ $VISITORS_XMPP_DOMAIN }}"] = "tcp://{{ $SERVER._0 }}:{{ $SERVER._1 | default $DEFAULT_PORT }}";
{{ end -}}
};
{{ if ne .Env.PROSODY_MODE "visitors" -}}
s2s_whitelist = {
{{ range $index, $element := $VISITORS_XMPP_SERVERS -}}
"{{ $VISITORS_MUC_PREFIX }}.v{{ $index }}.{{ $VISITORS_XMPP_DOMAIN }}";
@ -209,6 +213,7 @@ s2s_whitelist = {
};
{{ end -}}
{{ end -}}
{{ end -}}
-- Force certificate authentication for server-to-server connections?

Loading…
Cancel
Save