Skip to content

Commit

Permalink
debian: Don't break those still using ALPN multiplex (Fixes jitsi#7794)…
Browse files Browse the repository at this point in the history
… (jitsi#7796)

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

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

Co-authored-by: Saúl Ibarra Corretgé <[email protected]>

Co-authored-by: Saúl Ibarra Corretgé <[email protected]>
  • Loading branch information
damencho and saghul authored Sep 29, 2020
1 parent fa4df19 commit 91f636a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions debian/jitsi-meet-turnserver.install
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
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/
34 changes: 34 additions & 0 deletions doc/debian/jitsi-meet/jitsi-meet.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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
#
# Multiplexing based on ALPN is DEPRECATED. ALPN does not play well with websockets on some browsers and reverse proxies.
# To migrate away from using it read: https://jitsi.org/multiplexing-to-bridge-ws-howto
# This file will be removed at some point and if deployment is still using it, will break.
#
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;
}
}

0 comments on commit 91f636a

Please sign in to comment.