Nginx Proxy Manager internal only proxy host


three88bu

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!

  • Thanks 1
Link to comment

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.

  • Thanks 1
Link to comment
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 comment
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 comment
  • 3 months later...
  • 9 months later...

Hi

But your not using your "sabnzd.local" then ? are you ?

How did you do it ? how do you use nginx proxy manager on the local network ?

 

On 12/28/2020 at 6:09 PM, three88bu said:

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.

 

  • Upvote 1
Link to comment
  • 11 months later...

Just wanted say THANK YOU! I spent so many hours on this and i am only implementing only on internal ip only...LOL

 

Set Unraid http/https port from 80 and 443 to like 180 and 1443 ( Unraid Settings - Management Settings )

 

Set Nginx-Proxy-Manager-Official docker setting to listen to 80:80 and 443:443


If you are using Adguard, then set DNS rewrite like plex.local to YOUR UNRAID/NGINX IP (192.168.10.100)

 

Configure NGINX proxy to point plex.local to 192.168.10.100 and port 32400

  • Like 1
Link to comment

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.