summaryrefslogtreecommitdiffstats
path: root/16.0-rc/apache/config/redis.config.php
diff options
context:
space:
mode:
authortilosp-bot <git-bot@tilosp.de>2019-12-13 11:16:18 +0000
committertilosp-bot <git-bot@tilosp.de>2019-12-13 11:16:18 +0000
commit0ebad103636855c27265f34ebc4fab84e409fdb6 (patch)
treeca71cefefeb1be65562acc90a2c60ae3b2dc3751 /16.0-rc/apache/config/redis.config.php
parent88e6e3b9b238da265023cc71ac544bdd46e5ade8 (diff)
Signed-off-by: tilosp-bot <git-bot@tilosp.de>
Diffstat (limited to '16.0-rc/apache/config/redis.config.php')
-rw-r--r--16.0-rc/apache/config/redis.config.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/16.0-rc/apache/config/redis.config.php b/16.0-rc/apache/config/redis.config.php
new file mode 100644
index 00000000..19676160
--- /dev/null
+++ b/16.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'),
+ ),
+ );
+}
+