Self-Hosting · Networking
Caddy and Traefik: The Two Reverse Proxies Beyond Nginx Proxy Manager
A reverse proxy gives your services one front door: friendly names, one place for HTTPS, nothing else exposed. Our Nginx Proxy Manager guide covers the GUI-driven default. This guide covers the other two serious options — Caddy, which treats HTTPS as an automatic default and configures in two lines, and Traefik, which reads your Docker labels and rebuilds its routing every time a container changes — and how to choose among the three.
Published Nov 20, 2026
Caddy: the proxy that assumes you want HTTPS
Caddy (current release 2.11.9, November 2026) is built around one opinion: TLS is not a feature you configure, it is the default you would have to opt out of. Give it a public domain name and it obtains and renews a Let’s Encrypt certificate on its own, redirects HTTP to HTTPS, and keeps doing so forever without a cron job or a renewal ritual. A complete reverse proxy entry is genuinely this small:
jellyfin.example.com {
reverse_proxy 192.168.1.50:8096
}
That is the whole Caddyfile stanza — name, destination, done. Caddy also carries a built-in internal CA: mark a name tls internal and it issues certificates from its own local authority instead of a public CA, which makes it the easiest path to real HTTPS on purely internal names (the internal CA guide compares that approach with the alternatives). Caddy’s weaknesses are the flip side of its simplicity: no web UI at all, and a smaller library of homelab-specific tutorials than the other two. For a handful of services on one host, it is the least machinery that does the job properly.
Traefik: the proxy that watches Docker
Traefik (current line 3.7, November 2026) is built for environments where services come and go. Instead of editing a proxy config when you add a container, you describe the route on the container itself with Docker labels:
labels: - "traefik.enable=true" - "traefik.http.routers.immich.rule=Host(`photos.example.com`)" - "traefik.http.routers.immich.tls.certresolver=letsencrypt"
Traefik sees the container start, reads the labels, obtains the certificate through its ACME resolver (its acme.json store must be chmod 600 — Traefik refuses a world-readable one), and routes traffic; when the container stops, the route disappears. Set exposedbydefault=false so only labeled containers are ever routed. The cost is a steeper first hour: Traefik has a static configuration (entrypoints, providers, resolvers — set once) and a dynamic one (the labels), and beginners routinely confuse the two. The payoff arrives with scale and with stacks you regenerate often — a Compose file becomes self-describing, proxy config included. It is also the proxy under the hood of Pangolin, from our tunnel guide.
Choosing among the three
Pick Nginx Proxy Manager if you want a web UI, you are new to proxies, and your stack changes rarely — it remains the gentlest start, and nothing about the other two makes it wrong. Pick Caddy if you are comfortable editing a small text file and want the least possible ceremony per service, especially if internal-only names need certificates too. Pick Traefik if your stack is large, label-driven, or spread across hosts, or if you already live in Compose files and want routing to travel with each service’s definition. Migrating between them later is an afternoon, not a project: the concepts (hostnames, upstreams, certificates) map one-to-one, only the syntax changes.
Whichever you choose, the surrounding rules do not change: the proxy is the only thing that needs ports 80/443, everything behind it stays on internal networks, and admin interfaces do not get public routes at all — the exposure hierarchy decides what earns a route in the first place.
Official documentation and references
- Caddy documentation — automatic HTTPS, the Caddyfile, and the internal CA
- Traefik documentation — providers, labels, and ACME resolvers
- Let’s Encrypt documentation — challenge types and certificate lifetimes
Frequently asked questions
Caddy or Traefik for a small home stack?
Caddy, for most small stacks: a two-line stanza per service, automatic certificates, and a built-in internal CA for LAN-only names. Traefik’s label model pays off when you run many containers or regenerate stacks often; for five services on one NAS, its static/dynamic split is more machinery than the job needs.
Do Caddy and Traefik handle Let’s Encrypt renewals automatically?
Yes, both obtain and renew certificates without cron jobs or manual steps, and both support DNS-01 challenges for wildcard certificates and for hosts that are not publicly reachable. That automation matters more every year: Let’s Encrypt’s default certificate lifetime drops from 90 days to 64 days in February 2027 and 45 days in February 2028, so manual renewal is on its way out as a viable habit.
Can Traefik route services that are not Docker containers?
Yes. Docker labels are its most popular source of routing rules, but Traefik also reads file-based configuration and other providers, so a bare-metal service or a VM can be routed with a small YAML/TOML definition. The label workflow is simply the one that fits container stacks best.
Should my reverse proxy also be my authentication layer?
It can help — Traefik and Caddy both support forward-auth patterns that put an SSO login (Authelia or Authentik) in front of services that lack one. Treat that as an addition to, not a replacement for, the exposure decision: a service whose own security you do not trust belongs behind your VPN, not behind a proxy with a login bolted on.

