mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
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
@ -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…
x
Reference in New Issue
Block a user