Senior DevOps & SRE @ DigitalOcean | Kubernetes, Cloud & Infrastructure | Engineering roadmaps & guides at naveedkumbhar.com
Senior DevOps, Cloud & Site Reliability Engineer at DigitalOcean. I write about modern container orchestration, Linux systems, and cloud-native architecture. Explore my guides, architectures, and portfolio: • Website: https://naveedkumbhar.com • Resume: https://cv.naveedkumbhar.com • Blog: https://blog.naveedkumbhar.com • Newsletter: https://news.naveedkumbhar.com
Markdown supported · ⌘↵ to post
Edge Ops
Production Caddy works best when the Caddyfile is treated as the edge contract: one listener owns HTTPS and ACME, each hostname gets its own site block, and reverse_proxy only reaches compose or private network upstreams that never publish 443 themselves. I keep HTTP-01 reachable on :80 without routing that path into the app, pin explicit upstream dial timeouts, and separate static asset routes from API reverse_proxy blocks so a slow handler does not inherit the same buffering and read limits as a CSS fetch.
After a Caddyfile or container config change I reload, then verify the leaf SANs match every site name, that plain HTTP lands on HTTPS in a single hop for the canonical host, and that connect failures versus read timeouts are distinguishable in the logs. For WebSocket or long-lived admin UIs I raise read timeouts and disable response buffering on those matchers only; a trailing slash or Host mismatch after reload looks like an app bug until you hit a static path and a dynamic path separately through the same public name.