# Configure Traefik to route pi.$DOMAINNAME to external Pi Hole Instance [http.routers] [http.routers.pihole-rtr] entryPoints = ["https"] rule = "Host(`pihole.$DOMAINNAME.app`)" service = "pihole-svc" middlewares = ["chain-oauth", "pihole-add-admin"] [http.routers.pihole-rtr.tls] certresolver = "dns-cloudflare" [http.middlewares] [http.middlewares.pihole-add-admin.addPrefix] prefix = "/admin" [http.services] [http.services.pihole-svc] [http.services.pihole-svc.loadBalancer] passHostHeader = true [[http.services.pihole-svc.loadBalancer.servers]] url = "$PIHOLE_IP:80" #Whatever your Pi IP is