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:
parent
d01d71e1af
commit
47952b313d
1 changed files with 9 additions and 0 deletions
|
@ -7,3 +7,12 @@ location __PATH__/ {
|
||||||
# Include SSOWAT user panel.
|
# Include SSOWAT user panel.
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
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";
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue