add authentik middleware configuration for Traefik
This commit is contained in:
parent
a1a7600eaf
commit
fe0f4ad004
2 changed files with 21 additions and 0 deletions
20
1. docker-stacks/traefik/data/rules/middlewares.yml
Normal file
20
1. docker-stacks/traefik/data/rules/middlewares.yml
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
http:
|
||||||
|
middlewares:
|
||||||
|
# 1. Authentik Middleware (De Poortwachter)
|
||||||
|
authentik:
|
||||||
|
forwardAuth:
|
||||||
|
# Dit verwijst naar de Authentik Server container intern
|
||||||
|
address: "http://authentik-server-1:9000/outpost.goauthentik.io/auth/traefik"
|
||||||
|
trustForwardHeader: true
|
||||||
|
authResponseHeaders:
|
||||||
|
- "X-authentik-username"
|
||||||
|
- "X-authentik-groups"
|
||||||
|
- "X-authentik-email"
|
||||||
|
- "X-authentik-name"
|
||||||
|
- "X-authentik-uid"
|
||||||
|
- "X-authentik-jwt"
|
||||||
|
- "X-authentik-meta-jwks"
|
||||||
|
- "X-authentik-meta-outpost"
|
||||||
|
- "X-authentik-meta-provider"
|
||||||
|
- "X-authentik-meta-app"
|
||||||
|
- "X-authentik-meta-version"
|
||||||
|
|
@ -26,6 +26,7 @@ services:
|
||||||
- "traefik.http.routers.traefik.rule=Host(`traefik.stackbabber.nl`)"
|
- "traefik.http.routers.traefik.rule=Host(`traefik.stackbabber.nl`)"
|
||||||
- "traefik.http.routers.traefik.entrypoints=web"
|
- "traefik.http.routers.traefik.entrypoints=web"
|
||||||
- "traefik.http.routers.traefik.service=api@internal"
|
- "traefik.http.routers.traefik.service=api@internal"
|
||||||
|
- "traefik.http.routers.traefik.middlewares=authentik@file"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue