Multi-stage Dockerfile (node build -> nginx serve), nginx config with _astro asset caching, .dockerignore, and .gitignore hardening for TLS key files. Astro already builds static output with site set to https://larpaso.de. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JmTVcwbGJBYP7gu4P7b1yG
17 lines
376 B
Nginx Configuration File
17 lines
376 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# Saubere URLs + Fallback
|
|
location / {
|
|
try_files $uri $uri/ $uri.html /index.html;
|
|
}
|
|
|
|
# Astro legt gehashte Assets unter /_astro ab -> lange cachen
|
|
location /_astro/ {
|
|
expires 1y;
|
|
add_header Cache-Control "public, immutable";
|
|
}
|
|
}
|