
Caddy Server Is Free — Auto-HTTPS Reverse Proxy in One Line
Nginx Is Powerful. Caddy Is Simple. Caddy automatically provisions and renews SSL certificates. No certbot, no cron, no manual renewal. One line of config gives you HTTPS. Install # Ubuntu/Debian sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl -1sLf https://dl.cloudsmith.io/public/caddy/stable/gpg.key | sudo apt-key add - sudo apt install caddy # Or just download the binary curl -o caddy https://caddyserver.com/api/download?os = linux&arch = amd64 Reverse Proxy in One Line caddy reverse-proxy --from yourdomain.com --to localhost:3000 That is it. Auto-HTTPS. Auto-renewal. Zero configuration files. Caddyfile (Multiple Services) yourdomain.com { reverse_proxy localhost:3000 } api.yourdomain.com { reverse_proxy localhost:8080 } static.yourdomain.com { root * /var/www/static file_server } Caddy API import requests # Load config def update_config ( config ): r = requests . post ( " http://localhost:2019/load " , headers = { " Content-Type " : " application/
Continue reading on Dev.to DevOps
Opens in a new tab




