blumeops/containers/quartz/default.conf
Erich Blume 47fcfcf49e
All checks were successful
Build Container / build (push) Successful in 15s
Fix quartz Dockerfile for legacy Docker builder
Heredocs in RUN aren't supported without BuildKit.
Move nginx config to separate file and COPY it instead.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 10:41:59 -08:00

28 lines
725 B
Text

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Enable gzip compression
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml text/javascript;
# Cache static assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
# SPA fallback - serve index.html for client-side routing
location / {
try_files $uri $uri/ $uri.html /index.html;
}
# Health check endpoint
location /healthz {
access_log off;
return 200 "ok\n";
add_header Content-Type text/plain;
}
}