
Caddy Has a Free API — HTTPS Web Server with Automatic TLS Certificates
Caddy is a web server that automatically provisions and renews HTTPS certificates. No certbot, no nginx config files, no manual renewal — just works. Why Caddy? Automatic HTTPS — provisions TLS certificates from Let's Encrypt automatically Zero config — a 3-line Caddyfile replaces 50 lines of nginx config HTTP/3 — supported out of the box API-first — configure everything via JSON API at runtime Quick Start # Install brew install caddy # macOS apt install caddy # Ubuntu # Serve current directory caddy file-server --browse # Reverse proxy caddy reverse-proxy --to localhost:3000 Caddyfile (The Simplest Config) # Serve static site with HTTPS mysite.com { root * / var / www / mysite file_server } # Reverse proxy api.mysite.com { reverse_proxy localhost: 3000 } # SPA with fallback app.mysite.com { root * / var / www / app try_files { path } / index.html file_server } That's it. Caddy automatically gets TLS certs for all three domains. Reverse Proxy with Load Balancing myapp.com { reverse_pro
Continue reading on Dev.to Tutorial
Opens in a new tab



