0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-06-15 15:54:47 +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 08ac24880c
commit d87fe5a86a
No known key found for this signature in database
2 changed files with 5 additions and 0 deletions

View file

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