Add Cloudflare DNS support to Caddy configuration

- Updated .env.example to include CF_ZONE_READ and CF_DNS_EDIT variables.
- Enhanced Caddyfile to utilize Cloudflare DNS for TLS.
- Created Dockerfile for building Caddy with Cloudflare DNS support.
- Modified docker-compose.yml to use the new caddy-cloudflare image and set environment variables.
This commit is contained in:
Peter Wood
2025-04-29 14:34:25 -04:00
parent 5f9bfe5b8c
commit 85979c3701
4 changed files with 169 additions and 7 deletions

View File

@@ -1,4 +1,8 @@
# create the API token in https://dash.cloudflare.com/profile/api-tokens
# provide access to ptrwd.com for DNS zone
CLOUDFLARE_TOKEN=
# create auth tokens -
# `Zone.Zone:Read` for all zones, and
# `Zone.DNS:Edit` permissions for ptrwd.com
# https://github.com/caddy-dns/cloudflare
CF_ZONE_READ=
CF_DNS_EDIT=