lucaslorentz / caddy-docker-proxy

Caddy as a reverse proxy for Docker
MIT License
3.02k stars 173 forks source link

DNS challenge with Cloudflare #650

Open cirrusflyer opened 3 months ago

cirrusflyer commented 3 months ago

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.

francislavoie commented 3 months ago

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.

cirrusflyer commented 3 months ago

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.

polarathene commented 2 months ago

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.