traefik: feat: Use Cloudflare API Tokens instead of API Key for security

This commit is contained in:
PorridgePi
2022-09-03 11:08:07 +08:00
parent 8795a0710a
commit d920e833ee

View File

@@ -11,8 +11,10 @@ services:
container_name: traefik container_name: traefik
restart: always restart: always
environment: environment:
- CF_API_EMAIL=${CF_API_EMAIL} # - CF_API_EMAIL=${CF_API_EMAIL} # used with CF_API_KEY
- CF_API_KEY=${CF_API_KEY} # - CF_API_KEY=${CF_API_KEY} # Global API Key, unsafe
- CF_ZONE_API_TOKEN=${CF_ZONE_API_TOKEN} # Zone / Zone / Read, scope across all zones
- CF_DNS_API_TOKEN=${CF_DNS_API_TOKEN} # Zone / DNS / Edit, scope to specific domain(s)
volumes: volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro" - "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./acme.json:/acme.json" - "./acme.json:/acme.json"