mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2026-02-20 04:59:12 +08: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
@ -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…
x
Reference in New Issue
Block a user