I use Cloudfare Tunnel to access my apps form outside the network, but if I'm at home, I want to skip the tunnel, and access them directly using the same domain name and https connection as if from the internet. I already have pihole as a DNS for this.
I can use a reverse proxy, but the problem is when generating the certificates is a bit time consuming:
- on Synology NAS where I host may apps I need to disable may firewall
- on the router I need to open up ports 80 and 443
- on Cloudfare I need to temporary rename the hostname to something else
- then I can regenerate the cerfificate (using Let's Encrypt), and undo the changes I did in steps 1-3.
All this only for one domain and every 3 months...
Is there a simpler way?