blumeops/containers/cv/default.conf

33 lines
819 B
Text
Raw Normal View History

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 ~* \.(css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
# Force PDF download
location = /resume.pdf {
add_header Content-Disposition 'attachment; filename="erich-blume-resume.pdf"';
}
# Serve files directly
location / {
try_files $uri $uri/ =404;
}
# Health check endpoint
location /healthz {
access_log off;
return 200 "ok\n";
add_header Content-Type text/plain;
}
}