mirror of
https://github.com/YunoHost-Apps/converse_ynh.git
synced 2024-09-03 18:25:53 +02:00
Set web-socket
This commit is contained in:
parent
e449278239
commit
2160abf4e5
2 changed files with 11 additions and 8 deletions
|
@ -12,15 +12,18 @@ location __PATH__/ {
|
|||
}
|
||||
|
||||
# BOSH
|
||||
location = __PATH__/http-bind {
|
||||
location = __PATH__/xmpp-websocket {
|
||||
proxy_pass "http://localhost:5290/http-bind";
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_buffering off;
|
||||
tcp_nodelay on;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_read_timeout 86400;
|
||||
}
|
||||
# CORS
|
||||
location ~ .(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$ {
|
||||
add_header "Access-Control-Allow-Origin: '*'"; # Decide here whether you want to allow all or only a particular domain
|
||||
root __FINALPATH__/; # Properly set the path here
|
||||
}
|
||||
|
||||
# Include SSOWAT user panel.
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
authentication: 'login',
|
||||
auto_away: 300,
|
||||
auto_reconnect: true,
|
||||
bosh_service_url: 'https://__DOMAIN____PATH__/http-bind',
|
||||
websocket_url: 'wss://__DOMAIN____PATH__/ws/',
|
||||
default_domain: '__MAINDOMAIN__',
|
||||
message_archiving: 'always',
|
||||
view_mode: 'fullscreen',
|
||||
|
|
Loading…
Reference in a new issue