- 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)
12 lines
152 B
Caddyfile
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
|
|
}
|
|
}
|