Skip to content

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

add websocket templates to nginx example config

paweldomas74a5eb2d8182
diff --git a/doc/debian/jitsi-meet/jitsi-meet.example b/doc/debian/jitsi-meet/jitsi-meet.example
index 2900834079..be1a992c42 100644
--- a/doc/debian/jitsi-meet/jitsi-meet.example
+++ b/doc/debian/jitsi-meet/jitsi-meet.example
@@ -59,6 +59,16 @@ server {
proxy_set_header Host $http_host;
}
+ # xmpp websockets
+ location = /xmpp-websocket {
+ proxy_pass http://127.0.0.1:5280/xmpp-websocket?prefix=$prefix&$args;
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "upgrade";
+ proxy_set_header Host $http_host;
+ tcp_nodelay on;
+ }
+
location ~ ^/([^/?&:'"]+)$ {
try_files $uri @root_path;
}
@@ -90,4 +100,13 @@ server {
rewrite ^/(.*)$ /http-bind;
}
+
+ # websockets for subdomains
+ location ~ ^/([^/?&:'"]+)/xmpp-websocket {
+ set $subdomain "$1.";
+ set $subdir "$1/";
+ set $prefix "$1";
+
+ rewrite ^/(.*)$ /xmpp-websocket;
+ }
}