xmpp-web init
This commit is contained in:
parent
6d2acc362b
commit
98d496ccaf
2 changed files with 23 additions and 0 deletions
3
self_hosting/services/xmpp-web/local.js
Normal file
3
self_hosting/services/xmpp-web/local.js
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
websocket: 'ws://CHAT.DOMAIN.ORG/xmpp-websocket',
|
||||||
|
// wss for encrypted connections on port 5443:
|
||||||
|
//websocket: 'wss://CHAT.DOMAIN.ORG/xmpp-websocket',
|
20
self_hosting/services/xmpp-web/xmpp-web.conf
Normal file
20
self_hosting/services/xmpp-web/xmpp-web.conf
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
|
server_name CHAT.DOMAIN.ORG;
|
||||||
|
|
||||||
|
root /var/www/xmpp-web
|
||||||
|
|
||||||
|
location /xmpp-websocket {
|
||||||
|
# Proxy traffic to XMPP websocket
|
||||||
|
# Use port 5443 for wss (encrypted) connections
|
||||||
|
#proxy_pass http://CHAT.DOMAIN.ORG:5443/xmpp-websocket;
|
||||||
|
proxy_pass http://CHAT.DOMAIN.ORG:5280/xmpp-websocket;
|
||||||
|
|
||||||
|
# These allow websockets over http
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue