doc: add more websocket examples

This commit is contained in:
paweldomas 2020-01-24 12:46:13 -06:00 committed by Paweł Domas
parent c20c4bd5a3
commit d9cf7aef3a
2 changed files with 10 additions and 1 deletions

View File

@ -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'
};

View File

@ -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;
}
}