Skip to content

Instantly share code, notes, and snippets.

@lopezjurip
lopezjurip / Caddyfile
Last active August 5, 2025 00:24
Fix Too Many Redirect error using Caddy + Cloudflare
www.mysite.com, mysite.com {
proxy / webapp:3000 {
proxy_header Host {host}
proxy_header X-Real-IP {remote}
proxy_header X-Forwarded-Proto {scheme}
}
gzip
tls [email protected]
}