Document canonical Caddy migration

This commit is contained in:
Frank
2026-08-25 21:59:59 -07:00
parent d52bcc15f8
commit 8110884e8e
8 changed files with 65 additions and 27 deletions
+1 -3
View File
@@ -293,8 +293,8 @@ deploy_caddy() {
# Retire the old split proxy before claiming ports 80/443. This is
# idempotent and leaves the old unit recoverable in the target trash.
retire_legacy_gitea_caddy
podman-compose -f dankclaw/compose.yaml up -d --no-deps caddy
if podman container exists caddy; then
podman-compose -f dankclaw/compose.yaml up -d --no-deps caddy
local reloaded=0
for _ in 1 2 3 4 5; do
if podman exec caddy caddy reload --config /etc/caddy/Caddyfile \
@@ -309,8 +309,6 @@ deploy_caddy() {
echo "Caddy reload failed; restarting only caddy."
podman restart caddy
fi
else
echo "WARN: caddy container is absent; no proxy was stopped or replaced."
fi
}