generated from sambuc/tpl.docker-compose
Be as much as possible coherent with naming
This commit is contained in:
@@ -39,21 +39,21 @@ services:
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=proxy_infra"
|
||||
- "traefik.http.services.pihole.loadbalancer.server.port=80"
|
||||
- "traefik.http.services.pi-hole.loadbalancer.server.port=80"
|
||||
|
||||
- "traefik.http.middlewares.pi-hole-redirect.redirectregex.permanent=true"
|
||||
- "traefik.http.middlewares.pi-hole-redirect.redirectregex.regex=https://${FQDN}/?$$"
|
||||
- "traefik.http.middlewares.pi-hole-redirect.redirectregex.replacement=https://${FQDN}/admin"
|
||||
# Priority goes from first in the list to last.
|
||||
- "traefik.http.middlewares.pihole.chain.middlewares=headers-base@file,headers-sts@file,headers-policy-self@file"
|
||||
- "traefik.http.middlewares.pi-hole.chain.middlewares=headers-base@file,headers-sts@file,headers-policy-self@file"
|
||||
|
||||
# Pi-Hole
|
||||
- "traefik.http.routers.pihole.service=pihole"
|
||||
- "traefik.http.routers.pihole.entrypoints=web-secure"
|
||||
- "traefik.http.routers.pi-hole.service=pi-hole"
|
||||
- "traefik.http.routers.pi-hole.entrypoints=web-secure"
|
||||
# Do not filter on prefix, otherwise the redirect does not work...
|
||||
- "traefik.http.routers.pihole.rule=Host(`${FQDN}`)"
|
||||
- "traefik.http.routers.pihole.tls=true"
|
||||
- "traefik.http.routers.pi-hole.rule=Host(`${FQDN}`)"
|
||||
- "traefik.http.routers.pi-hole.tls=true"
|
||||
# Not using Letsencrypt, as this service is not accessible from outside
|
||||
# the LAN, and no wildcard domain certificate yet.
|
||||
#- "traefik.http.routers.pihole.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.routers.pihole.middlewares=pihole,net-home@file,auth-traefik@file,pi-hole-redirect"
|
||||
#- "traefik.http.routers.pi-hole.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.routers.pi-hole.middlewares=pi-hole,net-home@file,auth-traefik@file,pi-hole-redirect"
|
||||
|
||||
Reference in New Issue
Block a user