diff --git a/doc/example-config-files/multidomain/config.js.multidomain.example b/doc/example-config-files/multidomain/config.js.multidomain.example index 7b8229c45..1479c42d1 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 dc579fe6d..c003f16fa 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; + } }