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

Compare commits

..

2 commits

Author SHA1 Message Date
Hagen
b7e9274452
Merge 4bcd068a62 into 08ac24880c 2025-01-09 23:01:45 +00:00
hagene
4bcd068a62
Add REDIS_HOST_USER variable to specify a redis user
Signed-off-by: hagene <hagene@uio.no>
2025-01-09 16:50:31 +01:00

View file

@ -5,6 +5,7 @@ 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'),
),
);
@ -14,8 +15,4 @@ 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');
}
}