Traefik and cloudflare #105
Replies: 1 comment 2 replies
-
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.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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