Pull in missed nginx update

This commit is contained in:
Ilya Rakhlin 2021-08-14 16:50:54 -04:00 committed by Ilya Rakhlin
parent 6b462e482c
commit 6e2ef58065

View File

@ -71,6 +71,9 @@ http {
location /vod/ {
vod hls;
secure_token $args;
secure_token_types application/vnd.apple.mpegurl;
add_header Access-Control-Allow-Headers '*';
add_header Access-Control-Expose-Headers 'Server,range,Content-Length,Content-Range';
add_header Access-Control-Allow-Methods 'GET, HEAD, OPTIONS';
@ -122,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';