diff --git a/defaults/main.yml b/defaults/main.yml index 8332484..368cbe2 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -27,3 +27,5 @@ keycloak_database_max_pool_size: '50' keycloak_admin_user: kadmin #keycloak_admin_password: 'define it into a vault file' + +keycloak_behind_reverse_proxy: True diff --git a/templates/standalone.xml.j2 b/templates/standalone.xml.j2 index 34b08b4..59ac4e9 100644 --- a/templates/standalone.xml.j2 +++ b/templates/standalone.xml.j2 @@ -505,7 +505,7 @@ - + @@ -611,6 +611,9 @@ + {% if keycloak_behind_reverse_proxy %} + + {% endif %}