Files
Project-Manager/frontend/nginx.conf
Ryan Lancaster 82d7dfcc14
Some checks failed
continuous-integration/drone/push Build encountered an error
ci: add Drone pipeline, production Docker setup, frontend Dockerfile
2026-03-18 17:00:31 -04:00

29 lines
685 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Health probe (checked by Docker + Caddy)
location /health {
return 200 'ok';
add_header Content-Type text/plain;
}
# SPA fallback — any path that isn't a real file serves index.html
location / {
try_files $uri $uri/ /index.html;
}
# Static asset caching
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2?)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
gzip on;
gzip_types text/plain text/css application/javascript application/json image/svg+xml;
gzip_min_length 1024;
}