From 4cae0ec8830b7552a45b9206d247517218677d5b Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 20 Jan 2025 23:53:07 +0100 Subject: [PATCH] Solved mixed content bug --- roles/docker-keycloak/README.md | 5 ++++- roles/docker-keycloak/templates/docker-compose.yml.j2 | 7 ++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/docker-keycloak/README.md b/roles/docker-keycloak/README.md index f8889652..ee023039 100644 --- a/roles/docker-keycloak/README.md +++ b/roles/docker-keycloak/README.md @@ -6,4 +6,7 @@ - https://en.wikipedia.org/wiki/Keycloak - https://www.keycloak.org/server/containers - https://www.youtube.com/watch?v=fvxQ8bW0vO8 -- https://www.keycloak.org/server/reverseproxy \ No newline at end of file +- https://www.keycloak.org/server/reverseproxy +- https://skycloak.io/blog/how-to-run-keycloak-behind-a-reverse-proxy/ +- https://github.com/keycloak/keycloak/issues/12913 +- https://www.keycloak.org/server/hostname \ 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 f9c70a3a..5fb74dea 100644 --- a/roles/docker-keycloak/templates/docker-compose.yml.j2 +++ b/roles/docker-keycloak/templates/docker-compose.yml.j2 @@ -2,15 +2,12 @@ services: {% include 'templates/docker/services/' + database_type + '.yml.j2' %} - keycloak: + application: image: quay.io/keycloak/keycloak:{{keycloak_version}} command: start environment: - KC_HOSTNAME: {{domain}} - KC_HOSTNAME_STRICT_BACKCHANNEL: true + KC_HOSTNAME: https://{{domain}} 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}}"