r/nginxproxymanager • • 13d ago

Complete Newbie

Hi all,

I dont seem to be able to find a stright answer or I can search the internet correctly.

Im trying to install NGINX so I can use vaultwarden. I am struggerling to find out how to configure NGINX for internal use/access only?

Thanks in advanced

SupaCan

1 Upvotes

5 comments sorted by

2

u/Top-Run5587 13d ago

You need something to handle local DNS, like a Pi-hole or a firewall that supports it. Let’s say your Vaultwarden host is going to be called vault.home.arpa on your LAN. The local DNS request for vault.home.arpa would return the IP of NGINX instead of the Vaultwarden host. NGINX knows the IP of your Vaultwarden host and sends your LAN traffic to it, with HTTPS if desired. It’s not rocket science but it takes some thought to wrap your head around it. Figuring out how to implement local DNS is where I’d start.

1

u/Important-Gate-7248 3d ago

If you open the Vaultwarden web vault from another device on your LAN, the connection from that browser to Nginx needs HTTPS. For vault.home.arpa, you can issue the certificate with a private CA and trust its root on each device.

If you own a domain, you can point a name like vault.example.com at Nginx’s LAN IP in your local DNS and use Let’s Encrypt’s DNS-01 challenge for the certificate. That lets you keep the router’s inbound ports closed.

1

u/ielgyama 13d ago

Try pointing your fqdn in your dns server to the internal ip of the nginx

1

u/JumpingCoconutMonkey 13d ago

I'm not sure exactly what you are asking, but my setup is: Local DNS (I use PiHole) that resolves whatever address you want to the IP of your NPM. NPM takes that name and matches it to the IP:port of the service. And that's it for local.

0

u/33beno33 13d ago

Use Caddy instead.