feat: more authentik stuff

This commit is contained in:
2025-12-19 23:14:09 +00:00
parent 5503c2c6f4
commit ece646d07a
2 changed files with 5 additions and 0 deletions

View File

@@ -61,6 +61,10 @@ services:
traefik.http.routers.authentik.entrypoints: "https" traefik.http.routers.authentik.entrypoints: "https"
traefik.http.routers.authentik.tls.certresolver: "cloudflare" traefik.http.routers.authentik.tls.certresolver: "cloudflare"
traefik.http.services.authentik.loadbalancer.server.port: "9000" traefik.http.services.authentik.loadbalancer.server.port: "9000"
# Authentik Middleware
traefik.http.middlewares.authentik.forwardauth.address: "http://authentik-server:9000/outpost.goauthentik.io/auth/traefik"
traefik.http.middlewares.authentik.forwardauth.trustForwardHeader: "true"
traefik.http.middlewares.authentik.forwardauth.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"
# Homepage # Homepage
homepage.group: "Management" homepage.group: "Management"
homepage.name: "Authentik" homepage.name: "Authentik"

View File

@@ -26,6 +26,7 @@ services:
- "traefik.http.routers.traefik.rule=Host(`traefik.${DOMAIN}`)" - "traefik.http.routers.traefik.rule=Host(`traefik.${DOMAIN}`)"
- "traefik.http.routers.traefik.entrypoints=https" - "traefik.http.routers.traefik.entrypoints=https"
- "traefik.http.routers.traefik.service=api@internal" - "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.middlewares=authentik@docker"
- "traefik.http.routers.traefik.tls.certresolver=cloudflare" - "traefik.http.routers.traefik.tls.certresolver=cloudflare"
networks: networks:
- traefik_public - traefik_public