mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-05 20:41:32 -07:00
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:
parent
5c53b40e76
commit
08b3fdb4b0
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue