Skip to content

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

doc: add more websocket examples

paweldomasd9cf7aef3a21
diff --git a/doc/example-config-files/multidomain/config.js.multidomain.example b/doc/example-config-files/multidomain/config.js.multidomain.example
index 7b8229c45d..1479c42d10 100644
--- a/doc/example-config-files/multidomain/config.js.multidomain.example
+++ b/doc/example-config-files/multidomain/config.js.multidomain.example
@@ -10,5 +10,6 @@ var config = {
focus: 'focus.jitsi.example.com',
},
useNicks: false,
- bosh: '//jitsi.example.com/http-bind' // FIXME: use xep-0156 for that
+ bosh: '//jitsi.example.com/http-bind', // FIXME: use xep-0156 for that
+ websocket: 'wss://jitsi.example.com/xmpp-websocket'
};
diff --git a/doc/example-config-files/multidomain/jitsi.example.com.multidomain.example b/doc/example-config-files/multidomain/jitsi.example.com.multidomain.example
index dc579fe6d2..c003f16fae 100644
--- a/doc/example-config-files/multidomain/jitsi.example.com.multidomain.example
+++ b/doc/example-config-files/multidomain/jitsi.example.com.multidomain.example
@@ -60,4 +60,12 @@ server {
rewrite ^/(.*)$ /http-bind;
}
+ # websockets for subdomains
+ location ~ ^/([^/?&:'"]+)/xmpp-websocket {
+ set $subdomain "$1.";
+ set $subdir "$1/";
+ set $prefix "$1";
+
+ rewrite ^/(.*)$ /xmpp-websocket;
+ }
}