-
Welcome
How do you use lego?Binary Detailed DescriptionHey, when I tried setting up the lego binary to generate a ssl cert for my domain I tried using the example from the Documentation. The main problem here ist, that depending on the API Key Type you need to set a different environment variable. I tried the CLOUDFLARE_API_KEY which failed with a similar issue like #930. It wasn't able to find the Zone. After changing the environment to CF_DNS_API_TOKEN it worked. When providing simple examples please make sure it's not misleading. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello, as stated inside the documentation there 2 ways to use the provider:
With the first, you must provide With the second, only The prefix of the env vars can be For the details, the env vars prefix |
Beta Was this translation helpful? Give feedback.
Hello,
as stated inside the documentation there 2 ways to use the provider:
CLOUDFLARE_EMAIL
+CLOUDFLARE_API_KEY
CLOUDFLARE_DNS_API_TOKEN
With the first, you must provide
CLOUDFLARE_EMAIL
andCLOUDFLARE_API_KEY
.With the second, only
CLOUDFLARE_DNS_API_TOKEN
is required.The prefix of the env vars can be
CLOUDFLARE_
orCF_
, the 2 prefixes are handled in the same way.For the details, the env vars prefix
CF_
is just aliasas on theCLOUDFLARE_
prefix.