Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

conf(nginx) add keepalive via upstream groups

Christoph Settgast39793110b68d
diff --git a/doc/debian/jitsi-meet/jitsi-meet.example b/doc/debian/jitsi-meet/jitsi-meet.example
index 0d1d9be128..66f0eca8df 100644
--- a/doc/debian/jitsi-meet/jitsi-meet.example
+++ b/doc/debian/jitsi-meet/jitsi-meet.example
@@ -4,6 +4,16 @@ types {
# nginx's default mime.types doesn't include a mapping for wasm
application/wasm wasm;
}
+upstream prosody {
+ zone upstreams 64K;
+ server 127.0.0.1:5280;
+ keepalive 2;
+}
+upstream jvb1 {
+ zone upstreams 64K;
+ server 127.0.0.1:9090;
+ keepalive 2;
+}
server {
listen 80;
listen [::]:80;
@@ -77,14 +87,16 @@ server {
# BOSH
location = /http-bind {
- proxy_pass http://127.0.0.1:5280/http-bind?prefix=$prefix&$args;
+ proxy_pass http://prosody/http-bind?prefix=$prefix&$args;
+ proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
+ proxy_set_header Connection "";
}
# xmpp websockets
location = /xmpp-websocket {
- proxy_pass http://127.0.0.1:5280/xmpp-websocket?prefix=$prefix&$args;
+ proxy_pass http://prosody/xmpp-websocket?prefix=$prefix&$args;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
@@ -94,7 +106,7 @@ server {
# 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_pass http://jvb1/colibri-ws/default-id/$1$is_args$args;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";