diff options
author | tilosp-bot <git-bot@tilosp.de> | 2020-09-18 14:00:20 +0000 |
---|---|---|
committer | tilosp-bot <git-bot@tilosp.de> | 2020-09-18 14:00:20 +0000 |
commit | df570ee1e3e46e3552fba2e01a7fcdc5bb306640 (patch) | |
tree | e18c521157b0dd85b3e598929e0dc4f591a28d61 /20.0-rc/fpm/config/redis.config.php | |
parent | 9225c07b820b5fcb019633bbc3da527b81f11ff2 (diff) |
Run update.sh
Signed-off-by: tilosp-bot <git-bot@tilosp.de>
Diffstat (limited to '20.0-rc/fpm/config/redis.config.php')
-rw-r--r-- | 20.0-rc/fpm/config/redis.config.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/20.0-rc/fpm/config/redis.config.php b/20.0-rc/fpm/config/redis.config.php new file mode 100644 index 00000000..9429c901 --- /dev/null +++ b/20.0-rc/fpm/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; + } +} |