[Support] Nginx Proxy Manager (NPM) Official


Recommended Posts

31 minutes ago, coltonc18 said:

Good morning, 

I'm not sure what has happened....everything was working fine, but now all of a sudden, I'm getting 522 timeout errors.  Everything was working, but now none of my proxies work.  I have 11 setup and none work anymore.  I've got nothing in the logs either.

image.thumb.png.2c36d1f4c342e0f2564b6a958cc78956.png

figured it out...damn Brightspeed changed my IP address, but not sure how to automatically detect that with cloudflare like I did with duckdns

Link to comment
On 2/15/2024 at 5:45 AM, flosken said:

I guess most routers have the option as well. I update my IP from OPNsense.

image.thumb.png.fa09a00063f60843e3ffb5c78afd82b3.png

I've got a containter setup for it now...I guess when I switched from duckdns to cloudflare I just never set it up, and forgot about that piece. 

Edited by coltonc18
Link to comment
  • 2 weeks later...

Server Error 502 Bad Gateway for Nextcloud

 

Running Nextcloud and NGINX Proxy Manager on UnRaid. When attempting to access Nextcloud through reverse proxy, I get a 502 Bad Gateway error. Previously I had Nextcloud setup behind a reverse proxy administered by SWAG. After a server issue in which I had to delete and rebuild my docker image file, I was unable to get SWAG working. SWAG docker is still installed on the Unraid server but is not running. I have since setup NPM to handle the reverse proxy duties. I have my own domain administered by Gandi.net; and I am using Duckdns.  I have NPM running successfully with Overseer and Bitwarden (Vaultwarden) dockers and BlueIris running in a Windows VM. I went through the steps in this post

 

 

 

 

 

1.)    Does the NPM container work?

 

Yes

 

2.)    Is NPM online?

 

"http://XX.XX.XX.XX". Results in the following:

image.png.922e2b915ba0e7d4028715a8d3a9f9b7.png

HTTPS gets:

image.png.3946159e9333f626ce74b86f5b831818.png

 

3.)    Does your target container work?

 

https://192.168.1.220:8666/apps/dashboard/#/

image.png.3457ef0e9fb8e600552c8ebae3ae8ef4.png

However, http://192.168.1.220:8666 results in

image.png.1db7acf91037967df1713c37b29cc603.png

 

4.)    Does NPM reach your target container?

 

image.png.b0ecdbdd448d07bfcee4e7e90d44f404.png

However, using HTTPS

image.png.07f474fb60afb920d9e79744996eae93.png

All the dockers are running on the “Bridge” network.

 

5.)    Another reason could be that you selected the wrong scheme. For example, you used "http", but your target container only supports incoming connections through the scheme "https".

 

I have tried both http and https. I have tried with and without HSTS.

 

6.)    Or you used the wrong ports. So double check your proxy host settings!

 

I have checked the ports multiple times.

 

A weird, maybe related, side note: I cannot enter http://nextcloud.xxxxxxx.xxx , it always gets changed to https://nextcloud.xxxxxxx.xxx

 

 

 

 

 

 

Edited by crusemm
additional information
Link to comment
6 hours ago, Kilrah said:

You need to use both the http port of the NC container and the http forwarding scheme. Seems you're using the https container port.

So how do I set that up? where is it and what changes do I need to make? Is it a NC  setting, or something in NPM?

Link to comment
5 minutes ago, Kilrah said:

That's it, but the whole point is to use the correct port. I don't know what your port maps for nextcloud are / whether 8666 is the correct http one and not https.

image.thumb.png.9881519301a022699bc82a0a9c8dd31a.png

From the nextcloud docker

image.png.b3138c61707049694a9af30c2a6b2987.png

From the NPM docker settings

image.png.1b2dbbadb629c112edf276a14187fd2a.png

from the router Port Forwarding

Edited by crusemm
add information
Link to comment

Started seeing this on my container logs. Any ideas?:
 

