Base Caddyfile now imports conf.d/*.caddy. Snippets are mounted selectively so the stack runs with or without the static site / air-gap mirror: 00-core auth + packwiz (always) 10-static apex landing + launcher downloads 20-mirror air-gap upstream hosts (tls internal) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
13 lines
622 B
Caddyfile
13 lines
622 B
Caddyfile
# Base Caddy config. Vhosts live in conf.d/*.caddy snippets that are mounted
|
|
# in selectively so the stack can run with or without the static site / mirror:
|
|
# conf.d/00-core.caddy auth + packwiz (always — core ingress)
|
|
# conf.d/10-static.caddy apex landing + launcher downloads (static toggle)
|
|
# conf.d/20-mirror.caddy air-gap upstream mirror (tls internal) (mirror toggle)
|
|
# auto_https disable_redirects: http:// sites stay plaintext on :80; the mirror
|
|
# snippet's hosts still get internal TLS on :443 when that snippet is present.
|
|
{
|
|
auto_https disable_redirects
|
|
}
|
|
|
|
import /etc/caddy/conf.d/*.caddy
|