diff --git a/docker-compose.yml b/docker-compose.yml index 3429c12..f56e52c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -104,6 +104,7 @@ services: - HIDE_PREJOIN_DISPLAY_NAME - HIDE_PREJOIN_EXTRA_BUTTONS - INVITE_SERVICE_URL + - JVB_PREFER_SCTP - LETSENCRYPT_DOMAIN - LETSENCRYPT_EMAIL - LETSENCRYPT_USE_STAGING diff --git a/web/rootfs/defaults/system-config.js b/web/rootfs/defaults/system-config.js index d65f75d..f79f56b 100644 --- a/web/rootfs/defaults/system-config.js +++ b/web/rootfs/defaults/system-config.js @@ -9,7 +9,7 @@ {{ $XMPP_GUEST_DOMAIN := .Env.XMPP_GUEST_DOMAIN | default "guest.meet.jitsi" -}} {{ $XMPP_MUC_DOMAIN := .Env.XMPP_MUC_DOMAIN | default "muc.meet.jitsi" -}} {{ $XMPP_MUC_DOMAIN_PREFIX := (split "." $XMPP_MUC_DOMAIN)._0 -}} - +{{ $JVB_PREFER_SCTP := .Env.JVB_PREFER_SCTP | default "false" | toBool -}} // Jitsi Meet configuration. var config = {}; @@ -58,3 +58,8 @@ config.externalConnectUrl = '/' + subdir + 'http-pre-bind'; config.externalConnectUrl = '/http-pre-bind'; {{ end -}} {{ end -}} + +{{ if $JVB_PREFER_SCTP -}} +if (!config.hasOwnProperty('bridgeChannel')) config.bridgeChannel = {}; +config.bridgeChannel.preferSctp=true; +{{ end -}}