Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Nginx Proxy Manager & Cloudflare

Featured Replies

I am facing a problem which I can no longer solve without your help.

 

I need for my Unraidserver SSL Cert (Emby, Nextcloud .. ) 

 

For my Reverse Proxys i use Nginx Proxy Manager and for DNS Cloudflare. 

 

So, i create on Cloudflare a CNAME and set On WITH PROXY 

On the Proxy Manager i type in my IP and the Port. Turn HTTPS On and create a SSL Cert with Letsencrypt. 

 

Everything is finish And I'm trying to get to my website with the subdomain.

But here I am told that the connection is not secure and that he is using the root certificate.

 

How can I now use my certificate so that my future subdomains are encrypted with SSL?

I hope someone here can help me.

It sounds like you are terminating the SSL endpoint with cloudflare using the WITH PROXY. This will use the IP address of one of the cloudflare servers. You are then trying to SSL back to your Unraid Proxy Manager. So cloudflare may be giving that error because cloudflare is not trusting your certificate by let's encrypt because it doesn't have it stored (which I think cloudflare handles on it's own).

 

So it sounds like your setup looks like this:

 

subdomain.example.com:443 -(ssl)> cloudflare -(ssl)> proxymanager:443 -> subdomain.internal:8080

 

I am currently trying to work on a similar solution but haven't gotten as far yet. If you want to try and test this out switch the cloudflare DNS setting to DNS ONLY instead of WITH PROXY and see if that works out.

 

That setup would like like this:

subdomain.example.com:443 -(ssl)> proxymanager:443 -> subdomain:internal:8080

 

Some one with more experience may be able to set me straight as well though.

Edited by xorso
Fixing grammer

  • Author

okay, i deactivated the proxy. should I also turn off the cloudflare's ssl encryption?

 

I just tried it with letsencrypt docker. everything entered for nextcloud and i can't get on the server.

 

http://next.mysubdomain.eu only work till login page 

Https://next.mysubdomain.eu Not work

 

Edited by catrock

So there should be no SSL until you hit your NGINX Proxy Manager instance. If you can't get HTTPS to work make sure your firewall is appropriately port forwarding to your NGINX Proxy Manager SSL port.

The forwards should look something like this if you are using the Proxy Manager App in Unraid:

 

Firewall  -> Internal Port

80 -> <ip of unraid host>:1880

443 -> <ip of unraid host>:18443

  • Author

I use a FritzBox 

On the Port Tab i have set the Internel Port 80 to extern 1880 and 

port 443 to 18443 (I Add a Screenshot)

 

and After That, the Same Problem. 
 

The docker use Bridge Mode as Network. 
maybe that could be the problem?

52A05917-8388-4698-926F-AA0CE15FB925.jpeg

I am not too familiar with Fritz box but I think you have the ports mixed up. You need the external port (WAN side) to be 443 and the internal port (the one pointing to NPM, LAN side) to be 18443

  • Author

.... ok .. this fix my problem .. xD 

THX U ❤️❤️ 

 

50 minutes ago, xorso said:

I am not too familiar with Fritz box but I think you have the ports mixed up. You need the external port (WAN side) to be 443 and the internal port (the one pointing to NPM, LAN side) to be 18443

 

Bildschirmfoto 2020-09-01 um 21.06.24.png

  • 7 months later...

Does anyone know a good way to debug NGINX PROXY MANAGER and its failing letsencrypt?

I have the ports forwarded correctly, but the logs say Challenge failed for the subdomain I'm trying to add into cloudflare.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.