Giter VIP home page Giter VIP logo

Comments (4)

francislavoie avatar francislavoie commented on May 19, 2024 5

See the docs on https://hub.docker.com/_/caddy, it should cover everything you need to know.

FROM caddy:<version>-builder AS builder

RUN xcaddy build \
    --with github.com/caddy-dns/cloudflare

FROM caddy:<version>

COPY --from=builder /usr/bin/caddy /usr/bin/caddy

from cloudflare.

MostHated avatar MostHated commented on May 19, 2024

I second this request.

from cloudflare.

MostHated avatar MostHated commented on May 19, 2024

Thank you for that info, I had not seen it on the Caddy site or anywhere else prior, and that is definitely easy enough.

I did attempt this, but am getting the following "Invalid request headers" error:

"tls.obtain","msg":"will retry","error":"[<mysite.com>] Obtain: [<mysite.com>] solving challenges: presenting for challenge: adding temporary record for zone <mysite.com>.: got error status: HTTP 400: [{Code:6003 Message:Invalid request headers}] 

Is that something with the plugin, or did I probably do something incorrectly? (I, of course, just changed the message to <mysite.com>)

from cloudflare.

polarathene avatar polarathene commented on May 19, 2024

Is that something with the plugin, or did I probably do something incorrectly?

For me, I had accidentally run Caddy without providing my CF API token via ENV var which the Caddyfile config expected.

That resulted in Cloudflare error to Caddy "Invalid request headers". Correctly setting the ENV so Caddy had an actual value to use resolved it :)

from cloudflare.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.