mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-07 05:21:31 -07:00
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:
parent
ea7e76e457
commit
24863382da
1 changed files with 9 additions and 0 deletions
|
@ -46,4 +46,13 @@ server {
|
||||||
set $upstream_proto http;
|
set $upstream_proto http;
|
||||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue