Caddy is a web server with automatic HTTPS (Let’s Encrypt) and no Certbot. Great for simple sites and reverse proxies on a VPS.
Steps
Add the official repo and install Caddy:
sudo apt updatesudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curlcurl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpgcurl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.listsudo apt updatesudo apt install -y caddyEnable the service:
sudo systemctl enable --now caddysystemctl status caddy --no-pagerEdit the Caddyfile (domain must point at the VPS):
sudo tee /etc/caddy/Caddyfile >/dev/null <<'EOF'example.com { root * /var/www/html file_server}EOFsudo mkdir -p /var/www/htmlecho "ok" | sudo tee /var/www/html/index.htmlReload and test HTTPS:
sudo systemctl reload caddycurl -I https://example.com
Tips
- Open 80/443 in UFW and point the DNS A record at the VPS before the first TLS issue.
- For reverse proxy:
reverse_proxy 127.0.0.1:3000inside the site block.
ext step
Frictionless HTTPS on a clean VPS: Deploy your Cloud VPS.