summaryrefslogtreecommitdiffstats
path: root/19.0-rc/apache/config/redis.config.php
diff options
context:
space:
mode:
authorGitHub Workflow <workflow@github.com>2020-09-05 01:46:19 +0000
committerGitHub Workflow <workflow@github.com>2020-09-05 01:46:19 +0000
commit1e2c9961f7a42b864a1ba99527d82671eee78245 (patch)
treeb52e993dade0ad17a0d60830847ba2abd6d8602a /19.0-rc/apache/config/redis.config.php
parent27587700ee5d24ec685c8a62154d398a6648f2da (diff)
Runs update.sh
Diffstat (limited to '19.0-rc/apache/config/redis.config.php')
-rw-r--r--19.0-rc/apache/config/redis.config.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/19.0-rc/apache/config/redis.config.php b/19.0-rc/apache/config/redis.config.php
new file mode 100644
index 00000000..9429c901
--- /dev/null
+++ b/19.0-rc/apache/config/redis.config.php
@@ -0,0 +1,17 @@
+<?php
+if (getenv('REDIS_HOST')) {
+ $CONFIG = array (
+ 'memcache.distributed' => '\OC\Memcache\Redis',
+ 'memcache.locking' => '\OC\Memcache\Redis',
+ 'redis' => array(
+ 'host' => getenv('REDIS_HOST'),
+ 'password' => getenv('REDIS_HOST_PASSWORD'),
+ ),
+ );
+
+ if (getenv('REDIS_HOST_PORT') !== false) {
+ $CONFIG['redis']['port'] = (int) getenv('REDIS_HOST_PORT');
+ } elseif (getenv('REDIS_HOST')[0] != '/') {
+ $CONFIG['redis']['port'] = 6379;
+ }
+}