caddy-docker-proxy icon indicating copy to clipboard operation
caddy-docker-proxy copied to clipboard

DNS challenge with Cloudflare

Open cirrusflyer opened this issue 1 year ago • 3 comments

I've downloaded a custom build that includes this plugin and the Cloudflare plugin. It works with manually configured sites using the Caddyfile using DNS challenge. I'm not sure how to get it to work with containers configured to use caddy-docker-plugin, or even if it's possible. Any help would be appreciated.

cirrusflyer avatar Aug 11 '24 18:08 cirrusflyer

This plugin just produces Caddyfile config. If you can do it with a Caddyfile, you can do it with this. You just need to transform it to Docker labels.

francislavoie avatar Aug 11 '24 23:08 francislavoie

Thanks, after finding this and getting it to work, I think I understand better now.

https://github.com/homeall/caddy-reverse-proxy-cloudflare

Can this work with an existing Caddyfile in addition to these dynamically generated ones? I assume not, but making sure I understand completely.

cirrusflyer avatar Aug 12 '24 01:08 cirrusflyer

Can this work with an existing Caddyfile in addition to these dynamically generated ones?

If you just want to add some Caddyfile contents of your own you could mount separate files into the CDP image and use the import directive as a label to add such.

polarathene avatar Aug 30 '24 00:08 polarathene