Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat: Enable bridge websockets by default for new installs (#7781)
Дамян Минков93f4098dc080
diff --git a/config.js b/config.jsindex 12f1809528..3131cf68db 100644--- a/config.js+++ b/config.js@@ -337,6 +337,7 @@ var config = {// 'datachannel'), undefined (treat it as 'datachannel') and false (don't// open any channel).// openBridgeChannel: true,+ openBridgeChannel: 'websocket',// UIdiff --git a/debian/jitsi-meet-prosody.postrm b/debian/jitsi-meet-prosody.postrmindex e5090ad7a9..599e392f60 100644--- a/debian/jitsi-meet-prosody.postrm+++ b/debian/jitsi-meet-prosody.postrm@@ -45,8 +45,12 @@ case "$1" inrm -rf /var/lib/prosody/$JICOFO_AUTH_DOMAIN.*rm -rf /var/lib/prosody/$JVB_HOSTNAME.*- # clean created users- rm -rf /var/lib/prosody/`echo $JICOFO_AUTH_DOMAIN | sed -e "s/\./%2e/g"`+ # clean created users, replace '.' with '%2e', replace '-' with '%2d'+ rm -rf /var/lib/prosody/`echo $JICOFO_AUTH_DOMAIN | sed -e "s/\./%2e/g"| sed -e "s/-/%2d/g"`++ # clean the prosody cert from the trust store+ rm -rf /usr/local/share/ca-certificates/$JICOFO_AUTH_DOMAIN.*+ update-ca-certificates -ffi# Clear the debconf variablediff --git a/debian/jitsi-meet-turnserver.install b/debian/jitsi-meet-turnserver.installindex 9d8098b2b5..52a096b810 100644--- a/debian/jitsi-meet-turnserver.install+++ b/debian/jitsi-meet-turnserver.install@@ -1,3 +1,2 @@doc/debian/jitsi-meet-turn/turnserver.conf /usr/share/jitsi-meet-turnserver/-doc/debian/jitsi-meet/jitsi-meet.conf /usr/share/jitsi-meet-turnserver/doc/debian/jitsi-meet-turn/coturn-certbot-deploy.sh /usr/share/jitsi-meet-turnserver/diff --git a/debian/jitsi-meet-turnserver.postinst b/debian/jitsi-meet-turnserver.postinstindex ecb5bc03ad..de0aa100c4 100644--- a/debian/jitsi-meet-turnserver.postinst+++ b/debian/jitsi-meet-turnserver.postinst@@ -36,26 +36,6 @@ case "$1" inNGINX_CONFIG="/etc/nginx/sites-available/$JVB_HOSTNAME.conf"JITSI_MEET_CONFIG="/etc/jitsi/meet/$JVB_HOSTNAME-config.js"- NGINX_SITES_ENABLED="/etc/nginx/sites-enabled/"- NGINX_CONFIG_ENABLED="${NGINX_SITES_ENABLED}${JVB_HOSTNAME}.conf"- NGINX_MULTIPLEXING="true"- for site in ${NGINX_SITES_ENABLED}*; do- # if it is not a file continue- [ -f "${site}" ] || continue- # if it is our config skip- [ "${site}" != "${NGINX_CONFIG_ENABLED}" ] || continue- # check whether other enabled hosts has listen 443- if cat ${site} | grep -v "^[[:space:]]*#" | grep listen | grep -q "^.*[[:space:]:]443[;[:space:]].*" ; then- # nothing to do- echo "------------------------------------------------"- echo ""- echo "turnserver is listening on tcp 5349 as other nginx sites use port 443"- echo ""- echo "------------------------------------------------"- NGINX_MULTIPLEXING="false"- fi- done-# if there was a turn config backup it so we can configure# we cannot recognize at the moment is this a user config or default config when installing coturnif [[ -f $TURN_CONFIG ]] && ! grep -q "jitsi-meet coturn config" "$TURN_CONFIG" ; then@@ -133,19 +113,9 @@ denied-peer-ip=240.0.0.0-255.255.255.255" >> $TURN_CONFIGTURN_SECRET="$RET"# no turn config exists, lt's copy template and fill it in- PUBLIC_IP=$(dig -4 +short myip.opendns.com a @resolver1.opendns.com) || true- if [ -z "$PUBLIC_IP" ] ; then- PUBLIC_IP="127.0.0.1"- echo "------------------------------------------------"- echo "Warning! Could not resolve your external ip address! Error:^"- echo "Your turn server will not work till you edit your $TURN_CONFIG config file."- echo "You need to set your external ip address in external-ip and restart coturn service."- echo "------------------------------------------------"- ficp /usr/share/jitsi-meet-turnserver/turnserver.conf $TURN_CONFIGsed -i "s/jitsi-meet.example.com/$JVB_HOSTNAME/g" $TURN_CONFIGsed -i "s/__turnSecret__/$TURN_SECRET/g" $TURN_CONFIG- sed -i "s/__external_ip_address__/$PUBLIC_IP/g" $TURN_CONFIG# SSL for nginxdb_get jitsi-meet/cert-choice@@ -170,18 +140,14 @@ denied-peer-ip=240.0.0.0-255.255.255.255" >> $TURN_CONFIGinvoke-rc.d coturn restart || trueNGINX_STREAM_CONFIG="/etc/nginx/modules-enabled/60-jitsi-meet.conf"- if [ $NGINX_MULTIPLEXING = "true" ] && [ ! -f $NGINX_STREAM_CONFIG ] && [ -f $NGINX_CONFIG ] ; then- ln -s /usr/share/jitsi-meet-turnserver/jitsi-meet.conf $NGINX_STREAM_CONFIG- sed -i "s/listen 443 ssl/listen 4444 ssl http2/g" $NGINX_CONFIG- sed -i "s/listen \[\:\:\]\:443 ssl/listen \[\:\:\]\:4444 ssl http2/g" $NGINX_CONFIG- invoke-rc.d nginx reload || true- else- PROSODY_HOST_CONFIG="/etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua"- if [ -f $PROSODY_HOST_CONFIG ] ; then- # If we are not multiplexing we need to change the port in prosody config- sed -i 's/"443"/"5349"/g' $PROSODY_HOST_CONFIG- invoke-rc.d prosody restart || true- fi+ if [ -f $NGINX_STREAM_CONFIG ] ; then+ echo "------------------------------------------------"+ echo ""+ echo "You have multiplexing enabled, it is recommended to disable it and migrate to using websockets for the bridge channel."+ echo "The support for sctp data channels is deprecated and will be dropped at some point."+ echo "How to do it at: https://jitsi.org/multiplexing-to-bridge-ws-howto"+ echo ""+ echo "------------------------------------------------"fi# Enable turn server in config.jsdiff --git a/debian/jitsi-meet-turnserver.postrm b/debian/jitsi-meet-turnserver.postrmindex 90ef725743..a809526eea 100644--- a/debian/jitsi-meet-turnserver.postrm+++ b/debian/jitsi-meet-turnserver.postrm@@ -24,7 +24,6 @@ set -ecase "$1" inremove)- rm -rf /etc/nginx/modules-enabled/60-jitsi-meet.confif [ -x "/etc/init.d/nginx" ]; theninvoke-rc.d nginx reload || truefi@@ -33,7 +32,6 @@ case "$1" infi;;purge)- rm -rf /etc/nginx/modules-enabled/60-jitsi-meet.confrm -rf /etc/turnserver.confif [ -x "/etc/init.d/nginx" ]; theninvoke-rc.d nginx reload || truediff --git a/doc/debian/jitsi-meet-prosody/prosody.cfg.lua-jvb.example b/doc/debian/jitsi-meet-prosody/prosody.cfg.lua-jvb.exampleindex 1e6163d88a..c117b2a851 100644--- a/doc/debian/jitsi-meet-prosody/prosody.cfg.lua-jvb.example+++ b/doc/debian/jitsi-meet-prosody/prosody.cfg.lua-jvb.example@@ -8,7 +8,7 @@ turncredentials_secret = "__turnSecret__";turncredentials = {{ type = "stun", host = "jitmeet.example.com", port = "3478" },{ type = "turn", host = "jitmeet.example.com", port = "3478", transport = "udp" },- { type = "turns", host = "jitmeet.example.com", port = "443", transport = "tcp" }+ { type = "turns", host = "jitmeet.example.com", port = "5349", transport = "tcp" }};cross_domain_bosh = false;diff --git a/doc/debian/jitsi-meet-turn/turnserver.conf b/doc/debian/jitsi-meet-turn/turnserver.confindex 02dff699bb..07daf15c34 100644--- a/doc/debian/jitsi-meet-turn/turnserver.conf+++ b/doc/debian/jitsi-meet-turn/turnserver.conf@@ -12,7 +12,6 @@ no-tcp-relayno-tcplistening-port=3478tls-listening-port=5349-external-ip=__external_ip_address__no-tlsv1no-tlsv1_1# https://ssl-config.mozilla.org/#server=haproxy&version=2.1&config=intermediate&openssl=1.1.0g&guideline=5.4diff --git a/doc/debian/jitsi-meet/jitsi-meet.conf b/doc/debian/jitsi-meet/jitsi-meet.confdeleted file mode 100644index 879fcf29e5..0000000000--- a/doc/debian/jitsi-meet/jitsi-meet.conf+++ /dev/null@@ -1,30 +0,0 @@-# this is jitsi-meet nginx module configuration-# this forward all http traffic to the nginx virtual host port-# and the rest to the turn server--stream {- upstream web {- server 127.0.0.1:4444;- }- upstream turn {- server 127.0.0.1:5349;- }- # since 1.13.10- map $ssl_preread_alpn_protocols $upstream {- ~\bh2\b web;- ~\bhttp/1\. web;- default turn;- }-- server {- listen 443;- listen [::]:443;-- # since 1.11.5- ssl_preread on;- proxy_pass $upstream;-- # Increase buffer to serve video- proxy_buffer_size 10m;- }-}diff --git a/doc/debian/jitsi-meet/jitsi-meet.example b/doc/debian/jitsi-meet/jitsi-meet.exampleindex 9362b6b537..8c1ba5e29b 100644--- a/doc/debian/jitsi-meet/jitsi-meet.example+++ b/doc/debian/jitsi-meet/jitsi-meet.example@@ -87,6 +87,15 @@ server {tcp_nodelay on;}+ # colibri (JVB) websockets for jvb1+ location ~ ^/colibri-ws/default-id/(.*) {+ proxy_pass http://127.0.0.1:9090/colibri-ws/default-id/$1$is_args$args;+ proxy_http_version 1.1;+ proxy_set_header Upgrade $http_upgrade;+ proxy_set_header Connection "upgrade";+ tcp_nodelay on;+ }+location ~ ^/([^/?&:'"]+)$ {try_files $uri @root_path;}