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).
This commit is contained in:
Sander 2021-07-10 13:26:55 +02:00 committed by GitHub
parent ea7e76e457
commit 24863382da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}