0
0
Fork 0
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:
Fabian 2020-10-25 12:12:51 +01:00 committed by GitHub
parent e95023790c
commit 6b110abda6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,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'] = getenv('REDIS_DB_INDEX');
}
} }