summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarceljd <support@dihosting.ch>2019-01-11 08:59:08 +0000
committermarceljd <support@dihosting.ch>2019-01-27 13:46:25 +0000
commitf2ee88d352f945d773e3b76ffceb2d33d9d1973f (patch)
tree584dcd4a309bc561f670151ff57fcd843c6d9dd4
parentba4c1359b96a34f9945e5541232223a7ab1a6ce0 (diff)
set redis environment variables
Signed-off-by: marceljd <support@dihosting.ch>
-rw-r--r--13.0/apache/config/redis.config.php12
-rw-r--r--13.0/fpm-alpine/config/redis.config.php12
-rw-r--r--13.0/fpm/config/redis.config.php12
-rw-r--r--14.0/apache/config/redis.config.php12
-rw-r--r--14.0/fpm-alpine/config/redis.config.php12
-rw-r--r--14.0/fpm/config/redis.config.php12
-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
9 files changed, 108 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,
+ ),
+ );
+}
+
diff --git a/13.0/fpm-alpine/config/redis.config.php b/13.0/fpm-alpine/config/redis.config.php
new file mode 100644
index 00000000..d300dd0a
--- /dev/null
+++ b/13.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_PORT') ?: 6379,
+ ),
+ );
+}
+
diff --git a/13.0/fpm/config/redis.config.php b/13.0/fpm/config/redis.config.php
new file mode 100644
index 00000000..d300dd0a
--- /dev/null
+++ b/13.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_PORT') ?: 6379,
+ ),
+ );
+}
+
diff --git a/14.0/apache/config/redis.config.php b/14.0/apache/config/redis.config.php
new file mode 100644
index 00000000..d300dd0a
--- /dev/null
+++ b/14.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,
+ ),
+ );
+}
+
diff --git a/14.0/fpm-alpine/config/redis.config.php b/14.0/fpm-alpine/config/redis.config.php
new file mode 100644
index 00000000..d300dd0a
--- /dev/null
+++ b/14.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_PORT') ?: 6379,
+ ),
+ );
+}
+
diff --git a/14.0/fpm/config/redis.config.php b/14.0/fpm/config/redis.config.php
new file mode 100644
index 00000000..d300dd0a
--- /dev/null
+++ b/14.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_PORT') ?: 6379,
+ ),
+ );
+}
+
diff --git a/15.0/apache/config/redis.config.php b/15.0/apache/config/redis.config.php
new file mode 100644
index 00000000..d300dd0a
--- /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_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..d300dd0a
--- /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_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..d300dd0a
--- /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_PORT') ?: 6379,
+ ),
+ );
+}
+