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.
14 lines
342 B
Caddyfile
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"
|
|
}
|