diff options
author | Tilo Spannagel <development@tilosp.de> | 2020-02-06 12:35:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-06 12:35:02 +0100 |
commit | 4bd951c62245544794c833ae5d8a4e0db0adca60 (patch) | |
tree | e67c5ac201dbadbc3a48463d117bf9d5b9897723 /18.0-rc/fpm-alpine/config/redis.config.php | |
parent | 03ec56e7b9cfa7a03d9bc1ed5176ce5a61c932b4 (diff) | |
parent | 79c51bc316b881d1050499a9747619a9949305e1 (diff) |
Merge pull request #987 from tilosp/bot/update
Add nextcloud 18.0.1RC1
Diffstat (limited to '18.0-rc/fpm-alpine/config/redis.config.php')
-rw-r--r-- | 18.0-rc/fpm-alpine/config/redis.config.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/18.0-rc/fpm-alpine/config/redis.config.php b/18.0-rc/fpm-alpine/config/redis.config.php new file mode 100644 index 00000000..9429c901 --- /dev/null +++ b/18.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; + } +} |