Initial commit: WebGPU portfolio — generative-art site with DOM overlay

This commit is contained in:
2026-07-26 19:06:17 +02:00
commit 7172894ebb
30 changed files with 3916 additions and 0 deletions

30
nginx.default.conf Normal file
View File

@@ -0,0 +1,30 @@
server {
listen 80;
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";
}
}