From 9181423e8475446e9933acade01b01d26752e0be Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 20 Jan 2025 22:17:25 +0100 Subject: [PATCH] Adapted variables for reverse proxy --- roles/docker-keycloak/README.md | 3 ++- roles/docker-keycloak/templates/docker-compose.yml.j2 | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/docker-keycloak/README.md b/roles/docker-keycloak/README.md index 8a09ccc8..f8889652 100644 --- a/roles/docker-keycloak/README.md +++ b/roles/docker-keycloak/README.md @@ -5,4 +5,5 @@ - https://github.com/keycloak/keycloak - https://en.wikipedia.org/wiki/Keycloak - https://www.keycloak.org/server/containers -- https://www.youtube.com/watch?v=fvxQ8bW0vO8 \ No newline at end of file +- https://www.youtube.com/watch?v=fvxQ8bW0vO8 +- https://www.keycloak.org/server/reverseproxy \ No newline at end of file diff --git a/roles/docker-keycloak/templates/docker-compose.yml.j2 b/roles/docker-keycloak/templates/docker-compose.yml.j2 index 9cc9909e..f9c70a3a 100644 --- a/roles/docker-keycloak/templates/docker-compose.yml.j2 +++ b/roles/docker-keycloak/templates/docker-compose.yml.j2 @@ -7,10 +7,10 @@ services: command: start environment: KC_HOSTNAME: {{domain}} - #KC_HOSTNAME_PORT: {{http_port}} - KC_HOSTNAME_STRICT_BACKCHANNEL: false + KC_HOSTNAME_STRICT_BACKCHANNEL: true KC_HTTP_ENABLED: true KC_HOSTNAME_STRICT_HTTPS: false + KC_PROXY: passthrough KC_HEALTH_ENABLED: true KEYCLOAK_ADMIN: "{{keycloak_administrator_username}}" KEYCLOAK_ADMIN_PASSWORD: "{{keycloak_administrator_password}}"