summaryrefslogtreecommitdiffstats
path: root/13.0/apache/config/redis.config.php
diff options
context:
space:
mode:
Diffstat (limited to '13.0/apache/config/redis.config.php')
-rw-r--r--13.0/apache/config/redis.config.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/13.0/apache/config/redis.config.php b/13.0/apache/config/redis.config.php
new file mode 100644
index 00000000..d300dd0a
--- /dev/null
+++ b/13.0/apache/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_PORT') ?: 6379,
+ ),
+ );
+}
+