Files
webgpu-portfolio/nginx.default.conf
djoser 9c99027ea6
Some checks failed
Build & Deploy / build (push) Failing after 35s
Build & Deploy / deploy (push) Has been skipped
feat: SPA routing, projects/resume sections, deployment infra
- Add client-side router with History API pushState (router.ts, pages.ts)
- Extend overlay with projects grid/category/detail views and resume section
- Add Gitea CI/CD workflow and webhook deployment server
- Improve Docker Compose with nginx reverse proxy config
- Add deployment script and .env.example
2026-07-26 23:48:15 +00:00

31 lines
803 B
Plaintext

server {
listen 8080 default_server;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Security headers
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "DENY" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
# Enable compression
gzip on;
gzip_types text/css application/javascript text/javascript application/wasm image/svg+xml;
gzip_min_length 512;
# Immutable cache for hashed assets
location /assets/ {
expires 1y;
add_header Cache-Control "public, immutable";
}
# Everything else → index.html (SPA fallback)
location / {
try_files $uri $uri/ /index.html;
expires -1;
add_header Cache-Control "no-cache";
}
}