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 }