diff options
author | GitHub Workflow <workflow@github.com> | 2020-10-20 01:14:16 +0000 |
---|---|---|
committer | GitHub Workflow <workflow@github.com> | 2020-10-20 01:14:16 +0000 |
commit | 8dfa8c3ccaa1bd74dee379d6651312a2665a2938 (patch) | |
tree | 2912a2aa226f6db9be968278b4e49b600194a643 /20.0-rc/apache/config/redis.config.php | |
parent | b763515988e38400941aa36a0151a3a8ad0fe0fb (diff) |
Runs update.sh
Diffstat (limited to '20.0-rc/apache/config/redis.config.php')
-rw-r--r-- | 20.0-rc/apache/config/redis.config.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/20.0-rc/apache/config/redis.config.php b/20.0-rc/apache/config/redis.config.php new file mode 100644 index 00000000..9429c901 --- /dev/null +++ b/20.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; + } +} |