Figuring out how to start.
Apart from changing proxy to reverse_proxy in the caddy file and pulling the new image, I’m kinda stuck.
I used to use teh abisoft caddy image for v1, which may have had the cloudflare plugin added? So first step, how to I add that? Do i ned to build each time?
Then as I’ll be using a new machine with a branch of my caddy file, how can I test the certs are being pulled down ( moving the the acme test api end point, the docs said I could do it, but didn’t show me how).
FROM caddy:2.0.0-builder AS builder
RUN caddy-builder \
github.com/caddy-dns/cloudflare
FROM caddy:2.0.0
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
I ned to verify if the ${PWD} does anything, I cheated and put the full path. But this built the image an dused it with the cloudflare plugin.
So next step is understanding how to use it.
Current caddyfile has a tls section which told it my meail address and how to pull from cloudflare.
But now it seems to waht a special challenge field. But it doesn’t quite tell me where it should go:
And just FYI the JSON docs on the website – for that field in particular – are outdated until about an hour from now. They were one of the last things to change.
I’m still updating the website docs, been a little busy today. The DNS providers were the last thing to squeeze in so they’re not really documented yet.
So my question is how should the json look for that.
All the posts i’ve seen and or docs don’t really present a single json to apply those two directives. In that post I presented a possible json down the bottom (which I’ve subsequenty found does not work).
So my question is, what does the entire section look like.