proxy configuration for versions older than 20.

This commit is contained in:
Andrea Dell'Amico 2024-05-30 12:37:26 +02:00
parent a177be5312
commit a62b68295e
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 4 additions and 1 deletions

View File

@ -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 %}