0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-07-22 07:08:06 +02:00

Compare commits

..

2 commits

Author SHA1 Message Date
Hagen
f995733756
Merge d87fe5a86a into 08ac24880c 2025-01-10 15:04:19 +01:00
hagene
d87fe5a86a
Add REDIS_HOST_USER variable to specify a redis user
Signed-off-by: hagene <hagene@uio.no>
2025-01-10 15:04:10 +01:00

View file

@ -5,7 +5,6 @@ if (getenv('REDIS_HOST')) {
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_HOST'),
if (getenv('REDIS_HOST_USER')) { 'user' => getenv('REDIS_HOST_USER'), }
'password' => getenv('REDIS_HOST_PASSWORD_FILE') ? trim(file_get_contents(getenv('REDIS_HOST_PASSWORD_FILE'))) : (string) getenv('REDIS_HOST_PASSWORD'),
),
);
@ -15,4 +14,8 @@ if (getenv('REDIS_HOST')) {
} elseif (getenv('REDIS_HOST')[0] != '/') {
$CONFIG['redis']['port'] = 6379;
}
if (getenv('REDIS_HOST_USER') !== false) {
$CONFIG['redis']['user'] = (string) getenv('REDIS_HOST_USER');
}
}