Caddy Reverse Proxy

Setting up Caddy Reverse Proxy, for two use cases:

Local testing at *.example.domain.com

Production deployment at *.domain.com

DNS-Challenge and wildcards seem the apt solution.

Domains are registered through Porkbun.

Caddy Porkbun Module

Local Testing

The porkbun module is problematic to setup, so could use suggestions.

Suggestions and advice?