mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-25 23:07:07 +03:00
Nginx listen and cache header fixes (#25092)
* only add the ipv6 listener for wildcard listen addresses With IPv6 enabled, nginx also listened on [::] for both ports regardless of the configured listen address, so an internal port bound to 127.0.0.1 or [::1] was still reachable on every IPv6 address, and a [::]:port value rendered a duplicate listen that kept nginx from starting. The [::] listener is now added only for a bare port, *:port or 0.0.0.0:port, and a specific address binds only that address. * mark authorized media responses private in nginx
This commit is contained in:
@@ -183,7 +183,7 @@ http {
|
||||
}
|
||||
|
||||
expires 7d;
|
||||
add_header Cache-Control "public";
|
||||
add_header Cache-Control "private";
|
||||
autoindex on;
|
||||
root /media/frigate;
|
||||
|
||||
@@ -205,6 +205,7 @@ http {
|
||||
video/mp4 mp4;
|
||||
}
|
||||
|
||||
add_header Cache-Control "private";
|
||||
autoindex on;
|
||||
autoindex_format json;
|
||||
root /media/frigate;
|
||||
@@ -216,6 +217,7 @@ http {
|
||||
video/mp4 mp4;
|
||||
}
|
||||
|
||||
add_header Cache-Control "private";
|
||||
autoindex on;
|
||||
autoindex_format json;
|
||||
root /media/frigate;
|
||||
|
||||
Reference in New Issue
Block a user