diff --git a/homeassistant.subdomain.conf.sample b/homeassistant.subdomain.conf.sample index 568bb71..6bfe3b3 100644 --- a/homeassistant.subdomain.conf.sample +++ b/homeassistant.subdomain.conf.sample @@ -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;