[3/9/2024] [8:51:02 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-7' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo 'dns_godaddy_secret = E8ixmXcgsMcPrghtqaEzqD
dns_godaddy_key = dKszgmKm6V5H_5UdqHPfw85JAEcekAwYmeV' > '/etc/letsencrypt/credentials/credentials-7' && chmod 600 '/etc/letsencrypt/credentials/credentials-7'; }
[3/9/2024] [8:51:02 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-8' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo 'dns_godaddy_secret = 8joRh5JhKckugx3Rj1SjBS
dns_godaddy_key = dKszgmKm6V5H_S3kkuLzm23myxdecRv45V3' > '/etc/letsencrypt/credentials/credentials-8' && chmod 600 '/etc/letsencrypt/credentials/credentials-8'; }
[3/9/2024] [8:51:02 PM] [Certbot  ] › ▶  start     Installing godaddy...
[3/9/2024] [8:51:02 PM] [Global   ] › ⬤  debug     CMD: . /opt/certbot/bin/activate && pip install --no-cache-dir  certbot-dns-godaddy==$(certbot --version | grep -Eo '[0-9](\.[0-9]+)+')  && deactivate
[3/9/2024] [8:51:11 PM] [Certbot  ] › ✖  error     ERROR: Could not find a version that satisfies the requirement certbot-dns-godaddy==2.9.0 (from versions: 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 2.6.0, 2.7.4, 2.8.0)
ERROR: No matching distribution found for certbot-dns-godaddy==2.9.0

[3/9/2024] [8:51:11 PM] [Global   ] › ✖  error     Some plugins failed to install. Please check the logs above
[3/9/2024] [8:51:12 PM] [Migrate  ] › ℹ  info      Current database version: none
[3/9/2024] [8:51:12 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-7' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo 'dns_godaddy_secret = E8ixmXcgsMcPrghtqaEzqD
dns_godaddy_key = dKszgmKm6V5H_5UdqHPfw85JAEcekAwYmeV' > '/etc/letsencrypt/credentials/credentials-7' && chmod 600 '/etc/letsencrypt/credentials/credentials-7'; }
[3/9/2024] [8:51:12 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-8' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo 'dns_godaddy_secret = 8joRh5JhKckugx3Rj1SjBS
dns_godaddy_key = dKszgmKm6V5H_S3kkuLzm23myxdecRv45V3' > '/etc/letsencrypt/credentials/credentials-8' && chmod 600 '/etc/letsencrypt/credentials/credentials-8'; }
[3/9/2024] [8:51:12 PM] [Certbot  ] › ▶  start     Installing godaddy...
[3/9/2024] [8:51:12 PM] [Global   ] › ⬤  debug     CMD: . /opt/certbot/bin/activate && pip install --no-cache-dir  certbot-dns-godaddy==$(certbot --version | grep -Eo '[0-9](\.[0-9]+)+')  && deactivate
[3/9/2024] [8:51:21 PM] [Certbot  ] › ✖  error     ERROR: Could not find a version that satisfies the requirement certbot-dns-godaddy==2.9.0 (from versions: 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 2.6.0, 2.7.4, 2.8.0)
ERROR: No matching distribution found for certbot-dns-godaddy==2.9.0

[3/9/2024] [8:51:21 PM] [Global   ] › ✖  error     Some plugins failed to install. Please check the logs above
[3/9/2024] [8:51:22 PM] [Migrate  ] › ℹ  info      Current database version: none
[3/9/2024] [8:51:22 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-7' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo 'dns_godaddy_secret = E8ixmXcgsMcPrghtqaEzqD
dns_godaddy_key = dKszgmKm6V5H_5UdqHPfw85JAEcekAwYmeV' > '/etc/letsencrypt/credentials/credentials-7' && chmod 600 '/etc/letsencrypt/credentials/credentials-7'; }
[3/9/2024] [8:51:22 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-8' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo 'dns_godaddy_secret = 8joRh5JhKckugx3Rj1SjBS
dns_godaddy_key = dKszgmKm6V5H_S3kkuLzm23myxdecRv45V3' > '/etc/letsencrypt/credentials/credentials-8' && chmod 600 '/etc/letsencrypt/credentials/credentials-8'; }
[3/9/2024] [8:51:22 PM] [Certbot  ] › ▶  start     Installing godaddy...
[3/9/2024] [8:51:22 PM] [Global   ] › ⬤  debug     CMD: . /opt/certbot/bin/activate && pip install --no-cache-dir  certbot-dns-godaddy==$(certbot --version | grep -Eo '[0-9](\.[0-9]+)+')  && deactivate

 

I also am no longer able to login to the web UI.. :(

 

Container: jc21/nginx-proxy-manager

Link to comment

Hi, if I have understood correctly, the GeoIP2 module is now supported with the latest release of NPM. 
I have seen a small config example here github issue. Unfortunately, I didn't quite understand how and where I have to enter my whitelisted countries. 
has anyone here already got the module to run successfully or can help me? Thank you!

Link to comment
On 3/9/2024 at 8:54 PM, jarkle said:

Started seeing this on my container logs. Any ideas?:
 

[3/9/2024] [8:51:02 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-7' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo 'dns_godaddy_secret = E8ixmXcgsMcPrghtqaEzqD
dns_godaddy_key = dKszgmKm6V5H_5UdqHPfw85JAEcekAwYmeV' > '/etc/letsencrypt/credentials/credentials-7' && chmod 600 '/etc/letsencrypt/credentials/credentials-7'; }
[3/9/2024] [8:51:02 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-8' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo 'dns_godaddy_secret = 8joRh5JhKckugx3Rj1SjBS
dns_godaddy_key = dKszgmKm6V5H_S3kkuLzm23myxdecRv45V3' > '/etc/letsencrypt/credentials/credentials-8' && chmod 600 '/etc/letsencrypt/credentials/credentials-8'; }
[3/9/2024] [8:51:02 PM] [Certbot  ] › ▶  start     Installing godaddy...
[3/9/2024] [8:51:02 PM] [Global   ] › ⬤  debug     CMD: . /opt/certbot/bin/activate && pip install --no-cache-dir  certbot-dns-godaddy==$(certbot --version | grep -Eo '[0-9](\.[0-9]+)+')  && deactivate
[3/9/2024] [8:51:11 PM] [Certbot  ] › ✖  error     ERROR: Could not find a version that satisfies the requirement certbot-dns-godaddy==2.9.0 (from versions: 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 2.6.0, 2.7.4, 2.8.0)
ERROR: No matching distribution found for certbot-dns-godaddy==2.9.0

[3/9/2024] [8:51:11 PM] [Global   ] › ✖  error     Some plugins failed to install. Please check the logs above
[3/9/2024] [8:51:12 PM] [Migrate  ] › ℹ  info      Current database version: none
[3/9/2024] [8:51:12 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-7' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo 'dns_godaddy_secret = E8ixmXcgsMcPrghtqaEzqD
dns_godaddy_key = dKszgmKm6V5H_5UdqHPfw85JAEcekAwYmeV' > '/etc/letsencrypt/credentials/credentials-7' && chmod 600 '/etc/letsencrypt/credentials/credentials-7'; }
[3/9/2024] [8:51:12 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-8' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo 'dns_godaddy_secret = 8joRh5JhKckugx3Rj1SjBS
dns_godaddy_key = dKszgmKm6V5H_S3kkuLzm23myxdecRv45V3' > '/etc/letsencrypt/credentials/credentials-8' && chmod 600 '/etc/letsencrypt/credentials/credentials-8'; }
[3/9/2024] [8:51:12 PM] [Certbot  ] › ▶  start     Installing godaddy...
[3/9/2024] [8:51:12 PM] [Global   ] › ⬤  debug     CMD: . /opt/certbot/bin/activate && pip install --no-cache-dir  certbot-dns-godaddy==$(certbot --version | grep -Eo '[0-9](\.[0-9]+)+')  && deactivate
[3/9/2024] [8:51:21 PM] [Certbot  ] › ✖  error     ERROR: Could not find a version that satisfies the requirement certbot-dns-godaddy==2.9.0 (from versions: 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 2.6.0, 2.7.4, 2.8.0)
ERROR: No matching distribution found for certbot-dns-godaddy==2.9.0

[3/9/2024] [8:51:21 PM] [Global   ] › ✖  error     Some plugins failed to install. Please check the logs above
[3/9/2024] [8:51:22 PM] [Migrate  ] › ℹ  info      Current database version: none
[3/9/2024] [8:51:22 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-7' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo 'dns_godaddy_secret = E8ixmXcgsMcPrghtqaEzqD
dns_godaddy_key = dKszgmKm6V5H_5UdqHPfw85JAEcekAwYmeV' > '/etc/letsencrypt/credentials/credentials-7' && chmod 600 '/etc/letsencrypt/credentials/credentials-7'; }
[3/9/2024] [8:51:22 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-8' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo 'dns_godaddy_secret = 8joRh5JhKckugx3Rj1SjBS
dns_godaddy_key = dKszgmKm6V5H_S3kkuLzm23myxdecRv45V3' > '/etc/letsencrypt/credentials/credentials-8' && chmod 600 '/etc/letsencrypt/credentials/credentials-8'; }
[3/9/2024] [8:51:22 PM] [Certbot  ] › ▶  start     Installing godaddy...
[3/9/2024] [8:51:22 PM] [Global   ] › ⬤  debug     CMD: . /opt/certbot/bin/activate && pip install --no-cache-dir  certbot-dns-godaddy==$(certbot --version | grep -Eo '[0-9](\.[0-9]+)+')  && deactivate

 

I also am no longer able to login to the web UI.. :(

 

Container: jc21/nginx-proxy-manager

Fixed it with this:
https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3592

Edited by jarkle
Link to comment

Hey guys.

I use NPM to direct to two different hosted sites access via completely different external domains.  

I use two separate NGINX containers - one for each site.

 

I'm wondering if I can combine those into one container.

 

Like instead of having

/appdata/nginx/www/index.html

for one site and

/appdata/nginxphp8/www/index.html

for the other site (two different container appdata folders).

 

I want something like 

/appdata/nginx/www/site1/index.html

/appdata/nginx/www/site2/index.html

 

Is this possible using NPM?

I see a Custom Location tab in Edit Proxy Host but not sure that does what I want it do to.  

I tried to enter the correct folder in the location but I have a feeling this isn't exactly what I think it is.

 

Thanks for any info/advice!

 

Link to comment

Hi, aren't the certificates automatically renewed by NPM ?

I got an e-mail from let´s encrypt:

Quote

Your certificate (or certificates) for the names listed below will expire in 19 days (on 2024-04-01). Please make sure to renew your certificate before then, or visitors to your web site will encounter errors.

We recommend renewing certificates automatically when they have a third of their total lifetime left. For Let's Encrypt's current 90-day certificates, that means renewing 30 days before expiration

 

 

Link to comment

Hello People:)

 

I've installed nginx proxy manager on my unraid server.. The problem is that i now cant access my jellyfin from my local lan.. 

I've googled this error and some say that it could be a let's encrypt error??

 

Anyone who have an idea, on how to solve this??

 

Thank you.

regards:)

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.