aurelie-portfolio/nginx.conf
ordinarthur ec064db204
Some checks failed
Build & Deploy to K3s / build-and-deploy (push) Failing after 11s
feat: add Dockerfile, nginx config and K8s manifests
2026-04-11 11:52:08 +02:00

23 lines
526 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Cache static assets
location ~* \.(jpg|jpeg|png|gif|ico|svg|css|js|woff2?)$ {
expires 30d;
add_header Cache-Control "public, immutable";
}
# Astro clean URLs fallback
location / {
try_files $uri $uri/ $uri.html /index.html;
}
# Gzip
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml image/svg+xml;
gzip_min_length 256;
}