Skip to content
Home / Migrations / NginxCaddy

Nginx Caddy

easy

Caddy provides automatic HTTPS (Let's Encrypt), simpler config, and HTTP/3 out of the box. No more manual SSL cert management.

Estimated: 1-2h · 5 steps
Progress0%
Step 1: Install Caddy
sudo apt install -y caddy  # or: brew install caddy
Step 2: Create Caddyfile

Caddy's config is dramatically simpler than nginx.conf.

example.com {
  reverse_proxy localhost:3000
}
Step 3: Migrate reverse proxy rules

nginx location blocks → Caddy route matchers. Most configs are 5-10x shorter.

Step 4: Start Caddy

Caddy auto-provisions SSL certificates from Let's Encrypt.

sudo systemctl enable caddy && sudo systemctl start caddy
Step 5: Remove Nginx
sudo systemctl stop nginx && sudo apt remove nginx
Site loads with valid SSL on HTTPS