OminousOrange@lemmy.catoSelfhosted@lemmy.world•How to make my server reachableEnglish
01·
3 months agoI’m definitely not a network pro, but it sounds like you’re looking to do something similar to what I have.
I’ve got nginx proxy manager as my reverse proxy with pi-hole for local DNS. All traffic goes through the pi-hole and anything going to mydomain.com has DNS entries pointing to nginx. I’ve set nginx up so service.lan.mydomain.com is for anything local and just service.mydomain.com for anything external with wildcard SSL certs for both (*.domain doesn’t seem to cover *.lan.domain so add certs for both - probably because it’s a sub-subdomain).
The Cloudflare tunnel can then just get directed to service.mydomain.com instead of the IP of the service.
I’m not sure if they’re available with UK plugs, but I’ve got a pack of Thirdreality Zigbee plugs that monitor energy use and have a button on them to toggle power.
I’ve got them connected to Home Assistant. Two do a bit of climate control in a coldroom, the others are for occupancy lighting.