Skip to content

Commit 86c8320

Browse files
authored
Merge pull request #390 from golles/patch-1
api, local and media folders shouldn't require auth
2 parents 1772c95 + 612d29d commit 86c8320

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

homeassistant.subdomain.conf.sample

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2021/07/13
1+
## Version 2021/10/11
22
# make sure that your dns has a cname set for homeassistant and that your homeassistant container is not using a base url
33

44
# 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 {
4747

4848
}
4949

50-
location /api {
51-
include /config/nginx/proxy.conf;
52-
include /config/nginx/resolver.conf;
53-
set $upstream_app homeassistant;
54-
set $upstream_port 8123;
55-
set $upstream_proto http;
56-
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
57-
}
58-
59-
location /local {
50+
location ~ ^/(api|local|media)/ {
6051
include /config/nginx/proxy.conf;
6152
include /config/nginx/resolver.conf;
6253
set $upstream_app homeassistant;

0 commit comments

Comments
 (0)