1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bonfire_ynh.git synced 2024-09-03 18:16:01 +02:00

add websocket redirect

This commit is contained in:
lapineige 2023-05-02 17:53:49 +02:00 committed by GitHub
parent d01d71e1af
commit 47952b313d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,3 +7,12 @@ location __PATH__/ {
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
location /live/websocket {
proxy_pass http://127.0.0.1:__PORT__;
# these configurations are necessary to proxy WebSocket requests
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}