passta
November 11, 2024, 9:29pm
1
I've got an external Pi-Hole v6 instance that I am having trouble geting to work properly with Traefik v3. Basically I am having the exact same issue as this post.
Hi all,
i have pihole installed on a different machine, so pi hole do not run as a docker container next to Traefik.
What i have done is, that i added pihole as an external router to my config.yml.
If i access the URL via my browser, i can see the start page of pihole, but after fill in my admin credentials,
the site will always redirect to /admin
So, i navigate to
https://pihole.local.localdomain.com
I can see the pihole admin page.
But after i fill in my admin credentials, i will be …
I've tried the middleware and regex settings as described, but it loads the admin page with an error, if I disable the middleware settings, I get a 403 error, but then I can just click the admin link and its fine.
passta
November 12, 2024, 12:55am
2
Figured this out. In case anyone has the same issue, this solved it for me.
http:
routers:
pihole:
entryPoints:
- websecure
rule: "Host(pihole.domain.com
)"
service: pihole
tls:
certResolver: letsencrypt
middlewares:
- pihole-redirect
middlewares:
pihole-redirect:
redirectRegex:
permanent: true
regex: "^https://pihole.domain.com/?$ "
replacement: "https://pihole.domain.com/admin "
services:
pihole:
loadBalancer:
passHostHeader: true
servers:
- url: "https://pihole IP"
system
Closed
November 15, 2024, 12:56am
3
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.