Caddy
Web servers and reverse proxiesServe your sites and apps over HTTPS with certificates handled for you.
Caddy sits in front of your apps and handles the part of web hosting that most often goes wrong: certificates. It obtains and renews them automatically, so a small team can run several internal and public tools on one server without a person tracking expiry dates.
- Gets and renews HTTPS certificates for your domains on its own, and redirects HTTP to HTTPS.
- Puts apps behind one server with a few lines of Caddyfile and the reverse_proxy directive.
- Applies new settings with no downtime through its API, and takes plugins via an xcaddy build.
What people use it for
Put HTTPS in front of a self-hosted app
Point the domain's DNS records at your server and open ports 80 and 443. Write the domain and a reverse_proxy line with the app's port in a Caddyfile, run Caddy, and it requests the certificate and passes traffic to the app.
Publish a static website
Put the site's files in a folder, add a Caddyfile with the domain and the file_server directive, and start it with caddy run. Add browse after file_server if you want a file listing where there is no index file.
Change routing without taking sites offline
Send the new config to Caddy's admin API with a POST to /load, by default on localhost:2019. Caddy applies it with no downtime and keeps the previous config if the new one fails.