mirror of
https://github.com/nextcloud/docker.git
synced 2025-06-16 08:14:46 +02:00
Add dbindex in connection properties
Let the user to choose a dbindex for his Redis connection to separate data in his Redis instance
This commit is contained in:
parent
e95023790c
commit
6b110abda6
1 changed files with 4 additions and 0 deletions
|
@ -14,4 +14,8 @@ if (getenv('REDIS_HOST')) {
|
|||
} elseif (getenv('REDIS_HOST')[0] != '/') {
|
||||
$CONFIG['redis']['port'] = 6379;
|
||||
}
|
||||
|
||||
if (getenv('REDIS_DB_INDEX') !== false) {
|
||||
$CONFIG['redis']['dbindex'] = getenv('REDIS_DB_INDEX');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue