File tree 3 files changed +16
-7
lines changed 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -291,6 +291,7 @@ services:
291
291
- PROSODY_TRUSTED_PROXIES
292
292
- PROSODY_VISITOR_INDEX
293
293
- PROSODY_VISITORS_MUC_PREFIX
294
+ - PROSODY_VISITORS_S2S_VHOSTS
294
295
- PUBLIC_URL
295
296
- STUN_HOST
296
297
- STUN_PORT
Original file line number Diff line number Diff line change @@ -104,6 +104,12 @@ s2sout_override = {
104
104
{{ if or $ENABLE_RECORDING $ENABLE_TRANSCRIPTIONS - }}
105
105
[" {{ $XMPP_RECORDER_DOMAIN }}" ] = " tcp://{{ $XMPP_SERVER }}:{{ $XMPP_SERVER_S2S_PORT }}" ;
106
106
{{ end - }}
107
+ {{ if .Env .PROSODY_VISITORS_S2S_VHOSTS - }}
108
+ {{- range $index , $vhost := (splitList " ," .Env .PROSODY_VISITORS_S2S_VHOSTS | compact ) }}
109
+ [" {{ $vhost }}" ] = " tcp://{{ $XMPP_SERVER }}:{{ $XMPP_SERVER_S2S_PORT }}" ;
110
+ {{ end - }}
111
+ {{ end - }}
112
+
107
113
}
108
114
109
115
muc_limit_messages_count = 10 ;
Original file line number Diff line number Diff line change @@ -224,20 +224,22 @@ s2s_ports = { {{ $S2S_PORT }} } -- Listen on specific s2s port
224
224
225
225
{{ if eq $PROSODY_MODE " visitors" - }}
226
226
s2s_whitelist = {
227
- {{ if $ENABLE_VISITORS - }}
227
+ {{- if $ENABLE_VISITORS }}
228
228
' {{ $XMPP_MUC_DOMAIN }}' ; -- needed for visitors to send messages to main room
229
229
' visitors.{{ $XMPP_DOMAIN }}' ; -- needed for sending promotion request to visitors.{{ $XMPP_DOMAIN }} component
230
230
' {{ $XMPP_DOMAIN }}' ; -- unavailable presences back to main room
231
+ {{- end }}
231
232
232
- {{ end - }}
233
- {{ if $ENABLE_GUEST_DOMAIN - }}
233
+ {{- if $ENABLE_GUEST_DOMAIN }}
234
234
' {{ $XMPP_GUEST_DOMAIN }}' ;
235
-
236
- {{ end }}
237
- {{ if or $ENABLE_RECORDING $ENABLE_TRANSCRIPTIONS - }}
235
+ {{- end }}
236
+ {{ if or $ENABLE_RECORDING $ENABLE_TRANSCRIPTIONS - }}
238
237
' {{ $XMPP_RECORDER_DOMAIN }}' ;
238
+ {{- end }}
239
239
240
- {{ end - }}
240
+ {{- if .Env .PROSODY_VISITORS_S2S_VHOSTS }}
241
+ ' {{ join "' ;\n ' " (splitList "," .Env.PROSODY_VISITORS_S2S_VHOSTS | compact) }}' ;
242
+ {{- end }}
241
243
}
242
244
{{ end - }}
243
245
You can’t perform that action at this time.
0 commit comments