mcnoaa-tides/docs/Caddyfile.prod
Ryan Malloy 9d25f5efe3 Fix docs root showing Caddy default page, fix MCP healthcheck
- Clear /usr/share/caddy/* before copying build output to remove
  the default "Caddy works!" index.html from the base image
- Add root redirect: / -> /getting-started/ (permanent)
- Fix try_files to use {path}/index.html for Starlight directories
- Switch MCP healthcheck to TCP socket (GET /mcp returns 406
  without proper Accept headers)
2026-02-23 05:44:58 -07:00

12 lines
152 B
Caddyfile

:4321 {
encode gzip
redir / /getting-started/ permanent
handle {
root * /usr/share/caddy
try_files {path} {path}/index.html
file_server
}
}