From a62b68295e38cbae1e675848e36f5c118d72c6de Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 30 May 2024 12:37:26 +0200 Subject: [PATCH] proxy configuration for versions older than 20. --- templates/keycloak.conf.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/keycloak.conf.j2 b/templates/keycloak.conf.j2 index 8c4c8da..260ea41 100644 --- a/templates/keycloak.conf.j2 +++ b/templates/keycloak.conf.j2 @@ -38,6 +38,9 @@ https-port={{ keycloak_https_port }} {% endif %} {% if keycloak_behind_reverse_proxy %} +{% if keycloak_version is version_compare('22.0.0', '<') %} +proxy=reencrypt +{% else %} # The proxy address forwarding mode if the server is behind a reverse proxy. proxy-headers={{ keycloak_reverse_proxy_type }} {% endif %} @@ -53,7 +56,7 @@ features-disabled={% for dis in keycloak_disabled_features %}{{ dis }}{% if not {% if keycloak_preview_features | length %}features={% for feat in keycloak_preview_features %}{{ feat }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %} {% if keycloak_external_avatar_dir_enabled %} -spi-avatar-storage-avatar-storage-file-avatar-folder={{ keycloak_external_avatar_dir}} +spi-avatar-storage-avatar-storage-file-avatar-folder={{ keycloak_external_avatar_dir }} {% endif %} {% if keycloak_s3_avatar_enabled %}