feat: PWA template - premium dark UI with glassmorphism, particles, and Docker deployment

This commit is contained in:
Kerboul
2026-03-09 08:00:59 -07:00
parent 14031f73a3
commit bff5fdc3c0
12 changed files with 1453 additions and 481 deletions

33
nginx.conf Normal file
View File

@@ -0,0 +1,33 @@
server {
listen 2080;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Gzip compression
gzip on;
gzip_types text/plain text/css application/javascript application/json image/svg+xml;
gzip_min_length 256;
# Security headers
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
# Cache static assets
location ~* \.(css|js|png|jpg|jpeg|gif|svg|ico|woff2?)$ {
expires 30d;
add_header Cache-Control "public, immutable";
}
# Service worker - no cache
location = /sw.js {
expires -1;
add_header Cache-Control "no-store, no-cache, must-revalidate";
}
# SPA fallback
location / {
try_files $uri $uri/ /index.html;
}
}