On a fresh VPS the edge stays stable when Caddy alone owns :80 and :443, every public hostname has its own site block, and reverse_proxy targets the compose service name on a private port rather than publishing that port on the host. I keep HTTP-01 on the plain listener so the challenge path never depends on an app container that may be down, set explicit dial and response timeouts toward upstreams, and preserve Host plus X-Forwarded-Proto so absolute redirects never leak the internal network name. DNS A or AAAA for each site name should already point at the box before the first ACME attempt; a partial record set is the usual reason only one of several hosts issues cleanly.
After a Caddyfile reload I confirm the leaf SANs cover every advertised name, that the first plain HTTP request becomes a single HTTPS redirect to the canonical host, and that connect failures versus slow upstream reads stay distinct in the access log. For WebSocket or long-poll admin routes I raise only those read timeouts and disable response buffering there; a trailing-slash or Host rewrite mistake after an edit often looks like an application bug until you probe a static asset and an API path through the same public name separately.
Edge Ops
On a fresh VPS the edge stays stable when Caddy alone owns :80 and :443, every public hostname has its own site block, and reverse_proxy targets the compose service name on a private port rather than publishing that port on the host. I keep HTTP-01 on the plain listener so the challenge path never depends on an app container that may be down, set explicit dial and response timeouts toward upstreams, and preserve Host plus X-Forwarded-Proto so absolute redirects never leak the internal network name. DNS A or AAAA for each site name should already point at the box before the first ACME attempt; a partial record set is the usual reason only one of several hosts issues cleanly.
After a Caddyfile reload I confirm the leaf SANs cover every advertised name, that the first plain HTTP request becomes a single HTTPS redirect to the canonical host, and that connect failures versus slow upstream reads stay distinct in the access log. For WebSocket or long-poll admin routes I raise only those read timeouts and disable response buffering there; a trailing-slash or Host rewrite mistake after an edit often looks like an application bug until you probe a static asset and an API path through the same public name separately.