mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 17:57:14 +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 / {
|
location / {
|
||||||
proxy_pass http://localhost:8123/;
|
proxy_pass http://localhost:8123/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
}
|
}
|
||||||
|
|
||||||
location /api/websocket {
|
location /api/websocket {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user