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