-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pictl does not find pi-hole when Admin interface hosted in nginx instead of lighttps #16
Comments
Not too familiar with how Nginx would interfere in this instance. Have you actually disabled lighttpd entirely and swapped it for Nginx or is Nginx acting as a reverse proxy? This is probably caused by me being overzealous with my verification of a Pi-Hole address. I could probably make it warn users instead of just rejecting it. My checks are likely specific to lighttpd. If your web interface works then my checks are looking for too specific of a response. Just to check something, if you send a GET to |
I just saw that if I use 127.0.0.1 directly, I get a message about host check failure:
I need to use "localhost" or 192.168.178.3 here:
No X-Pi-hole header found. |
Yep: Lines 233 to 236 in 8ce9f69
The missing header is making Pi-CLI think there's nothing there when there clearly is. I'll implement a fix that makes this check less strict. I think checking for a HTTP 200 is probably fine for most cases. Leave it with me. |
@schuettecarsten Please try the executables at #17. This PR should hopefully rectify the issue https://github.com/Reeceeboii/Pi-CLI/releases/tag/Pre-release |
#16 Made address check more lenient and fixed unrelated typo
I have disabled lighttpd and use nginx to host the admin website of PiHole.
When setting up pi-cli, I and up in a loop:
Port/IP are valid, nginx ist listening:
The text was updated successfully, but these errors were encountered: