Forráskód Böngészése

web: flag to control sctp bridge channel choice (#1613)

Aaron van Meerten 1 éve
szülő
commit
bebd748
2 módosított fájl, 7 hozzáadás és 1 törlés
  1. 1 0
      docker-compose.yml
  2. 6 1
      web/rootfs/defaults/system-config.js

+ 1 - 0
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

+ 6 - 1
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 -}}