summaryrefslogtreecommitdiffstats
path: root/16.0/fpm-alpine/config/redis.config.php
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2019-04-26 13:27:26 +0200
committerJ0WI <J0WI@users.noreply.github.com>2019-04-26 13:27:26 +0200
commitabe7b700523a3b9660314b57ed00eda25712b6fa (patch)
tree1ff9d56f2731adc4ba7d5141729e0e32f9623808 /16.0/fpm-alpine/config/redis.config.php
parent7a96e8b5ad48a014d5a9833543ea1ed0aa885522 (diff)
Run update.sh
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to '16.0/fpm-alpine/config/redis.config.php')
-rw-r--r--16.0/fpm-alpine/config/redis.config.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/16.0/fpm-alpine/config/redis.config.php b/16.0/fpm-alpine/config/redis.config.php
new file mode 100644
index 00000000..5df799f2
--- /dev/null
+++ b/16.0/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,
+ ),
+ );
+}
+