nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

Allow https on admin portal.

Open algsupport opened this issue 2 years ago • 1 comments

Hello,

I have seen this issue being discussed before but the solution to add the admin page in the the proxy manager config doesn't work well in my use case.

Let me explain. In my firewall I maintain a whitelist that allows access to backend/admin stuff. So, a very frequent setup I have is like the following:

If destination port is 443 and source address is in cloudflare-ip-range, forward traffic to "public" proxy manager. If destination port is 443 and source address is in whitelist, forward traffic to "secure" proxy manager.

The above works when I have several backends/admin portals in a single location. But I have some locations where the only admin page is the NPM admin page.

One solution is to spin up a second NPM instance just for this reason, but it's a bit of redundant overhead.

What I am suggesting, is adding a couple of env variables in the docker-compose file like follows:

USE_SSL_FOR_ADMIN=true ADMIN_SSL_CERT=/etc/letsencrypt/live/myadmindomain/cert.pem ADMIN_SSL_PRIV_KEY=/etc/letsencrypt/live/myadmindomain/key.pem

Then run certbot outside the container and create the ssl certificate.

This way I can just forward my whitelisted traffic directly to the NPM admin securely.

Hope this makes sense. Happy new year and thank you for your time.

Regards

algsupport avatar Jan 04 '23 14:01 algsupport

Issue is now considered stale. If you want to keep it open, please comment :+1:

github-actions[bot] avatar Jan 31 '24 01:01 github-actions[bot]