From 24863382da3d8e7799327d69aa563daaf9107365 Mon Sep 17 00:00:00 2001 From: Sander Date: Sat, 10 Jul 2021 13:26:55 +0200 Subject: [PATCH] Allow Home Assistant local files to bypass auth I've enabled Authalia myself and noticed that push notifications containing images from the /local (www) directory, wouldn't load (which makes sense as there was no auth). --- homeassistant.subdomain.conf.sample | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/homeassistant.subdomain.conf.sample b/homeassistant.subdomain.conf.sample index 5e91d62..4e7a3a0 100644 --- a/homeassistant.subdomain.conf.sample +++ b/homeassistant.subdomain.conf.sample @@ -46,4 +46,13 @@ server { set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; } + + location /local { + 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; + } }