Switch to traefik-forward-auth@file

This commit is contained in:
Joey Hafner 2022-10-17 10:12:15 -07:00
parent 2d4e4073a3
commit 9db6e68a69
3 changed files with 12 additions and 6 deletions

View File

@ -58,11 +58,11 @@ services:
#- "traefik.http.services.forwardauth.loadbalancer.server.port=4181"
#- "traefik.http.routers.forwardauth.entrypoints=websecure"
- "traefik.http.routers.forwardauth.rule=Path(`/_oauth`)"
- "traefik.http.routers.forwardauth.middlewares=traefik-forward-auth"
#- "traefik.http.routers.forwardauth.middlewares=traefik-forward-auth"
- "traefik.http.routers.forwardauth.tls.certresolver=lets-encrypt"
- "traefik.http.middlewares.traefik-forward-auth.forwardauth.address=http://forwardauth:4181"
- "traefik.http.middlewares.traefik-forward-auth.forwardauth.authResponseHeaders=X-Forwarded-User"
- "traefik.http.middlewares.traefik-forward-auth.forwardauth.trustForwardHeader=true"
#- "traefik.http.middlewares.traefik-forward-auth.forwardauth.address=http://forwardauth:4181"
#- "traefik.http.middlewares.traefik-forward-auth.forwardauth.authResponseHeaders=X-Forwarded-User"
#- "traefik.http.middlewares.traefik-forward-auth.forwardauth.trustForwardHeader=true"
networks:
web:

View File

@ -8,7 +8,7 @@ services:
labels:
- traefik.http.routers.nginx.rule=Host(`test.jafner.net`)
- traefik.http.routers.nginx.tls.certresolver=lets-encrypt
- traefik.http.routers.nginx.middlewares=traefik-forward-auth
- traefik.http.routers.nginx.middlewares=traefik-forward-auth@file
networks:
web:

View File

@ -46,3 +46,9 @@ http:
pihole:
addprefix:
prefix: "/admin"
traefik-forward-auth:
forwardauth:
address: http://forwardauth:4181
trustForwardHeader: true
authResponseHeaders:
- X-Forwarded-User