try to download caddy with plugin:
tls.dns.cloudflare;;
get error, how can I install cloudflare plugin???
Error:
Oops. Maybe one of the plugins is temporarily broken. Try adjusting which plugins you’ve selected, or download Caddy from GitHub without any plugins (it will always work!).;;;
Sigh, it appears to be an error related to Go modules:
2019/10/01 00:03:15 exec [/tmp/buildenv_10-01-0003.051978053/main] /usr/local/bin/go mod vendor
go: finding github.com/payintech/caddy-datadog latest
go: github.com/caddyserver/dnsproviders@v0.3.0 requires
github.com/h2non/gock@v0.0.0-00010101000000-000000000000: invalid version: unknown revision 000000000000
2019/10/01 00:03:16 build failed: HTTP 400: provisioning build environment: go mod vendor: exit status 1
I don’t have time to fix it right now But will try to get around to it soon. In the meantime, you will have to build from source yourself. There are instructions on the readme, including how to add plugins. If you encounter the same error while doing that, then that would be very good to know!
Would this problem account for the following as well:
root@nextcloud:~ # curl https://getcaddy.com | bash -s personal tls.dns.cloudflare
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7380 100 7380 0 0 21206 0 --:--:-- --:--:-- --:--:-- 21146
Downloading Caddy for freebsd/amd64 (personal license)...
curl: (22) The requested URL returned error: 500
Aborted, error 22 in command: curl -fsSL "$caddy_url" -u "$CADDY_ACCOUNT_ID:$CADDY_API_KEY" -o "$dl"
root@nextcloud:~ #
Tried building from source, including the http.reauth plugin. I’m an extreme beginner, so it’s totally possible I messed up somewhere, but I was getting an error when building. I followed the instructions in the read-me, and created a go file with the following contents.
So, I think I have the correct plugin path but maybe that’s my problem? Anyway, after giving the “go install” command, it runs through and downloads packages, extracts them, and grabs a whole bunch more until I get this error and it stops.
Would anyone more experienced than I be willing to build this from source for Linux 64bit, with the http.reauth plugin? I’m not having any luck. I’d be more than happy to contribute to any tip jar you might have as a thanks.