Skip to content
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

Impossible to use another port than 80 to connect to pihole #90

Open
Hellnino18 opened this issue Aug 7, 2021 · 2 comments
Open

Impossible to use another port than 80 to connect to pihole #90

Hellnino18 opened this issue Aug 7, 2021 · 2 comments

Comments

@Hellnino18
Copy link

Hi!

I'm trying this exporter, but I have a problem when I try to use another port than 80/tcp to connect to my pihole.

I'm using Docker image (the latest one), but even if I change PIHOLE_HOSTNAME to 1.2.3.4:8888, I see in docker logs :

2021/08/07 12:47:11 PIHoleProtocol : http 2021/08/07 12:47:11 PIHoleHostname : 1.2.3.4 2021/08/07 12:47:11 PIHolePort : 80 2021/08/07 12:47:11 Pi-Hole Authentication Method : PIHolePassword 2021/08/07 12:47:11 Port : 9617 2021/08/07 12:47:11 Interval : 30s

Expected behavior:
PiHolePort = 8888

Actual behavior:
PiHolePort always take value of 80.

Platforms: Docker Image in Debian platform

Versions: The latest from docker hub

I changed my pihole port to 80 for the moment but this is not what I want.

Thanks for your help.

@timmeinerzhagen
Copy link

timmeinerzhagen commented Aug 22, 2021

There is an additional env variable pihole_port (See config file) which you can set, but this one is not mentioned in the README anywhere. When setting that in addition to omitting the port in hostname it works fine for me.

@mrp-yt
Copy link

mrp-yt commented Aug 22, 2021

There is an additional env variable pihole_port (See config file) which you can set, but this one is not mentioned in the README anywhere. When setting that in addition to omitting the port in hostname it works fine for me.

Thank you. That worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants