Sfoglia il codice sorgente

doc: add more websocket examples

j8
paweldomas 5 anni fa
parent
commit
d9cf7aef3a

+ 2
- 1
doc/example-config-files/multidomain/config.js.multidomain.example Vedi File

@@ -10,5 +10,6 @@ var config = {
10 10
         focus: 'focus.jitsi.example.com',
11 11
     },
12 12
     useNicks: false,
13
-    bosh: '//jitsi.example.com/http-bind' // FIXME: use xep-0156 for that
13
+    bosh: '//jitsi.example.com/http-bind', // FIXME: use xep-0156 for that
14
+    websocket: 'wss://jitsi.example.com/xmpp-websocket'
14 15
 };

+ 8
- 0
doc/example-config-files/multidomain/jitsi.example.com.multidomain.example Vedi File

@@ -60,4 +60,12 @@ server {
60 60
         rewrite ^/(.*)$ /http-bind;
61 61
     }
62 62
 
63
+    # websockets for subdomains
64
+    location ~ ^/([^/?&:'"]+)/xmpp-websocket {
65
+        set $subdomain "$1.";
66
+        set $subdir "$1/";
67
+        set $prefix "$1";
68
+
69
+        rewrite ^/(.*)$ /xmpp-websocket;
70
+    }
63 71
 }

Loading…
Annulla
Salva