Skip to content

Commit

Permalink
Merge pull request #4858 from nextcloud/enh/noid/add-redis-db-index
Browse files Browse the repository at this point in the history
nextcloud: properly add REDIS_DB_INDEX
  • Loading branch information
szaimen authored Jun 21, 2024
2 parents 10119e7 + 17e002e commit a523995
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Containers/nextcloud/config/redis.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
'redis' => array(
'host' => getenv('REDIS_HOST'),
'password' => (string) getenv('REDIS_HOST_PASSWORD'),
// 'dbindex' => (int) getenv('REDIS_DB_INDEX'),
),
);

Expand All @@ -15,4 +14,8 @@
} elseif (getenv('REDIS_HOST')[0] != '/') {
$CONFIG['redis']['port'] = 6379;
}

if (getenv('REDIS_DB_INDEX') !== false) {
$CONFIG['redis']['dbindex'] = (int) getenv('REDIS_DB_INDEX');
}
}

0 comments on commit a523995

Please sign in to comment.