Compare commits

..

2 Commits

Author SHA1 Message Date
0c901180d9 fix: outpost router 2025-12-19 22:44:12 +00:00
126a0f1f89 feat: traefik auth flow 2025-12-19 22:44:12 +00:00
2 changed files with 10 additions and 3 deletions

View File

@@ -61,6 +61,11 @@ services:
traefik.http.routers.authentik.entrypoints: "https"
traefik.http.routers.authentik.tls.certresolver: "cloudflare"
traefik.http.services.authentik.loadbalancer.server.port: "9000"
# Authentik Outpost (Handling auth callbacks for all domains)
traefik.http.routers.authentik-outpost.rule: "HostRegexp(`{host:.+}`) && PathPrefix(`/outpost.goauthentik.io/`)"
traefik.http.routers.authentik-outpost.entrypoints: "https"
traefik.http.routers.authentik-outpost.tls.certresolver: "cloudflare"
traefik.http.routers.authentik-outpost.service: "authentik"
# Homepage
homepage.group: "Management"
homepage.name: "Authentik"

View File

@@ -27,9 +27,11 @@ services:
- "traefik.http.routers.traefik.entrypoints=https"
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.tls.certresolver=cloudflare"
# Basic Auth Middleware
- "traefik.http.middlewares.traefik-auth.basicauth.users=user:$$apr1$$q8eZFHjF$$Fj9U0fCH4d13F5j3v3v3w0"
- "traefik.http.routers.traefik.middlewares=traefik-auth"
# Authentik Forward Auth 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"
- "traefik.http.routers.traefik.middlewares=authentik"
networks:
- traefik_public