add forwarded for header for pihole

This commit is contained in:
Pim Kunis 2023-07-22 12:05:05 +02:00
parent 8a46e908ed
commit 34885e6231

View file

@ -51,4 +51,6 @@ services:
- traefik.http.routers.pihole.tls.certresolver=letsencrypt - traefik.http.routers.pihole.tls.certresolver=letsencrypt
- traefik.http.routers.pihole.service=pihole - traefik.http.routers.pihole.service=pihole
- traefik.http.services.pihole.loadbalancer.server.port=80 - traefik.http.services.pihole.loadbalancer.server.port=80
- traefik.http.middlewares.set-forwarded-for.headers.hostsProxyHeaders=X-Forwarded-For
- traefik.http.routers.pihole.middlewares=set-forwarded-for
- traefik.docker.network=traefik - traefik.docker.network=traefik