0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-06-16 00:04:48 +02:00

Adding support for configuring redis dbindex value

Signed-off-by: Jan Zalar jan.zalar6@gmail.com

Signed-off-by: janz <jan.zalar@arnes.si>
This commit is contained in:
janz 2024-09-02 12:01:10 +02:00
parent e6d024039f
commit 374495c565
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_DBINDEX') !== false) {
$CONFIG['redis']['dbindex'] = (int) getenv('REDIS_DBINDEX');
}
}