Update traefik/dynamic/authentik.yml

This commit is contained in:
2025-12-10 13:39:55 +01:00
parent 5473afa6c4
commit 2978da94e2

View File

@@ -1,22 +1,37 @@
http:
middlewares:
authentik:
forwardAuth:
address: "http://auth.japnet.nl:9000/outpost.goauthentik.io/auth/traefik-dashboard"
trustForwardHeader: true
authResponseHeaders:
- X-authentik-username
- X-authentik-groups
- X-authentik-email
- X-authentik-name
# http:
# middlewares:
# authentik:
# forwardAuth:
# address: "http://auth.japnet.nl:9000/outpost.goauthentik.io/auth/traefik-dashboard"
# trustForwardHeader: true
# authResponseHeaders:
# - X-authentik-username
# - X-authentik-groups
# - X-authentik-email
# - X-authentik-name
# routers:
# traefik-dashboard:
# rule: "Host(`traefik.japnet.nl`)"
# entryPoints:
# - websecure
# middlewares:
# - authentik
# service: api@internal
# tls:
# certResolver: cf
http:
routers:
traefik-dashboard:
rule: "Host(`traefik.japnet.nl`)"
auth:
rule: Host("auth.japnet.nl")
entryPoints:
- websecure
middlewares:
- authentik
service: api@internal
service: auth
tls:
certResolver: cf
certResolver: cf # of hoe jouw resolver heet
services:
auth:
loadBalancer:
servers:
- url: http://server:9000