This commit is contained in:
2026-03-18 20:54:43 +01:00
parent b3c8b77f12
commit 9fe656b34c
8058 changed files with 912898 additions and 23 deletions
+25
View File
@@ -0,0 +1,25 @@
server {
listen 3000;
root /usr/share/nginx/html;
index index.html;
# SPA fallback: rimanda tutto a index.html
location / {
try_files $uri $uri/ /index.html;
}
# Cache aggressiva per assets (hash nel nome del file)
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 1y;
add_header Cache-Control "public, no-transform";
}
# Nessuna cache per index.html
location = /index.html {
add_header Cache-Control "no-cache, no-store, must-revalidate";
}
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml;
gzip_min_length 1000;
}