diff options
author | GitHub Workflow <workflow@github.com> | 2020-10-02 01:04:44 +0000 |
---|---|---|
committer | GitHub Workflow <workflow@github.com> | 2020-10-02 01:04:44 +0000 |
commit | cd8807c0a8d28f583990da6fda51f663a25d27df (patch) | |
tree | bb43a14c9f361c856216023b6b74c62807fec0b0 /17.0-rc/fpm-alpine/config/redis.config.php | |
parent | 1bec8436448549537f8aca92c43edb9b672a1315 (diff) |
Runs update.sh
Diffstat (limited to '17.0-rc/fpm-alpine/config/redis.config.php')
-rw-r--r-- | 17.0-rc/fpm-alpine/config/redis.config.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/17.0-rc/fpm-alpine/config/redis.config.php b/17.0-rc/fpm-alpine/config/redis.config.php new file mode 100644 index 00000000..9429c901 --- /dev/null +++ b/17.0-rc/fpm-alpine/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; + } +} |