V6 broke reverse proxy

The issue I am facing:
After upgrading to v6 I can no longer log in to the web UI if I access the site via https. I just get a loading spinner that hangs indefinitely after entering my password.

Details about my system:

I have nginx running on port 443, it handles tls termination and reverse proxies the pihole on port 80. Previous to v6 this worked flawlessly and I could access the admin interface via https. Something has changed with v6 and now this is broken. I still get the login page, but actually entering my password causes the UI to show a spinner in the top right which never resolves.

If I access the UI directly via port 80 it works.
What I have changed since installing Pi-hole:

Pi-hole v6 comes with an embedded webserver, so neither lighttpd nor PHP are used anymore, as mentioned in Introducing Pi-hole v6.

This also affects the API endpoint, which in turn may have to be reflected in your nginx configuration.

Other nginx users have shared their adopted configuration, see e.g. Can't get v6 webinterface behind nginx reverse proxy to work - #4 by stefan.

2 Likes

Thanks, that worked! Issue seems to be that v6 now has a /API/ endpoint. Solution was also to add to the nginx config and set the location /api/ to proxy the pihole.