mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-07 05:21:31 -07:00
api, local and media folders shouldn't require auth
This commit is contained in:
parent
1772c95a3a
commit
612d29df02
1 changed files with 2 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
||||||
## Version 2021/07/13
|
## Version 2021/10/11
|
||||||
# make sure that your dns has a cname set for homeassistant and that your homeassistant container is not using a base url
|
# make sure that your dns has a cname set for homeassistant and that your homeassistant container is not using a base url
|
||||||
|
|
||||||
# As of homeassistant 2021.7.0, it is now required to define the network range your proxy resides in, this is done in Homeassitants configuration.yaml
|
# As of homeassistant 2021.7.0, it is now required to define the network range your proxy resides in, this is done in Homeassitants configuration.yaml
|
||||||
|
@ -47,16 +47,7 @@ server {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location /api {
|
location ~ ^/(api|local|media)/ {
|
||||||
include /config/nginx/proxy.conf;
|
|
||||||
include /config/nginx/resolver.conf;
|
|
||||||
set $upstream_app homeassistant;
|
|
||||||
set $upstream_port 8123;
|
|
||||||
set $upstream_proto http;
|
|
||||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /local {
|
|
||||||
include /config/nginx/proxy.conf;
|
include /config/nginx/proxy.conf;
|
||||||
include /config/nginx/resolver.conf;
|
include /config/nginx/resolver.conf;
|
||||||
set $upstream_app homeassistant;
|
set $upstream_app homeassistant;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue