summaryrefslogtreecommitdiffstats
path: root/18.0-rc/fpm/config/redis.config.php
diff options
context:
space:
mode:
authortilosp-bot <git-bot@tilosp.de>2020-01-03 10:32:26 +0000
committertilosp-bot <git-bot@tilosp.de>2020-01-03 10:32:26 +0000
commit2a4b286de1a10976fe74a6d9add1cf08ecc2b6ad (patch)
tree079df22533fe741880b10c2243783928bfd38d99 /18.0-rc/fpm/config/redis.config.php
parent6353fe7bae0daaa00c27dc35fd8e08f725e7003f (diff)
Signed-off-by: tilosp-bot <git-bot@tilosp.de>
Diffstat (limited to '18.0-rc/fpm/config/redis.config.php')
-rw-r--r--18.0-rc/fpm/config/redis.config.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/18.0-rc/fpm/config/redis.config.php b/18.0-rc/fpm/config/redis.config.php
new file mode 100644
index 00000000..19676160
--- /dev/null
+++ b/18.0-rc/fpm/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'),
+ ),
+ );
+}
+