From e05bdaeca08e9e096bd3716e6ddb6a08ba9509e6 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Thu, 23 Apr 2026 12:25:35 +0200 Subject: [PATCH] nextcloud: allow to configure `memcache_customprefix` for redis 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 4a7d4a53..2fe53380 100644 --- a/Containers/nextcloud/config/redis.config.php +++ b/Containers/nextcloud/config/redis.config.php @@ -23,6 +23,10 @@ if (getenv('REDIS_MODE') !== 'rediscluster') { $CONFIG['redis']['dbindex'] = (int) getenv('REDIS_DB_INDEX'); } + if (getenv('REDIS_PREFIX')) { + $CONFIG['redis']['memcache_customprefix'] = getenv('REDIS_PREFIX'); + } + if (getenv('REDIS_USER_AUTH')) { $CONFIG['redis']['user'] = str_replace("&auth[]=", "", getenv('REDIS_USER_AUTH')); } @@ -60,6 +64,10 @@ if (getenv('REDIS_MODE') !== 'rediscluster') { $CONFIG['redis.cluster']['user'] = str_replace("&auth[]=", "", getenv('REDIS_USER_AUTH')); } + if (getenv('REDIS_PREFIX')) { + $CONFIG['redis.cluster']['memcache_customprefix'] = getenv('REDIS_PREFIX'); + } + if (getenv('NEXTCLOUD_TRUSTED_CERTIFICATES_REDIS')) { $CONFIG['redis.cluster']['ssl_context']['cafile'] = '/var/www/html/data/certificates/ca-bundle.crt'; }