Caddy2 with Cloudflare CDN (end-to-end encryption)

Cloudflare settings

dashboard->profile->API Tokens->Create API Token->Create Custom Token

  1. name the token
  2. Permissions->zone->zone read/dns edit/analytic read
  3. Zone Resources->specific zone->your site domain

do NOT use global API key

Read more