kicad-mcp/docs-site/Caddyfile
Ryan Malloy 494f7b136c
Some checks are pending
CI / Lint and Format (push) Waiting to run
CI / Test Python 3.11 on macos-latest (push) Waiting to run
CI / Test Python 3.12 on macos-latest (push) Waiting to run
CI / Test Python 3.13 on macos-latest (push) Waiting to run
CI / Test Python 3.10 on ubuntu-latest (push) Waiting to run
CI / Test Python 3.11 on ubuntu-latest (push) Waiting to run
CI / Test Python 3.12 on ubuntu-latest (push) Waiting to run
CI / Test Python 3.13 on ubuntu-latest (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / Build Package (push) Blocked by required conditions
Fix root redirect in docs-site Caddyfile
Starlight has no index.html at document root — the landing page
lives at /getting-started/index.html. Added a 302 redirect from /
and fixed try_files to resolve directory indices correctly.
2026-03-09 01:23:57 -06:00

14 lines
342 B
Caddyfile

:80 {
redir / /getting-started/ 302
root * /srv
file_server
try_files {path} {path}/index.html {path}/
@nocache path /robots.txt /sitemap-index.xml /sitemap-*.xml
header @nocache Cache-Control "no-cache, max-age=0"
@hashed path /_astro/*
header @hashed Cache-Control "public, max-age=31536000, immutable"
}