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

Issue with domain_name_enable #580

Open
fijar-lazuardy opened this issue Feb 17, 2024 · 6 comments
Open

Issue with domain_name_enable #580

fijar-lazuardy opened this issue Feb 17, 2024 · 6 comments

Comments

@fijar-lazuardy
Copy link

device: Raspberry pi 4
OS: Headless Raspberry Pi OS 64-bit

Issue: Can't open enabled services {{domain_pihole}}.{{domain_name}} or any other services with domain_name_enable: true, also can't open <pi ip>/admin to access pihole (<pi ip>:38080 works, same with other services).
docker container ls output:
image

nginx-proxy log:
image

checked VIRTUAL_PORT variable inside docker-compose, seems about right.

@martinbrose
Copy link
Contributor

martinbrose commented Feb 27, 2024

@fijar-lazuardy, have you considered this closed issue, which might be related?

@martinbrose
Copy link
Contributor

And maybe a very basic point. Did you change anything in the example config?

I have the following settings in config.yml:

domain_name_enable: true                                                                                                            
domain_name: 'home.local'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
domain_pihole: 'pihole' 
domain_grafana: 'grafana'                                                                                                                                                                                                                                                                                                                                                         
domain_prometheus: 'prometheus'

And I can access the services when entering:
Pihole
http://pihole.home.local:38080/admin/
Grafana
http://grafana.home.local or http://grafana.home.local:3030
Prometheus
http://prometheus.home.local

@fijar-lazuardy
Copy link
Author

@fijar-lazuardy, have you considered this closed issue, which might be related?

I have monitoring enabled, still same issue persists. But that's okay, I can live with IP and forward it manually on hosts

@fijar-lazuardy
Copy link
Author

And maybe a very basic point. Did you change anything in the example config?

I have the following settings in config.yml:

domain_name_enable: true                                                                                                            
domain_name: 'home.local'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
domain_pihole: 'pihole' 
domain_grafana: 'grafana'                                                                                                                                                                                                                                                                                                                                                         
domain_prometheus: 'prometheus'

And I can access the services when entering: Pihole http://pihole.home.local:38080/admin/ Grafana http://grafana.home.local or http://grafana.home.local:3030 Prometheus http://prometheus.home.local

I do exactly this, that's why I'm confused haha

@martinbrose
Copy link
Contributor

martinbrose commented Mar 1, 2024

That indeed is strange.

I wonder what your pihole.log in the Pi-Hole web frontend shows?
Mine is showing this...
Screenshot 2024-03-01 at 16 14 47

Maybe check what's in your /etc/hosts file of your pihole docker container?
With the commands:
docker exec -it pihole /bin/bash
and
tail /etc/hosts

Screenshot 2024-03-01 at 16 23 24

@martinbrose
Copy link
Contributor

I just tried a fresh install on a Debian 12 virtual machine and had no problems accessing the services via {{domain_pihole}}.{{domain_name}}.

Installed normally with the setting as above and changed the DNS setting to the local Pi-Hole install (127.0.0.1).

Just to double check, from the computer you're trying to reach the services, you have the Pi-Hole service entered as the DNS server?

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

2 participants