Add fallback default in Caddyfile for DOMAIN_SUFFIX

Without a fallback, an unset DOMAIN_SUFFIX expands to an empty string,
making Caddy parse the site block as a second global options block and
fail to start. Using {:localhost} defaults to localhost.
This commit is contained in:
Claude 2026-03-20 13:02:14 +00:00
parent 44c1bf03b4
commit d7d8df759a
No known key found for this signature in database

View file

@ -20,7 +20,7 @@
}
# HIY dashboard — served at your root domain.
{$DOMAIN_SUFFIX} {
{$DOMAIN_SUFFIX:localhost} {
reverse_proxy server:3000
}