From 69f947782d6e072c3edc4ee4c7d5ccf69eccf3fd Mon Sep 17 00:00:00 2001 From: Joshua Hoffmann Date: Thu, 14 Dec 2023 23:52:41 +0100 Subject: [PATCH] split if statements for the message queue and experimental encryption support into seperate statements --- .../custom/matrix-bridge-hookshot/templates/config.yml.j2 | 8 +++++--- 1 file changed, 5 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 b07eae72b..fddd411ef 100644 --- a/roles/custom/matrix-bridge-hookshot/templates/config.yml.j2 +++ b/roles/custom/matrix-bridge-hookshot/templates/config.yml.j2 @@ -107,11 +107,13 @@ metrics: # (Optional) Prometheus metrics support # enabled: {{ matrix_hookshot_metrics_enabled | to_json }} -{% if matrix_hookshot_experimental_encryption_enabled %} +{% if matrix_hookshot_queue_host is defined and matrix_hookshot_queue_host|d('')|length > 0 %} %} queue: monolithic: true - port: 6379 - host: matrix-redis + port: {{ matrix_hookshot_queue_port | default('6379') }} + host: {{ matrix_hookshot_queue_host }} +{& endif %} +{% if matrix_hookshot_experimental_encryption_enabled %} experimentalEncryption: storagePath: /data/encryption {% endif %}