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

Add REDIS_HOST_USER variable to specify a redis user

Signed-off-by: hagene <hagene@uio.no>
This commit is contained in:
hagene 2025-01-09 16:45:08 +01:00
parent 85eb58a828
commit 4bcd068a62
No known key found for this signature in database
2 changed files with 2 additions and 0 deletions

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'),
),
);