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:
Josh Hawkins
2026-11-25 07:40:26 -07:00
committed by GitHub
parent fd35f4a48f
commit b213d1e73c
6 changed files with 45 additions and 9 deletions
@@ -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;