diff options
author | tilosp-bot <git-bot@tilosp.de> | 2020-08-27 19:55:44 +0000 |
---|---|---|
committer | tilosp-bot <git-bot@tilosp.de> | 2020-08-27 19:55:44 +0000 |
commit | 9faeb26025fd46b2364993ef9dbda9bb14fd1236 (patch) | |
tree | 6f6908d4f596813c860abbbedf1cf0ec90fb1dad /20.0-beta/fpm-alpine/config/redis.config.php | |
parent | 0d84c2e085fa453bcf06ddcd388d8d71420691ff (diff) |
Run update.sh
Signed-off-by: tilosp-bot <git-bot@tilosp.de>
Diffstat (limited to '20.0-beta/fpm-alpine/config/redis.config.php')
-rw-r--r-- | 20.0-beta/fpm-alpine/config/redis.config.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/20.0-beta/fpm-alpine/config/redis.config.php b/20.0-beta/fpm-alpine/config/redis.config.php new file mode 100644 index 00000000..9429c901 --- /dev/null +++ b/20.0-beta/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; + } +} |