11{{ $C2S_REQUIRE_ENCRYPTION := .Env .PROSODY_C2S_REQUIRE_ENCRYPTION | default " 1" | toBool - }}
22{{ $DISABLE_C2S_LIMIT := .Env .PROSODY_DISABLE_C2S_LIMIT | default " 0" | toBool - }}
3+ {{ $DISABLE_POLLS := .Env .DISABLE_POLLS | default " false" | toBool - }}
34{{ $DISABLE_S2S_LIMIT := .Env .PROSODY_DISABLE_S2S_LIMIT | default " 0" | toBool - }}
45{{ $ENABLE_AUTH := .Env .ENABLE_AUTH | default " 0" | toBool - }}
56{{ $ENABLE_GUEST_DOMAIN := and $ENABLE_AUTH (.Env .ENABLE_GUESTS | default " 0" | toBool ) - }}
@@ -242,6 +243,9 @@ s2s_whitelist = {
242243 ' {{ $XMPP_MUC_DOMAIN }}' ; -- needed for visitors to send messages to main room
243244 ' visitors.{{ $XMPP_DOMAIN }}' ; -- needed for sending promotion request to visitors.{{ $XMPP_DOMAIN }} component
244245 ' {{ $XMPP_DOMAIN }}' ; -- unavailable presences back to main room
246+ {{- if not $DISABLE_POLLS }}
247+ ' polls.{{ $XMPP_DOMAIN }}' ;
248+ {{- end }}
245249 {{- end }}
246250
247251 {{- if $ENABLE_GUEST_DOMAIN }}
@@ -267,12 +271,14 @@ s2sout_override = {
267271{{ $DEFAULT_PORT := add $VISITORS_XMPP_PORT $index }}
268272 [" {{ $VISITORS_MUC_PREFIX }}.v{{ $index }}.{{ $VISITORS_XMPP_DOMAIN }}" ] = " tcp://{{ $SERVER._0 }}:{{ $SERVER._1 | default $DEFAULT_PORT }}" ;
269273 [" v{{ $index }}.{{ $VISITORS_XMPP_DOMAIN }}" ] = " tcp://{{ $SERVER._0 }}:{{ $SERVER._1 | default $DEFAULT_PORT }}" ;
274+ [" polls.v{{ $index }}.{{ $VISITORS_XMPP_DOMAIN }}" ] = " tcp://{{ $SERVER._0 }}:{{ $SERVER._1 | default $DEFAULT_PORT }}" ;
270275{{ end - }}
271276};
272277{{ if ne $PROSODY_MODE " visitors" - }}
273278s2s_whitelist = {
274279{{ range $index , $element := $VISITORS_XMPP_SERVERS - }}
275280 " {{ $VISITORS_MUC_PREFIX }}.v{{ $index }}.{{ $VISITORS_XMPP_DOMAIN }}" ;
281+ " polls.v{{ $index }}.{{ $VISITORS_XMPP_DOMAIN }}" ;
276282{{ end - }}
277283};
278284{{ end - }}
0 commit comments