From 26149fe2999e8b4e58a7788df6be8abe8d85d481 Mon Sep 17 00:00:00 2001 From: jasper Date: Wed, 10 Dec 2025 12:08:59 +0100 Subject: [PATCH] Update traefik/dynamic/authentik.yml --- traefik/dynamic/authentik.yml | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/traefik/dynamic/authentik.yml b/traefik/dynamic/authentik.yml index e572099..b338a79 100644 --- a/traefik/dynamic/authentik.yml +++ b/traefik/dynamic/authentik.yml @@ -1,15 +1,22 @@ http: + middlewares: + authentik: + forwardAuth: + address: "http://server:9000/outpost.goauthentik.io/auth/traefik" + trustForwardHeader: true + authResponseHeaders: + - X-authentik-username + - X-authentik-groups + - X-authentik-email + - X-authentik-name + routers: - auth: - rule: Host("auth.japnet.nl") + traefik-dashboard: + rule: "Host(`traefik.japnet.nl`)" entryPoints: - websecure - service: auth + middlewares: + - authentik + service: api@internal tls: - certResolver: cf # of hoe jouw resolver heet - - services: - auth: - loadBalancer: - servers: - - url: http://server:9000 \ No newline at end of file + certResolver: cf \ No newline at end of file