Traefik and cloudflare #105
Unanswered
mosquitodawg
asked this question in
Q&A
Replies: 1 comment 1 reply
-
That's right, your HOSTNAME variable is set to localhost in your .env, it should be set up your domain that you're controlling in CloudFlare. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sorry I don't really understand this stuff.
I have a made a cloudflare account with zone:read and zone:edit api tokens.
I have put them in the .env in the following properties
CLOUDFLARE_EMAIL
CLOUDFLARE_DNS_API_TOKEN
CLOUDFLARE_ZONE_API_TOKEN
But I get the error below in traefik logs. Seems like I should change the domain. But does this require I make a domain which will cost money?
ERR Unable to obtain ACME certificate for domains error="unable to generate a certificate for the domains [localhost]: acme: error: 400 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-order :: urn:ietf:params:acme:error:rejectedIdentifier :: Invalid identifiers requested :: Cannot issue for "localhost": Domain name needs at least one dot" ACME CA=https://acme-v02.api.letsencrypt.org/directory acmeCA=https://acme-v02.api.letsencrypt.org/directory domains=["localhost"] providerName=myresolver.acme routerName=homepage@docker rule="(Host(
localhost
) && PathPrefix(/
))"Beta Was this translation helpful? Give feedback.
All reactions