mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2026-07-08 17:42:32 +02:00
Merge pull request #390 from golles/patch-1
api, local and media folders shouldn't require auth
This commit is contained in:
@@ -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
|
||||
|
||||
# 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 {
|
||||
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 {
|
||||
location ~ ^/(api|local|media)/ {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
set $upstream_app homeassistant;
|
||||
|
||||
Reference in New Issue
Block a user