Using On-Demand TLS for Wildcard Domains

Hello,

I would like to know if it is possible to use on-demand TLS in Caddy to issue certificates for wildcard domains when a subdomain is accessed for the first time. I have many subdomains, so it is expensive to issue a certificate for each one. At the same time, I have a large number of domains, which makes it difficult to add them all to the configuration. Is there a solution for this?