Open njm2112 opened 4 years ago
Same problem here.
My solution:
Download caddy here with plugins and then -v
like this
.
My solution: Download caddy here with plugins and then
-v
like this.
That actually works very well. This let me have the latest version of the tls.cloudflare plugin which supports CLOUDFLARE_DNS_API_TOKEN
instead of email + key.
My solution is to build my own alpine-based docker containers .
FROM alpine:latest
ARG plugins=tls.dns.cloudflare
RUN apk add --no-cache curl libcap
RUN curl --silent --show-error --fail --location --header "Accept: application/tar+gzip, application/x-gzip, application/octet-stream" -o - \
"https://caddyserver.com/download/linux/amd64?plugins=${plugins}&license=personal&telemetry=off" \
| tar --no-same-owner -C /usr/bin/ -xz caddy \
&& chmod 0755 /usr/bin/caddy \
&& addgroup -S caddy \
&& adduser -D -S -s /sbin/nologin -G caddy caddy \
&& setcap cap_net_bind_service=+ep `readlink -f /usr/bin/caddy` \
&& /usr/bin/caddy -version
COPY Caddyfile /etc/Caddyfile
ENTRYPOINT ["/usr/bin/caddy"]
CMD ["--conf", "/etc/Caddyfile"]
Thanks yobasystems/alpine-caddy for the Dockerfile.
Use this new image which is valid and up-to-date: https://hub.docker.com/r/adriel/caddy
Resolution of this issue seems incorrectly to be indicated in this closed issue: https://github.com/abiosoft/caddy-docker/issues/195#issue-453099523
when running
docker build -t caddy --build-arg plugins=git,cloudflare,jwt,login,filter,cors,realip,filemanager,cache,expires github.com/abiosoft/caddy-docker.git
, the build process clearly shows:First issue is that
build
is ignoring the plugins passed to it; why?The plugins that are installed using the image built above are as follows:
Second issue: where is the cloudflare plugin??? even if not accepting the plugins list I passed through to
build
, the cloudflare plugin is in the list that should be installed per the output ofbuild
so what gives?