fix config

This config was incomplete. 
The api path is needed for the server to be accessible.
Otherwise you run into problems like this.
https://old.reddit.com/r/homeassistant/comments/6rgf04/frontend_unable_to_connect/
This commit is contained in:
Willy Hardy 2020-10-26 14:32:14 +00:00 committed by GitHub
parent 5c53b40e76
commit 08b3fdb4b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,4 +36,14 @@ server {
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location /api {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
set $upstream_app homeassistant;
set $upstream_port 8123;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}