summaryrefslogtreecommitdiffstats
path: root/17.0-rc/apache/config/redis.config.php
diff options
context:
space:
mode:
authorTilo Spannagel <development@tilosp.de>2019-12-13 18:45:13 +0100
committerGitHub <noreply@github.com>2019-12-13 18:45:13 +0100
commit1c23b49eae453db466aaca83b127d39ff513eef2 (patch)
treeca71cefefeb1be65562acc90a2c60ae3b2dc3751 /17.0-rc/apache/config/redis.config.php
parent88e6e3b9b238da265023cc71ac544bdd46e5ade8 (diff)
parent0ebad103636855c27265f34ebc4fab84e409fdb6 (diff)
Merge pull request #943 from tilosp/bot/update
Add nextcloud 15.0.14RC1, 16.0.7RC1 and 17.0.2RC1
Diffstat (limited to '17.0-rc/apache/config/redis.config.php')
-rw-r--r--17.0-rc/apache/config/redis.config.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/17.0-rc/apache/config/redis.config.php b/17.0-rc/apache/config/redis.config.php
new file mode 100644
index 00000000..19676160
--- /dev/null
+++ b/17.0-rc/apache/config/redis.config.php
@@ -0,0 +1,13 @@
+<?php
+if (getenv('REDIS_HOST')) {
+ $CONFIG = array (
+ 'memcache.distributed' => '\OC\Memcache\Redis',
+ 'memcache.locking' => '\OC\Memcache\Redis',
+ 'redis' => array(
+ 'host' => getenv('REDIS_HOST'),
+ 'port' => getenv('REDIS_HOST_PORT') ?: 6379,
+ 'password' => getenv('REDIS_HOST_PASSWORD'),
+ ),
+ );
+}
+