#226: CR changes

This commit is contained in:
Helmut Wolf 2024-05-14 20:05:14 +02:00
parent 6f2ed4d53b
commit 0fd8eb52d2
2 changed files with 9 additions and 3 deletions

View file

@ -93,3 +93,10 @@
fail_msg: "Additional env variable definition is incorrect: `key` and `value` are mandatory." fail_msg: "Additional env variable definition is incorrect: `key` and `value` are mandatory."
no_log: true no_log: true
loop: "{{ keycloak_quarkus_additional_env_vars }}" loop: "{{ keycloak_quarkus_additional_env_vars }}"
- name: "Validate proxy-headers"
ansible.builtin.assert:
that:
- keycloak_quarkus_proxy_headers | lower in ['', 'forwarded', 'xforwarded']
quiet: true
fail_msg: "keycloak_quarkus_proxy_headers must be either '', 'forwarded' or 'xforwarded'"

View file

@ -69,9 +69,8 @@ cache-config-file=cache-ispn.xml
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if keycloak_quarkus_proxy_headers is defined and keycloak_quarkus_proxy_headers != "none" %} {% if keycloak_quarkus_proxy_headers | length > 0 %}
# Proxy proxy-headers={{ keycloak_quarkus_proxy_headers | lower }}
proxy-headers={{ keycloak_quarkus_proxy_headers }}
{% elif keycloak_quarkus_proxy_mode is defined and keycloak_quarkus_proxy_mode != "none" %} {% elif keycloak_quarkus_proxy_mode is defined and keycloak_quarkus_proxy_mode != "none" %}
# Deprecated Proxy configuration # Deprecated Proxy configuration
proxy={{ keycloak_quarkus_proxy_mode }} proxy={{ keycloak_quarkus_proxy_mode }}