diff --git a/docker-compose.yml b/docker-compose.yml index fa0a254..cc526b4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -291,6 +291,7 @@ services: - JVB_AUTH_USER - JVB_AUTH_PASSWORD - JVB_BREWERY_MUC + - JVB_DISABLE_STUN - JVB_PORT - JVB_MUC_NICKNAME - JVB_STUN_SERVERS diff --git a/jvb/rootfs/defaults/jvb.conf b/jvb/rootfs/defaults/jvb.conf index c65ac13..7f80974 100644 --- a/jvb/rootfs/defaults/jvb.conf +++ b/jvb/rootfs/defaults/jvb.conf @@ -1,6 +1,7 @@ {{ $COLIBRI_REST_ENABLED := .Env.COLIBRI_REST_ENABLED | default "false" | toBool }} {{ $ENABLE_COLIBRI_WEBSOCKET := .Env.ENABLE_COLIBRI_WEBSOCKET | default "1" | toBool }} {{ $ENABLE_OCTO := .Env.ENABLE_OCTO | default "0" | toBool }} +{{ $JVB_DISABLE_STUN := .Env.JVB_DISABLE_STUN- | default "0" | toBool }} {{ $JVB_STUN_SERVERS := .Env.JVB_STUN_SERVERS | default "meet-jit-si-turnrelay.jitsi.net:443" -}} {{ $JVB_AUTH_USER := .Env.JVB_AUTH_USER | default "jvb" -}} {{ $JVB_BREWERY_MUC := .Env.JVB_BREWERY_MUC | default "jvbbrewery" -}} @@ -84,7 +85,7 @@ ice4j { harvest { mapping { stun { -{{ if $JVB_STUN_SERVERS -}} +{{ if not $JVB_DISABLE_STUN -}} addresses = [ "{{ join "\",\"" (splitList "," $JVB_STUN_SERVERS) }}" ] {{ else -}} enabled = false