
Caddy Has a Free API That Gives You Automatic HTTPS With Zero Configuration
Caddy is a web server that gets HTTPS certificates automatically. No certbot, no cron jobs, no certificate renewal scripts. Just point it at your domain. Quick Start # Install sudo apt install -y caddy # Serve a site with automatic HTTPS caddy reverse-proxy --from example.com --to localhost:3000 That's it. Caddy obtains a Let's Encrypt certificate, configures HTTPS, and proxies traffic. Caddyfile (Config) example.com { reverse_proxy localhost:3000 } api.example.com { reverse_proxy localhost:8080 } static.example.com { root * /var/www/static file_server } Reverse Proxy with Load Balancing example.com { reverse_proxy localhost:3001 localhost:3002 localhost:3003 { lb_policy round_robin health_uri /health health_interval 10s } } Caddy vs Nginx vs Traefik Feature Caddy Nginx Traefik Auto HTTPS Yes No Yes Config Caddyfile nginx.conf YAML/Docker labels Hot reload Yes Yes Yes Reverse proxy Yes Yes Yes Docker labels Plugin No Native Learning curve Easy Medium Medium API # Caddy has a REST API f
Continue reading on Dev.to Webdev
Opens in a new tab


