blogs/sites/reflections/deploy/blog-locations.conf
Neeldhara Misra 58d8b661a8
Some checks are pending
Build / build (push) Waiting to run
Restructure blogs as Astro monorepo
2026-06-13 21:15:16 +02:00

23 lines
453 B
Text

index index.html;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log warn;
location = /nginx-health {
access_log off;
return 204;
}
location ^~ /dist/ {
rewrite ^/dist/[^/]+/?(.*)$ /$1 last;
}
location ~* \.(?:css|js|mjs|png|jpg|jpeg|gif|svg|webp|ico|woff2?)$ {
try_files $uri =404;
expires 1y;
add_header Cache-Control "public, immutable";
}
location / {
try_files $uri $uri/index.html /index.html /404.html;
}