caddy-dns / cloudflare

Caddy module: dns.providers.cloudflare
Apache License 2.0
436 stars 59 forks source link

caddy-dns / cloudflare is broken will not install #37

Closed KnucklesNuclear2 closed 1 year ago

KnucklesNuclear2 commented 2 years ago

Hello; Very new to github Have been trying to install Caddy multiple times. Believe the go.mod and go.sum have broken links in them. That is what is making the install fail. Thanks for your time. And have a great day.

azoller1 commented 2 years ago

I have built fine using "xcaddy --with github.com/caddy-dns/cloudflare"

Maybe old go version?

ItzDabbzz commented 2 years ago

I can't seem to build it either, ive tried the latest version of 2.4.6, and tried 2.4.0 for some reason i only get here. image

Heres my current Dockerfile i use to build it. image image

azoller1 commented 2 years ago

You need your token.

acme_dns cloudflare "token here no quotes"

Also, I read somewhere using the cloudflare dns challenge globally with the acme_dns may not work. Instead, use the tls option under each site/domain.

Edit: perhaps you may be hiding it rightfully so for security reasons. Have you tried building the binary directly with xcaddy without docker to see if it works?

ItzDabbzz commented 2 years ago

I think the issue was, i was on go 1.16, after i updated it showed up in the modules list. atleast for the custom build.

For some reason my Docker container is not adding cloudflare like its told to i guess. When i build without the container it does in fact run.

image

image

i just noticed the typo .-. but that did not fix it.

mholt commented 1 year ago

It was working for me, but I did just upgrade the dependencies anyway.

Jimbolino commented 1 year ago

but I did just upgrade the dependencies anyway

i was researching a bug (possibly with the newest v2.6.4), however when i switch caddy back to v2.6.3 i cannot use this library anymore :)