From 06047763bbd427dde117c6635ac7301198571158 Mon Sep 17 00:00:00 2001 From: Joshua Hoffmann Date: Fri, 15 Dec 2023 22:15:54 +0100 Subject: [PATCH] Update roles/custom/matrix-bridge-hookshot/templates/config.yml.j2 change the if statement to not require a variable with a length > 0 and add a filter to json for the redis host Co-authored-by: Slavi Pantaleev --- roles/custom/matrix-bridge-hookshot/templates/config.yml.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/custom/matrix-bridge-hookshot/templates/config.yml.j2 b/roles/custom/matrix-bridge-hookshot/templates/config.yml.j2 index 66a98955e..77036b52c 100644 --- a/roles/custom/matrix-bridge-hookshot/templates/config.yml.j2 +++ b/roles/custom/matrix-bridge-hookshot/templates/config.yml.j2 @@ -107,11 +107,11 @@ metrics: # (Optional) Prometheus metrics support # enabled: {{ matrix_hookshot_metrics_enabled | to_json }} -{% if matrix_hookshot_queue_host is defined and matrix_hookshot_queue_host|d('')|length > 0 %} %} +{% if matrix_hookshot_queue_host != '' %} queue: monolithic: true - port: {{ matrix_hookshot_queue_port | default('6379') }} - host: {{ matrix_hookshot_queue_host }} + port: {{ matrix_hookshot_queue_port }} + host: {{ matrix_hookshot_queue_host | to_json }} {% endif %} {% if matrix_hookshot_experimental_encryption_enabled %} experimentalEncryption: