From 39452b0a9c1475dcfc820ee3a1fde77fcb67ebeb Mon Sep 17 00:00:00 2001 From: Steven Foerster Date: Sat, 27 Feb 2021 11:43:35 -0500 Subject: [PATCH] add pihole admin prefix --- base.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/base.yml b/base.yml index ba22052..27616cc 100644 --- a/base.yml +++ b/base.yml @@ -161,6 +161,7 @@ services: image: pihole/pihole:v5.5.1 env_file: - /opt/mistborn_volumes/base/base.txt + - ./.envs/.production/.pihole ports: - "${MISTBORN_DNS_BIND_IP}:53:53/tcp" - "${MISTBORN_DNS_BIND_IP}:53:53/udp" @@ -168,11 +169,12 @@ services: - "traefik.enable=true" - "traefik.http.routers.pihole-http.rule=Host(`pihole.mistborn`)" - "traefik.http.routers.pihole-http.entrypoints=web" - - "traefik.http.routers.pihole-http.middlewares=mistborn_auth@file" + - "traefik.http.routers.pihole-http.middlewares=mistborn_auth@file,add-pihole-admin" - "traefik.http.routers.pihole-https.rule=Host(`pihole.mistborn`)" - "traefik.http.routers.pihole-https.entrypoints=websecure" - - "traefik.http.routers.pihole-https.middlewares=mistborn_auth@file" + - "traefik.http.routers.pihole-https.middlewares=mistborn_auth@file,add-pihole-admin" - "traefik.http.routers.pihole-https.tls.certresolver=basic" + - "traefik.http.middlewares.add-pihole-admin.addPrefix.prefix=/admin" - "traefik.http.services.pihole-service.loadbalancer.server.port=80" environment: - ServerIP=10.2.0.3 @@ -182,8 +184,6 @@ services: - DNSMASQ_LISTENING=all # TZ: 'America/New York' # Volumes store your data between container upgrades - env_file: - - ./.envs/.production/.pihole volumes: - ../mistborn_volumes/base/pihole/etc-pihole:/etc/pihole/ - ../mistborn_volumes/base/pihole/etc-dnsmasqd:/etc/dnsmasq.d/