From 40a0586614911c53c87da189be2d2c67a3da0b00 Mon Sep 17 00:00:00 2001 From: nbouma Date: Sat, 25 Mar 2023 15:46:17 +0100 Subject: [PATCH] Add redis support to nextcloud role --- defaults/main.yml | 4 ++++ templates/env.j2 | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 91ecf47..2d2f010 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -259,3 +259,7 @@ nextcloud_hsts_preload_enabled: false # See the `collabora-online` role. nextcloud_collabora_app_wopi_url: '' nextcloud_collabora_app_wopi_allowlist: '10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16' + +# Redis intergration. +nextcloud_redis_hostname: '' +nextcloud_redis_port: 6379 diff --git a/templates/env.j2 b/templates/env.j2 index b221d82..ef1c0a4 100644 --- a/templates/env.j2 +++ b/templates/env.j2 @@ -1 +1,6 @@ +{% if nextcloud_redis_hostname != '' %} +REDIS_HOST={{ nextcloud_redis_hostname }} +REDIS_HOST_PORT={{ nextcloud_redis_port }} +{% endif %} + {{ nextcloud_container_additional_environment_variables }}