mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-23 16:06:51 +00:00
Merge pull request #4858 from nextcloud/enh/noid/add-redis-db-index
nextcloud: properly add REDIS_DB_INDEX
This commit is contained in:
commit
a5239951fb
1 changed files with 4 additions and 1 deletions
|
|
@ -6,7 +6,6 @@ if (getenv('REDIS_HOST')) {
|
||||||
'redis' => array(
|
'redis' => array(
|
||||||
'host' => getenv('REDIS_HOST'),
|
'host' => getenv('REDIS_HOST'),
|
||||||
'password' => (string) getenv('REDIS_HOST_PASSWORD'),
|
'password' => (string) getenv('REDIS_HOST_PASSWORD'),
|
||||||
// 'dbindex' => (int) getenv('REDIS_DB_INDEX'),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -15,4 +14,8 @@ if (getenv('REDIS_HOST')) {
|
||||||
} elseif (getenv('REDIS_HOST')[0] != '/') {
|
} elseif (getenv('REDIS_HOST')[0] != '/') {
|
||||||
$CONFIG['redis']['port'] = 6379;
|
$CONFIG['redis']['port'] = 6379;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (getenv('REDIS_DB_INDEX') !== false) {
|
||||||
|
$CONFIG['redis']['dbindex'] = (int) getenv('REDIS_DB_INDEX');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue