summaryrefslogtreecommitdiffstats
path: root/15.0
diff options
context:
space:
mode:
authorTilo Spannagel <development@tilosp.de>2019-02-07 12:20:53 +0100
committerGitHub <noreply@github.com>2019-02-07 12:20:53 +0100
commitb9ae3256ad5a38f37f4f195ddf965f4b2f408615 (patch)
treea1401ac506bfbdb52530b82af442d1c9187105b8 /15.0
parent6d7be410e0a09a1a08e49762c7a7901e8bda49f3 (diff)
parente0de4ab28516a09423e5bb8630bfa93cf1de1bba (diff)
Merge pull request #600 from marceljd/redis-env-vars
Set Redis through environment variables
Diffstat (limited to '15.0')
-rw-r--r--15.0/apache/config/redis.config.php12
-rw-r--r--15.0/fpm-alpine/config/redis.config.php12
-rw-r--r--15.0/fpm/config/redis.config.php12
3 files changed, 36 insertions, 0 deletions
diff --git a/15.0/apache/config/redis.config.php b/15.0/apache/config/redis.config.php
new file mode 100644
index 00000000..5df799f2
--- /dev/null
+++ b/15.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_HOST_PORT') ?: 6379,
+ ),
+ );
+}
+
diff --git a/15.0/fpm-alpine/config/redis.config.php b/15.0/fpm-alpine/config/redis.config.php
new file mode 100644
index 00000000..5df799f2
--- /dev/null
+++ b/15.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,
+ ),
+ );
+}
+
diff --git a/15.0/fpm/config/redis.config.php b/15.0/fpm/config/redis.config.php
new file mode 100644
index 00000000..5df799f2
--- /dev/null
+++ b/15.0/fpm/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,
+ ),
+ );
+}
+