From c9ec5c7dbfe2d861c387fc95f197a7b6e2fea472 Mon Sep 17 00:00:00 2001 From: ace Date: Fri, 5 Feb 2021 00:14:50 +0300 Subject: [PATCH] fix nextcloud role for helm chart version 2.5.1 - set password for redis and add custom redis config --- roles/nextcloud/defaults/main.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/roles/nextcloud/defaults/main.yaml b/roles/nextcloud/defaults/main.yaml index 49144f7..bd347d8 100644 --- a/roles/nextcloud/defaults/main.yaml +++ b/roles/nextcloud/defaults/main.yaml @@ -94,6 +94,19 @@ nextcloud_default_values: $CONFIG = array ( "mail_smtptimeout" => 60, ); + fix.redis.config.php: |- + '\OC\Memcache\Redis', + 'memcache.locking' => '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_HOST_PORT') ?: 6379, + 'password' => getenv('REDIS_HOST_PASSWORD'), + ), + ); + } fix.config.php: |-