Browse Source

doc: add more websocket examples

j8
paweldomas 5 years ago
parent
commit
d9cf7aef3a

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

10
         focus: 'focus.jitsi.example.com',
10
         focus: 'focus.jitsi.example.com',
11
     },
11
     },
12
     useNicks: false,
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 View File

60
         rewrite ^/(.*)$ /http-bind;
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…
Cancel
Save