From d9cf7aef3a2137e7e289d0d09c1ba07d73fade58 Mon Sep 17 00:00:00 2001 From: paweldomas Date: Fri, 24 Jan 2020 12:46:13 -0600 Subject: [PATCH] doc: add more websocket examples --- .../multidomain/config.js.multidomain.example | 3 ++- .../multidomain/jitsi.example.com.multidomain.example | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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; + } }