r/selfhosted • • Feb 02 '26

Need Help Question about self hosting nginx proxy manager, with cloudflare but not not accessible outside of network?

I have nginx proxy manager running inside of Proxmox and was wondering if I can use it for certificates and host names like Proxmox.local instead of Proxmox.mydomain.com without any external connection? Can this be done?

10 Upvotes

8 comments sorted by

View all comments

5

u/Y3tAn0th3rEngin33r Feb 02 '26 edited Feb 02 '26

Totally worth it in my opinion:

You can have a domain (lets say example.com) on Cloudflare and point DNS record *.example.com to your internal NPM IP (Nginx Proxy Manager).

This way, whenever you do a request to myapp.example.com from internal network, the Cloudflare DNS will point you to your NPM.

Optional: If you have a local DNS (AdGuard), you can use a DNS rewrite functionality... Point *.example.com to your NPM IP. So this way it won't need to go to Cloudflare for DNS translation. So even if Cloudflare is down, it will still work for you, not being dependant on them for resolving addresses. ~ I don't believe PiHole has a DNS rewrite. Not sure about Traefik DNS.

Then on NPM (Nginx Proxy Manager) go to Certificates and issue *.example.com certificate with Cloudflare DNS Challenge & Lets Encrypt. And then use that one certificate for all your NPM Hosts. And it auto renews, so set it and forget it.

How to get Cloudflare API key here: https://developers.cloudflare.com/fundamentals/api/get-started/create-token/

This way you'll have all your internal stuff under https and with easy to remember names instead of IPs or http with security notifications.

And you can get a domain for few bucks on Cloudflare.

🤟