From d11650f79841fe18e615a10c5083a714a4071a6d Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 24 Feb 2026 14:59:40 +0100 Subject: [PATCH] redis.config.php: allow to enable tls Signed-off-by: Simon L. --- Containers/nextcloud/config/redis.config.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Containers/nextcloud/config/redis.config.php b/Containers/nextcloud/config/redis.config.php index 637e1b5f..12b5a64b 100644 --- a/Containers/nextcloud/config/redis.config.php +++ b/Containers/nextcloud/config/redis.config.php @@ -24,6 +24,10 @@ if (getenv('REDIS_MODE') !== 'rediscluster') { if (getenv('REDIS_USER_AUTH')) { $CONFIG['redis']['user'] = str_replace("&auth[]=", "", getenv('REDIS_USER_AUTH')); } + + if (getenv('NEXTCLOUD_TRUSTED_CERTIFICATES_REDIS')) { + $CONFIG['redis']['ssl_context']['cafile'] = '/var/www/html/data/certificates/ca-bundle.crt'; + } } else { $CONFIG = array( 'memcache.distributed' => '\OC\Memcache\Redis', @@ -53,4 +57,8 @@ if (getenv('REDIS_MODE') !== 'rediscluster') { if (getenv('REDIS_USER_AUTH')) { $CONFIG['redis.cluster']['user'] = str_replace("&auth[]=", "", getenv('REDIS_USER_AUTH')); } + + if (getenv('NEXTCLOUD_TRUSTED_CERTIFICATES_REDIS')) { + $CONFIG['redis.cluster']['ssl_context']['cafile'] = '/var/www/html/data/certificates/ca-bundle.crt'; + } }