Lurker News
Back to discussion

Comment by mholt

mholt2 replies#

    tls {
        dns cloudflare
    }
Replace with your API token, or you can store it in an env variable and use {env.CLOUDFLARE_API_TOKEN} for example.
jlelse#
Thanks!
nklmilojevic1 reply#
That's what I already tried and got:

Error during parsing: getting DNS provider module named 'cloudflare': module not registered: tls.dns.cloudflare
Using latest docker image.

mholt1 reply#
"Latest", as in "1 hour ago" latest, or "15 minutes ago" latest? Because the 2.0 image (not RCs) is needed and I think it only got published a few minutes ago.

Edit: You also need to plug it in.

    xcaddy build --with github.com/caddy-dns/cloudflare
nklmilojevic2 replies#
I have just tried again, used caddy:latest and got the same error. Didn't mean to take much of your time, I can open up a GitHub issue if it's the better way to resolve this.

EDIT: I have just seen your edit. Will try and report back.
Thanks for your time!

Continue this thread — 2 replies