xmpp-web init

This commit is contained in:
tavo-wasd 2023-10-19 14:20:48 -06:00
parent 6d2acc362b
commit 98d496ccaf
2 changed files with 23 additions and 0 deletions

View 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',

View 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";
}
}