Enabling websockets

This commit is contained in:
Mathieu Gauthier-Pilote 2023-08-10 14:53:37 -04:00
parent e57b3578f3
commit 3b8834ffce
2 changed files with 5 additions and 1 deletions

View file

@ -49,7 +49,7 @@ var config = {
bosh: 'https://{{ domains | first }}/' + subdir + 'http-bind',
// Websocket URL (XMPP)
// websocket: 'wss://{{ domains | first }}/' + subdir + 'xmpp-websocket',
websocket: 'wss://{{ domains | first }}/' + subdir + 'xmpp-websocket',
// The real JID of focus participant - can be overridden here
// Do not change username - FIXME: Make focus username configurable

View file

@ -12,6 +12,8 @@ external_services = {
cross_domain_bosh = false;
consider_bosh_secure = true;
cross_domain_websocket = true;
consider_websocket_secure = true;
-- https_ports = { }; -- Remove this line to prevent listening on port 5284
-- by default prosody 0.12 sends cors headers, if you want to disable it uncomment the following (the config is available on 0.12.1)
@ -56,6 +58,8 @@ VirtualHost "{{ domains | first }}"
-- we need bosh
modules_enabled = {
"bosh";
"websocket";
"smacks"; -- XEP-0198: Stream Management
"pubsub";
"ping"; -- Enable mod_ping
"speakerstats";