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 Lets’ Encrypt as wildcard locally to test services at *example.domain.com, then put them into production on mainsite wildcard *.domain.com on 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 thoughts.

  • OR3X@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 days ago

    How are you running Caddy? I just recently set this up and I’m using Caddy via docker. There’s a ready-made Caddy docker container that is already setup with Porkbun’s module. You just pull the container and make sure you have your API keys set correctly in your docker-compose.yml file and Caddyfile. This is only necessary if you need to use DNS-01 challenge. If you want to use HTTP-01 you can just enter your DNS records manually in your Porkbun dashboard.