From a2bc6df7d51bdb1d4cd3b410051590873d4d1c69 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Sat, 20 Jun 2020 00:58:19 +0200 Subject: [PATCH] Add support for the use of a reverse proxy. --- defaults/main.yml | 2 ++ templates/standalone.xml.j2 | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 %}