Parcourir la source

debian: Don't break those still using ALPN multiplex (Fixes #7794) (#7796)

* fix: Don't break those still using ALPN multiplex (Fixes #7794)

* squash: Update doc/debian/jitsi-meet/jitsi-meet.conf

Co-authored-by: Saúl Ibarra Corretgé <saghul@jitsi.org>

Co-authored-by: Saúl Ibarra Corretgé <saghul@jitsi.org>
master
Дамян Минков il y a 4 ans
Parent
révision
91f636a813
Aucun compte lié à l'adresse e-mail de l'auteur
2 fichiers modifiés avec 35 ajouts et 0 suppressions
  1. 1
    0
      debian/jitsi-meet-turnserver.install
  2. 34
    0
      doc/debian/jitsi-meet/jitsi-meet.conf

+ 1
- 0
debian/jitsi-meet-turnserver.install Voir le fichier

@@ -1,2 +1,3 @@
1 1
 doc/debian/jitsi-meet-turn/turnserver.conf          /usr/share/jitsi-meet-turnserver/
2
+doc/debian/jitsi-meet/jitsi-meet.conf               /usr/share/jitsi-meet-turnserver/
2 3
 doc/debian/jitsi-meet-turn/coturn-certbot-deploy.sh /usr/share/jitsi-meet-turnserver/

+ 34
- 0
doc/debian/jitsi-meet/jitsi-meet.conf Voir le fichier

@@ -0,0 +1,34 @@
1
+# this is jitsi-meet nginx module configuration
2
+# this forward all http traffic to the nginx virtual host port
3
+# and the rest to the turn server
4
+#
5
+# Multiplexing based on ALPN is DEPRECATED. ALPN does not play well with websockets on some browsers and reverse proxies.
6
+# To migrate away from using it read: https://jitsi.org/multiplexing-to-bridge-ws-howto
7
+# This file will be removed at some point and if deployment is still using it, will break.
8
+#
9
+stream {
10
+    upstream web {
11
+        server 127.0.0.1:4444;
12
+    }
13
+    upstream turn {
14
+        server 127.0.0.1:5349;
15
+    }
16
+    # since 1.13.10
17
+    map $ssl_preread_alpn_protocols $upstream {
18
+        ~\bh2\b         web;
19
+        ~\bhttp/1\.     web;
20
+        default         turn;
21
+    }
22
+
23
+    server {
24
+        listen 443;
25
+        listen [::]:443;
26
+
27
+        # since 1.11.5
28
+        ssl_preread on;
29
+        proxy_pass $upstream;
30
+
31
+        # Increase buffer to serve video
32
+        proxy_buffer_size 10m;
33
+    }
34
+}

Chargement…
Annuler
Enregistrer