MEGA-WEBSITE/nginx.conf
Dave b75229a5f4 Mega Infrastructure website: cinematic scroll redesign
Vite + React + Tailwind site with a scroll-scrubbed drone fly-through,
services, projects, company, team and contact sections, plus a
Dockerfile + nginx config for Coolify deployment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 22:24:49 +02:00

30 lines
844 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
gzip on;
gzip_types text/css application/javascript application/json image/svg+xml;
gzip_min_length 1024;
# Hashed JS/CSS bundles never change
location /assets/ {
add_header Cache-Control "public, max-age=31536000, immutable";
}
# Fly-through frames, photos and clips: cache for a week (re-run make-frames to change them)
location ~ ^/(frames|img|video)/ {
add_header Cache-Control "public, max-age=604800";
}
# The frame list must stay fresh so new footage shows up after a redeploy
location = /frames/manifest.json {
add_header Cache-Control "no-cache";
}
location / {
try_files $uri $uri/ /index.html;
add_header Cache-Control "no-cache";
}
}