mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-04-05 10:20:27 -07:00
#226: CR changes
This commit is contained in:
parent
6f2ed4d53b
commit
0fd8eb52d2
2 changed files with 9 additions and 3 deletions
|
@ -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'"
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue