cross-posted from: https://discuss.online/post/41958206
Open to suggestions for managing Caddy for domains from Porkbun.
- Porkbun itself is using Cloudflare.
- Their Caddy module is confusing to setup due to API changes and older documentation.
- I’d like to use a declarative json configuration, but first I just need Porkbun to play nice enough to work when adding subdomains via wildcard.
The Goal
Setup legit Let’s Encrypt as wildcard locally to test services at
*example.domain.com, then put them into production on mainsite wildcard*.domain.comon VPS or similar.Seeking Advice
Can anyone advise on setup recommendations. I’m currently using Nginx, which I had no difficulty setting up with ACME challenge. Perhaps I’m approaching Caddy in the wrong way. Thanks for any ideas!


my homelab is using this setup, I configured porkbun API, compiled caddy with the DNS challenge plugin and configured it.
I am using ansible with jinja templates there, if you are not familiar with it or have any doubt feel free to ask.