summaryrefslogtreecommitdiffstats
path: root/16.0-rc/fpm-alpine/config/redis.config.php
diff options
context:
space:
mode:
authortilosp-bot <git-bot@tilosp.de>2019-08-08 19:43:42 +0000
committertilosp-bot <git-bot@tilosp.de>2019-08-08 19:43:42 +0000
commita4efb0e686ade89c0dfdf9a1fe30f77e3099e0a7 (patch)
treee082a056f4d6426cda9970e60aa0912f2e273a03 /16.0-rc/fpm-alpine/config/redis.config.php
parent060cf0883ff12241081778714507e2823d84e629 (diff)
Signed-off-by: tilosp-bot <git-bot@tilosp.de>
Diffstat (limited to '16.0-rc/fpm-alpine/config/redis.config.php')
-rw-r--r--16.0-rc/fpm-alpine/config/redis.config.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/16.0-rc/fpm-alpine/config/redis.config.php b/16.0-rc/fpm-alpine/config/redis.config.php
new file mode 100644
index 00000000..5df799f2
--- /dev/null
+++ b/16.0-rc/fpm-alpine/config/redis.config.php
@@ -0,0 +1,12 @@
+<?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,
+ ),
+ );
+}
+