Caddy

Web server and reverse proxy that obtains and renews TLS certificates on its own, configured in a short Caddyfile.

Website ↗

Caddy is a web server and reverse proxy with a built-in ACME client: it gets and renews TLS certificates from Let's Encrypt by itself, so there is no certbot timer to look after. On my VPS it is the only public entry point, in front of the website container and Forgejo.

What matters in practice

  • One site block per hostname: reverse_proxy 127.0.0.1:<port> for an app, redir https://example.com{uri} permanent for a second hostname.
  • Checks: caddy validate --config /etc/caddy/Caddyfile before a reload, caddy fmt --overwrite for formatting warnings.
  • Install: Caddy is not in Debian's default repositories; the stable channel comes from Cloudsmith.
  • Behind Cloudflare: the proxy has to be off (DNS only), or Caddy cannot get its certificate.

More on this

Used in

Show in the graph view →