Stack note

Caddy on my server

What it is

How a request reaches this site: Caddy terminates certificates at the door and routes by domain name to the right container
How a request reaches this site: Caddy terminates certificates at the door and routes by domain name to the right container

Caddy is a reverse proxy and web server whose superpower is boring perfection: it obtains and renews TLS certificates automatically. You point domains at it; it handles the encryption plumbing forever.

Why it's on my box

One Caddy instance fronts everything — this website, PrintHQ, internal tools. The config for a new site is genuinely this small:

rishablodha.com {
    reverse_proxy rishablodha:3002
}

That's the entire site block. Certificates, renewals, HTTP→HTTPS redirects: handled. It also prepends the real client IP to X-Forwarded-For, which is exactly why this site's rate limiting can trust the first entry in that header (the code reads the first entry, parts[0]).

How it behaves in practice

  • The good: it has never once woken me up. In years of certificates auto-renewing, the failure count is zero.
  • The honest part: less battle-tested plugins and edge configs have a thinner community than nginx — when you go beyond standard proxying, expect to read source code.
  • The rule I follow: proxy by container name on a shared docker network, never by published port — which also makes your rate limits impossible to bypass.

Who should use it

Everyone self-hosting anything public. If you're manually renewing certificates in 2026, this is your sign.


Affiliate status: none — nothing on this page is sponsored.