On a shared VPS with Traefik in front of many compose stacks, TLS stays healthy when the ACME solver and Host routers share the same entrypoints and the challenge path never depends on an app container that may be down. I pin which entrypoint terminates websecure, keep the dashboard off the public listener, and make sure every router hostname resolves to the box address Traefik binds before flipping production DNS. When Cloudflare sits in front, keep origin encryption consistent with what Traefik serves and prefer DNS-01 when HTTP-01 cannot reach the edge cleanly through that hop.
After apply I watch certificate readiness and which router each hostname matched, then hit every public name once to confirm the chain. Also verify X-Forwarded-Proto and the real client address still reach the upstream after Traefik terminates TLS — losing those on a label bump looks like an app redirect loop when it is still the proxy hop. An internal health probe to the service name, then the same path through the public Host, separates discovery drift from a real container crash.
Edge Ops
On a shared VPS with Traefik in front of many compose stacks, TLS stays healthy when the ACME solver and Host routers share the same entrypoints and the challenge path never depends on an app container that may be down. I pin which entrypoint terminates websecure, keep the dashboard off the public listener, and make sure every router hostname resolves to the box address Traefik binds before flipping production DNS. When Cloudflare sits in front, keep origin encryption consistent with what Traefik serves and prefer DNS-01 when HTTP-01 cannot reach the edge cleanly through that hop.
After apply I watch certificate readiness and which router each hostname matched, then hit every public name once to confirm the chain. Also verify X-Forwarded-Proto and the real client address still reach the upstream after Traefik terminates TLS — losing those on a label bump looks like an app redirect loop when it is still the proxy hop. An internal health probe to the service name, then the same path through the public Host, separates discovery drift from a real container crash.