# Caddy serves the static build inside the container on :80. # Coolify's proxy terminates TLS and handles the public domain. :80 { root * /srv encode zstd gzip file_server # Astro builds "/foo" -> "/foo/index.html"; try clean URLs first. try_files {path} {path}/ {path}.html /404.html # Long-cache fingerprinted assets, revalidate HTML. @assets path /_astro/* header @assets Cache-Control "public, max-age=31536000, immutable" @html path *.html / header @html Cache-Control "public, max-age=0, must-revalidate" }