Open mariaWitch opened 2 years ago
I figured out the issue, you apparently need to point CF_TOKEN to your global API key not your API_Token for the specific zone and Domain. Perhaps clarifiying this on the instructions would prevent people from encountering this issue.
I figured out the issue, you apparently need to point CF_TOKEN to your global API key not your API_Token for the specific zone and Domain. Perhaps clarifiying this on the instructions would prevent people from encountering this issue.
just want to note that you have to put the global API key in a file call "cf_token". Like an idiot, I kept trying to point my cf_api_key file at the CF_TOKEN env var...
I also want to comment that I had this exact issue. I found that creating a API token with the settings found below fixed it or me and it now works. Strange that the Global API token didnt work, but this does. Zone - DNS - Edit Zone - Zone Settings - Edit Zone - Zone - Edit
Summary
When I add a new domain to a container through traefik, cloudflare-companion errors out repeatedly with authentication failures to cloudflare. I'm not sure if something has changed with Cloudflare's API, but both of my other services which rely on the same API keys/tokens do not have the same issue as this does.
Steps to reproduce
(Input your api keys and tokens, and then attempt to start the container with a host set to a subset of the domain.)
What is the expected correct behavior?
It should not error and should create the subdomain automatically.
Relevant logs and/or screenshots
Environment
docker-compose.yml
``` version: "3.7" networks: internal: driver: bridge services: driver: bridge keycloakDB: driver: bridge volumes: traefik-logs: services: cloudflare-ddns: image: timothyjmiller/cloudflare-ddns:latest container_name: cloudflare-ddns security_opt: - no-new-privileges:true network_mode: "host" environment: - PUID=1000 - PGID=1000 volumes: - ./CloudflareDDNS/config.json:/config.json:ro restart: unless-stopped cloudflare-companion: image: tiredofit/traefik-cloudflare-companion:latest container_name: cloudflare-companion volumes: - /var/run/docker.sock:/var/run/docker.sock:ro environment: - TRAEFIK_VERSION=2 - CF_EMAIL=Possible fixes