I did similar with caddy.
I own a domain and my server runs pihole and it is configured as DNS server.
So what I did was setup caddy to create local subdomains that are only reachable through my network.
For example:
subdomain.mydomain.com , that works only from home. It works with ssl as well
I did similar with caddy. I own a domain and my server runs pihole and it is configured as DNS server. So what I did was setup caddy to create local subdomains that are only reachable through my network. For example: subdomain.mydomain.com , that works only from home. It works with ssl as well