TheYkk / traefik-whoami

Example docker-compose project to run traefik + whoami with ssl certificate easily
3 stars 0 forks source link

unable to generate a certificate for the domains [traefik.domain.com]: #1

Open tchiaspko opened 10 months ago

tchiaspko commented 10 months ago

I created a cloudflare api token and replace it. Also i replaced the two email address like it said in the README.md. However when I run docker-compose up I get the following

Am I suppose to register a domain with cloudflare and replace DOMAIN.com with my own domain?

traefik  | {"level":"debug","msg":"legolog: [INFO] [traefik.domain.com] acme: Cleaning DNS-01 challenge","time":"2024-01-07T22:03:57Z"}
traefik  | {"level":"debug","msg":"legolog: [WARN] [whoami.domain.com] acme: cleaning up failed: cloudflare: failed to find zone domain.com.: Zone could not be found ","time":"2024-01-07T22:03:57Z"}
traefik  | {"level":"debug","msg":"legolog: [INFO] Deactivating auth: https://acme-v02.api.letsencrypt.org/acme/authz-v3/301819678446","time":"2024-01-07T22:03:57Z"}
traefik  | {"level":"error","msg":"Unable to obtain ACME certificate for domains \"whoami.domain.com\": unable to generate a certificate for the domains [whoami.domain.com]: error: one or more domains had a problem:\n[whoami.domain.com] [whoami.domain.com] acme: error presenting token: cloudflare: failed to find zone domain.com.: Zone could not be found\n","providerName":"letsencrypt.acme","routerName":"whoami@docker","rule":"Host(`whoami.DOMAIN.com`)","time":"2024-01-07T22:03:57Z"}
traefik  | {"level":"debug","msg":"legolog: [WARN] [traefik.domain.com] acme: cleaning up failed: cloudflare: failed to find zone domain.com.: Zone could not be found ","time":"2024-01-07T22:03:57Z"}
traefik  | {"level":"debug","msg":"legolog: [INFO] Deactivating auth: https://acme-v02.api.letsencrypt.org/acme/authz-v3/301819678186","time":"2024-01-07T22:03:57Z"}
traefik  | {"level":"error","msg":"Unable to obtain ACME certificate for domains \"traefik.domain.com\": unable to generate a certificate for the domains [traefik.domain.com]: error: one or more domains had a problem:\n[traefik.domain.com] [traefik.domain.com] acme: error presenting token: cloudflare: failed to find zone domain.com.: Zone could not be found\n","providerName":"letsencrypt.acme","routerName":"traefik@docker","rule":"Host(`traefik.DOMAIN.com`) \u0026\u0026 PathPrefix(`/`)","time":"2024-01-07T22:03:58Z"}
TheYkk commented 10 months ago

You don't need to register your domain in cloudflare but indeed you have to change configuration with your own domain name. Don't forget to onboard your domain to cloudflare.