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
I can see the pihole admin page.
But after i fill in my admin credentials, i will be redirected to
which is not available. White screen, no admin interface annymore.
If i then delete the /admin from the URL, i can see the admin panel again and i am logged in....
How is it possible with Traefik that there is not redirect to /admin, so i only want to use the URL
without /admin.
Is that possible?
Here is my config
http:
routers:
pihole:
entryPoints:
- "https"
rule: "Host(`pihole.local.localdomain.com`)"
middlewares:
- default-headers
- replacepathregex-pihole
- addprefix-pihole
- https-redirectscheme
tls: {}
service: pihole
services:
pihole:
loadBalancer:
servers:
- url: "http://xxx.xxx.xxx.xxx:80"
passHostHeader: true
middlewares:
addprefix-pihole:
addPrefix:
prefix: "/admin"
replacepathregex-pihole:
replacePathRegex:
regex: "^/admin/(.*)"
replacement: "/$$1"
https-redirectscheme:
redirectScheme:
scheme: https
permanent: true
default-headers:
headers:
frameDeny: true
sslRedirect: true
browserXssFilter: true
contentTypeNosniff: true
forceSTSHeader: true
stsIncludeSubdomains: true
stsPreload: true
stsSeconds: 15552000
customFrameOptionsValue: SAMEORIGIN
customRequestHeaders:
X-Forwarded-Proto: https
Thanks and regards
Dan