Fix root redirect in docs-site Caddyfile
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

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.
This commit is contained in:
Ryan Malloy 2026-03-09 01:23:57 -06:00
parent c1825e4e17
commit 494f7b136c

View File

@ -1,7 +1,9 @@
:80 {
redir / /getting-started/ 302
root * /srv
file_server
try_files {path} {path}/ /index.html
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"