fix: invoke Caddy adapter correctly in bootstrap
This commit is contained in:
@@ -29,7 +29,7 @@ curl -fsS -D - -o /dev/null "http://127.0.0.1:$BOOTSTRAP_API_PORT/health" | grep
|
|||||||
|
|
||||||
# A10: Validate Caddy configuration without running the proxy
|
# A10: Validate Caddy configuration without running the proxy
|
||||||
echo "Validating Caddy configuration..."
|
echo "Validating Caddy configuration..."
|
||||||
docker compose --env-file .env.production.example -f compose.production.yaml -f deploy/compose.bootstrap.yaml run --rm --no-deps --entrypoint "caddy adapt --config /etc/caddy/Caddyfile --pretty" proxy >/dev/null 2>&1 || {
|
docker compose --env-file .env.production.example -f compose.production.yaml -f deploy/compose.bootstrap.yaml run --rm --no-deps --entrypoint caddy proxy adapt --config /etc/caddy/Caddyfile --pretty >/dev/null 2>&1 || {
|
||||||
echo "ERROR: Caddy configuration is invalid" >&2
|
echo "ERROR: Caddy configuration is invalid" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user