Nginx Proxy Manager internal only proxy host


three88bu

6 posts in this topic Last Reply

Recommended Posts

Hey all, pretty new to Unraid and reverse proxys, etc...

 

I am using NPM to allow public access to a couple of services and that all works well. I wanted to configure a few more services but only for local access. For example:

 

sabnzbd.local or radarr.local, etc.

 

I added a static DNS entry to my router (Untangle) for sabnzbd.local that points to 192.168.1.20 (my Unraid/Nginx container IP) and configured a proxy host for sabnzbd.local that points to 192.168.1.20:8090. When I try to access sabnzbd.local from my PC, it sends me to the unraid login page. That tells me that NPM is not intercepting this request.

 

Lots of googling and I am not finding anything. Im starting to think im going about this fundamentally wrong or something. Any ideas? What am I missing?

 

Thanks!

Link to post

Well, it finally dawned on me what I was doing wrong here. (Just in case anyone else makes my same mistake:)

 

I had the unRaid management ports set to 80 and 443 so naturally I had to set the http and https ports of NPM to something else. In my case, 180 and 1443. Since I had my router set up to forward WAN requests of 80/443 to 180/1443, all worked well from the outside. Inside the network however, when I access sabnzbd.mydomain.com it will implicitly use port 80/443 which of course just maps over to the unRaid mgmt ui, NOT npm of course. Doh!

 

So, I just changed the mgmt ports, and threw NPM onto 80/443 and all is well now.

Link to post
37 minutes ago, ubermetroid said:

Hold up. Are you using NPM to reverse proxy LAN requests with lets encrypt support?

I effectively am. While that wasn't my original goal for using NPM, it was just too easy not to really. I'm using a wildcard cert.

Link to post
1 hour ago, three88bu said:

I effectively am. While that wasn't my original goal for using NPM, it was just too easy not to really. I'm using a wildcard cert.

I'm not following. How do you use the wildcard cert? When I click on "get cert" it just errors out for me.

Link to post
22 minutes ago, ubermetroid said:

I'm not following. How do you use the wildcard cert? When I click on "get cert" it just errors out for me.

This is how you'd do a wildcard cert. You have to select Use a DNS challenge and then select who your DNS provider is. Mine is Cloudflare. I had to get my API key from their management dashboard and fill it in replacing that 0123456789... value. Im sure other providers are more or less the same. When it asks for the domain for the cert, you'd do *.your-domain.com or whatever.

 

Of course, you dont HAVE to use a wildcard cert, but if you want to handle say, 10 services, then you'd need 10 certs.

Screenshot 2021-01-03 102911.png

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.