Pi-hole behind Nginx Proxy Manager

Actual Behaviour:

I use Nginx Proxy Manager which handle my domains and SSL certificates. I see no option to disable self-signed certificate and allow to be managed by Nginx Proxy Manager. Putting tls.pem in /etc/pihole isn't an option, because Nginx Proxy Manager automatically renew certificate. Self-signed cert is nice option for people not having FQDN, but for a lot of self-hosting, is this the problem.
Any chance for such options or any solution for this?

Debug Token:

[Replace this text with the debug token provided from running pihole -d (or running the debug script through the web interface]

Same problem. I use my pihole for managing all DNS within my local network.

I have made an attempt at doing this, but it doesn't work.

Attempt 1: Obvious

Set up pihole as normal. Go to nginx proxy manager and just type in IP address of pihole followed by "/admin" and set the port and scheme correctly. Assign a SSL certificate. Fails to load page

Attempt 2:

Do the same as attempt 1, except add the following under advanced tab in proxy manager.
location /admin/ {
proxy_pass http://<ip_address>:80/admin/;
}

This loads the homepage (/admin/login.php), but I can't do anything else afterwards.

The solution is probably very simple, but I'm not an expert in this. Please help me out.

The obvious way is to somehow extend proxy_pass to all subdomains under that IP, but I'm at a loss as to how I set up nginx proxy manager for that

Found an answer at last:

Tested and works. Make sure you don't have admin in the redirect, you take care of that in the advanced tab

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.