clean up nginx.conf
Build and Push Container / build-and-push (push) Successful in 21s

This commit is contained in:
2026-05-28 14:03:22 -04:00
parent 02f2b0ef49
commit 28feb0e50e
-24
View File
@@ -8,7 +8,6 @@ server {
# Security headers
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self';" always;
@@ -22,29 +21,6 @@ server {
try_files $uri $uri/ /index.html;
}
# No cache for JavaScript
location ~* \.js$ {
expires -1;
add_header Cache-Control "no-cache, no-store, must-revalidate";
}
# Cache static assets
location ~* \.(css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 30d;
add_header Cache-Control "public, immutable";
}
# Disable cache for HTML
location ~* \.html$ {
expires -1;
add_header Cache-Control "no-cache, no-store, must-revalidate";
}
# Custom error pages
error_page 404 /index.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}