fix: update nginx configuration for caching, gzip compression, security headers, and error handling

This commit is contained in:
Lago
2026-05-09 23:37:22 +02:00
parent 8f5ea34e8b
commit 9de88a5459
+2 -2
View File
@@ -22,6 +22,8 @@ server {
} }
location ~* \.(?:css|js)$ { location ~* \.(?:css|js)$ {
add_header Cache-Control "no-cache"; add_header Cache-Control "no-cache";
try_files $uri =404;
}
# SEO files - cache for 1 week # SEO files - cache for 1 week
location = /robots.txt { location = /robots.txt {
@@ -61,6 +63,4 @@ server {
# Error pages # Error pages
error_page 404 /index.html; error_page 404 /index.html;
error_page 500 502 503 504 /index.html; error_page 500 502 503 504 /index.html;
try_files $uri =404;
}
} }