Skip to content

Course

Caddy: The Modern Web Server

Caddy the way production operators use it — automatic HTTPS, durable Caddyfile patterns, reverse proxying, plugins, observability, and the cases where it beats nginx.

9 lessons

Course Q&A

Reviews

Enrolled members can rate this course.

No reviews yet.

Mental Model

What Caddy automates, how configuration really works, and why its defaults are different.

  1. 01The Caddy Mental Model: HTTPS Is the DefaultWhy Caddy treats certificates as infrastructure rather than a chore, and the operational conditions automatic HTTPS quietly depends on.22mOpen
  2. 02Caddyfile Patterns That Don't RotSite blocks, matchers, snippets, imports, environment variables, and the ordering traps that make simple files behave surprisingly.24mOpen
  3. 03JSON Config and the Admin API: What the Caddyfile Adapts ToCaddyfile is an adapter over JSON; understanding `caddy adapt`, `/config/`, and safe reloads prevents accidental control-plane mistakes.20mOpen

Production Patterns

Reverse proxies, TLS variants, static sites, and application routing patterns that survive operations.

  1. 01Reverse Proxying Like You Mean ItUpstreams, headers, path handling, health checks, and load-balancing details that decide whether the proxy is invisible or harmful.25mOpen
  2. 02TLS Beyond the Happy Path: Internal CA, DNS, Wildcards, On-DemandThe four TLS designs Caddy operators actually use, with validation requirements and failure modes for each.24mOpen
  3. 03Static Files, SPAs, PHP, and the Route Shapes Behind ThemServing files correctly means compression, cache policy, fallback rewrites, and knowing when the request should never hit disk.23mOpen

Operate and Extend

Debugging, observability, plugin builds, and deciding when Caddy is the right edge server.

  1. 01Operations: Logs, Metrics, Reloads, and Debugging Without GuessingHow to inspect what Caddy is doing, what to monitor before users complain, and the safe debugging sequence during an edge incident.22mOpen
  2. 02Extending Caddy: Modules, xcaddy, and Plugin DisciplineWhen a plugin is the right answer, how to build one with xcaddy, and why plugins change your patching and threat model.21mOpen
  3. 03Caddy vs nginx: Choosing the Edge on PurposeCaddy often wins on automation and operational clarity, but nginx still wins in specific ecosystems; learn the real decision criteria and migration traps.20mOpen