Skip to content

A self-hosted media server and file management system

fix: security headers in nginx config leftover from nixos

aminnausin44984b15cba5
diff --git a/docker/etc/nginx/site-opts.d/http.conf b/docker/etc/nginx/site-opts.d/http.conf
index c7ce6d77..9080fb6a 100644
--- a/docker/etc/nginx/site-opts.d/http.conf
+++ b/docker/etc/nginx/site-opts.d/http.conf
@@ -61,7 +61,6 @@ location ~* ^/storage/media/ {
location ~* ^/storage/.*\.(woff|woff2|ttf)$ {
access_log off;
- ${securityHeaders}
add_header Cache-Control "private, no-cache";
try_files $uri =404;
}
@@ -70,7 +69,6 @@ location ~* ^/storage/.*\.(woff|woff2|ttf)$ {
location ~* "^/storage/.*_[0-9a-f]{8,}\.(jpg|jpeg|png|gif|webp)$" {
access_log off;
- ${securityHeaders}
add_header Cache-Control "public, max-age=31536000, immutable";
try_files $uri =404;
# 1y (all hashed images so immutable)
@@ -78,7 +76,6 @@ location ~* "^/storage/.*_[0-9a-f]{8,}\.(jpg|jpeg|png|gif|webp)$" {
location ~* ^/storage/.*/preview\.(webp|png|jpg|jpeg)$ {
access_log off;
- ${securityHeaders}
add_header Cache-Control "public, max-age=300";
try_files $uri =404;
# 5m (external access)
@@ -86,7 +83,6 @@ location ~* ^/storage/.*/preview\.(webp|png|jpg|jpeg)$ {
location ~* ^/storage/.*/storyboard/\d+\.(jpg|jpeg|webp)$ {
access_log off;
- ${securityHeaders}
add_header Cache-Control "private, max-age=30, must-revalidate";
try_files $uri =404;
# 5m (allows resets and holds user content information)
@@ -94,7 +90,6 @@ location ~* ^/storage/.*/storyboard/\d+\.(jpg|jpeg|webp)$ {
location ~* ^/storage/.*\.(jpg|jpeg|png|gif|webp)$ {
access_log off;
- ${securityHeaders}
add_header Cache-Control "public, max-age=3600";
try_files $uri =404;
# 1h (default images or posters)