summaryrefslogtreecommitdiffstats
path: root/17.0/fpm/config/redis.config.php
diff options
context:
space:
mode:
authortilosp-bot <git-bot@tilosp.de>2019-09-26 10:06:22 +0000
committertilosp-bot <git-bot@tilosp.de>2019-09-26 10:06:22 +0000
commit1760450ac818763c4e85a6ed28355477c14d46e2 (patch)
tree937246364ef5d1970d75d651701f29ad7900d150 /17.0/fpm/config/redis.config.php
parent10a1fe7606cc7dd92cb10a1cd81a012604ebaaf5 (diff)
Signed-off-by: tilosp-bot <git-bot@tilosp.de>
Diffstat (limited to '17.0/fpm/config/redis.config.php')
-rw-r--r--17.0/fpm/config/redis.config.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/17.0/fpm/config/redis.config.php b/17.0/fpm/config/redis.config.php
new file mode 100644
index 00000000..19676160
--- /dev/null
+++ b/17.0/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'),
+ ),
+ );
+}
+