Skip to content

Commit dbfacf2

Browse files
committed
feat(jigasi): Adds trusted domains option.
1 parent 4f61baf commit dbfacf2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ services:
362362
- JIBRI_PENDING_TIMEOUT
363363
- JIGASI_BREWERY_MUC
364364
- JIGASI_SIP_URI
365+
- JIGASI_TRUSTED_DOMAINS
365366
- JVB_BREWERY_MUC
366367
- JVB_XMPP_AUTH_DOMAIN
367368
- JVB_XMPP_INTERNAL_MUC_DOMAIN

jigasi/rootfs/defaults/sip-communicator.properties

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
{{ $SHUTDOWN_REST_ENABLED := .Env.SHUTDOWN_REST_ENABLED | default "false" | toBool -}}
1313
{{ $DISABLE_SIP := .Env.JIGASI_DISABLE_SIP | default "false" | toBool -}}
1414
{{/* assign env from context, preserve during range when . is re-assigned */}}
15+
{{ $TRUSTED_DOMAIN_LIST := .Env.JIGASI_TRUSTED_DOMAINS | default "" -}}
16+
{{ $TRUSTED_DOMAINS := splitList "," $TRUSTED_DOMAIN_LIST -}}
1517
{{ $ENV := .Env -}}
1618

1719
net.java.sip.communicator.impl.protocol.SingleCallInProgressPolicy.enabled=false
@@ -180,3 +182,8 @@ org.jitsi.jigasi.DEFAULT_JVB_ROOM_NAME={{ .Env.JIGASI_SIP_DEFAULT_ROOM }}
180182
{{ end }}
181183

182184
org.jitsi.jigasi.MUC_SERVICE_ADDRESS={{ $XMPP_MUC_DOMAIN }}
185+
186+
# when checking other participants whether they are jibri/jigasi we can also check the the domain they use for connecting
187+
{{ if $TRUSTED_DOMAIN_LIST }}
188+
org.jitsi.jigasi.TRUSTED_DOMAINS=[ {{ range $index, $element := $TRUSTED_DOMAINS }}{{ if gt $index 0 }},{{ end }}"{{ $element }}"{{ end}} ]
189+
{{ end }}

0 commit comments

Comments
 (0)