Caddy gets and renews Let's Encrypt certificates automatically โ no certbot timers, no config gymnastics. Prereq: a domain with an A record pointing to your VPS IP.
ssh root@YOUR_SERVER_IP
apt update && apt install -y caddy
# for the latest version consider the official caddy.com repo
mkdir -p /var/www/mysite
# from your computer:
scp -r ./dist/* root@YOUR_SERVER_IP:/var/www/mysite/
cat > /etc/caddy/Caddyfile <<'EOF'
mysite.com {
root * /var/www/mysite
encode gzip
file_server
}
EOF
systemctl reload caddy
Open https://mysite.com โ the padlock is already there. Caddy issued and will auto-renew the certificate itself. SPA routing? Add try_files {path} /index.html inside the site block.
No server yet? A Buran-1 (โฌ6.5/mo) comfortably hosts several sites.