From b75dc88b73d68329445f186c21458f89ef1e48e2 Mon Sep 17 00:00:00 2001 From: docker1 Date: Sun, 27 Sep 2026 09:07:20 +0000 Subject: [PATCH] keycloak-oauth2 Middleware in dynamic.yaml, Platzhalter-Labels entfernt --- docker-compose.yaml | 4 ---- dynamic.yaml | 7 +++++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index f694f30..72f7e36 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -50,10 +50,6 @@ services: # Basic Auth Definition - "traefik.http.middlewares.dashboard-auth.basicauth.users=admin:$$apr1$$xyz$$..." - # Keycloak ForwardAuth Middleware (bereitgestellt, aber aktuell nicht im Router zugewiesen) - - "traefik.http.middlewares.keycloak-oauth2.forwardauth.address=http:///oauth2/auth" - - "traefik.http.middlewares.keycloak-oauth2.forwardauth.trustForwardHeader=true" - - "traefik.http.middlewares.keycloak-oauth2.forwardauth.authResponseHeaders=X-Auth-Request-User,X-Auth-Request-Email" healthcheck: test: ["CMD", "traefik", "healthcheck"] interval: 10s diff --git a/dynamic.yaml b/dynamic.yaml index 0cec2ee..7fa2acd 100644 --- a/dynamic.yaml +++ b/dynamic.yaml @@ -25,3 +25,10 @@ http: status: "500-599" service: errorpages-backend query: "/{status}.html" + keycloak-oauth2: + forwardAuth: + address: http://oauth2-proxy:4180/oauth2/auth + trustForwardHeader: true + authResponseHeaders: + - X-Auth-Request-User + - X-Auth-Request-Email