use a nginx internal redirect

This commit is contained in:
Blake Blackshear
2021-08-10 08:27:31 -05:00
parent 1823bd0305
commit 189b9c6648
3 changed files with 32 additions and 25 deletions

View File

@@ -125,6 +125,11 @@ http {
root /media/frigate;
}
location /cache/ {
internal; # This tells nginx it's not accessible from the outside
alias /tmp/cache/;
}
location /recordings/ {
add_header 'Access-Control-Allow-Origin' "$http_origin" always;
add_header 'Access-Control-Allow-Credentials' 'true';