Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-05-22 13:19:07 +0300
committerMorris Jobke <hey@morrisjobke.de>2019-05-22 13:19:07 +0300
commite9e9b6a4b63aa32e9623337ed3ea2838414cb5b1 (patch)
tree725b03c7b608ce4f0932953e8a3700eb6c699976 /config
parentac92603014268a13a9b31beb8bd9dd26cbd84282 (diff)
Allow redis cluster to use password
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index b25a4baeadd..d7f9b217061 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -1160,15 +1160,19 @@ $CONFIG = array(
* which then causes a FileLocked exception.
*
* See https://redis.io/topics/cluster-spec for details about the Redis cluster
+ *
+ * Authentication works with phpredis version 4.2.1+. See
+ * https://github.com/phpredis/phpredis/commit/c5994f2a42b8a348af92d3acb4edff1328ad8ce1
*/
'redis.cluster' => [
'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
'localhost:7000',
- 'localhost:7001'
+ 'localhost:7001',
],
'timeout' => 0.0,
'read_timeout' => 0.0,
- 'failover_mode' => \RedisCluster::FAILOVER_ERROR
+ 'failover_mode' => \RedisCluster::FAILOVER_ERROR,
+ 'password' => '', // Optional, if not defined no password will be used.
],