How To Run Caddy Behind Cloudflare Reverse Proxy With Full TLS🔒

Steps to take Use xcaddy to create a custom Caddy build with the dns.providers.cloudflare module. Configure a systemd service for our Caddy build with an environment file. Enable Full (Strict) TLS for our domain inside the Cloudflare dashboard. Create an API token to read and edit our domains DNS settings. Use a Caddyfile to configure Caddy to serve our domain with full TLS. Let’s get started You can follow the official documentation on how to build Caddy from source using xcaddy, but I’ll walk you through how to do it on a fresh debian 12 installation. ...

March 5, 2025 · 5 min · Vide Krajnc