Using Caddy on LAN, while still having Cloudflare acme_dns for WAN

I know this has been asked before, but I don’t see any conclusive answers. One time JSON was mentioned, the other a matcher that doesn’t seem to exist. I checked the documentation of the JSON configuration, and I didn’t really see how I’d make a remote_ip rule.

The more I look into this, the more complicated it seems. I want to be able to access my (sub)domains via LAN, this way I can move certain services from LAN accessible sockets, to simpler architectures like CGI. At first I thought maybe I could use mDNS, it’d be the most ideal, since I wouldn’t have to even make rewrites on my local DNS server. Then I learned that mDNS lacks subdomains, .s in mDNS are apart of the domain, it’s quite messy. It’d be great if Caddy itself had an mDNS plugin.

I like Caddy, and would like to continue using it, but if there’s no solution here, maybe I can get some recommendations for other reverse proxies that have this functionality?