Add websocket proxy to / for nginx subdomain setup (#3020)
Without the proxy_http_version and proxy_header upgrades an the nginx subdomain setup generates socket errors on the login page. This makes that users can't login. Adding the websocket lines both to the "/" location as well as the "/api/websocket" location solves the issue. Solution copied from: KickHackerz, mar 1 answer on https://community.home-assistant.io/t/ngnix-so-confused-doing-something-wrong/12736/3.
This commit is contained in:
parent
8ce9bd8dc9
commit
e183ecaa64
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@ server {
|
|||
location / {
|
||||
proxy_pass http://localhost:8123/;
|
||||
proxy_set_header Host $host;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
|
||||
location /api/websocket {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue