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