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:
parent
44c1bf03b4
commit
d7d8df759a
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
# HIY dashboard — served at your root domain.
|
# HIY dashboard — served at your root domain.
|
||||||
{$DOMAIN_SUFFIX} {
|
{$DOMAIN_SUFFIX:localhost} {
|
||||||
reverse_proxy server:3000
|
reverse_proxy server:3000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue