
Caddy Has a Free API — The Automatic HTTPS Web Server
Caddy is a web server that automatically provisions HTTPS certificates. No configuration files needed — it just works. What Is Caddy? Caddy is the only web server that provisions and renews TLS certificates automatically via Let us Encrypt. Written in Go, single binary, zero dependencies. Features: Automatic HTTPS (Let us Encrypt + ZeroSSL) HTTP/3 support Reverse proxy Load balancing API-first configuration Single binary Quick Start # Install curl -fsSL https://getcaddy.com | bash # Serve current directory with HTTPS caddy file-server --domain yourdomain.com # Reverse proxy caddy reverse-proxy --from yourdomain.com --to localhost:3000 Admin API # Get current config curl localhost:2019/config/ # Set config curl -X POST localhost:2019/config/ \ -H "Content-Type: application/json" \ -d '{"apps":{"http":{"servers":{"main":{"listen":[":443"],"routes":[{"match":[{"host":["example.com"]}],"handle":[{"handler":"reverse_proxy","upstreams":[{"dial":"localhost:3000"}]}]}]}}}}}' # Add route dynami
Continue reading on Dev.to DevOps
Opens in a new tab



