summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authormarceljd <support@dihosting.ch>2019-01-11 08:56:57 +0000
committermarceljd <support@dihosting.ch>2019-01-27 13:46:25 +0000
commitba4c1359b96a34f9945e5541232223a7ab1a6ce0 (patch)
tree9b96698ec50835b7a7961f306b4964099e371d30 /.config
parent250802c70679b72457e1b85f301e1a503517f780 (diff)
set redis environment variables
Signed-off-by: marceljd <support@dihosting.ch>
Diffstat (limited to '.config')
-rw-r--r--.config/redis.config.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/redis.config.php b/.config/redis.config.php
new file mode 100644
index 00000000..d300dd0a
--- /dev/null
+++ b/.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,
+ ),
+ );
+}
+