diff options
author | tilosp-bot <git-bot@tilosp.de> | 2019-04-11 16:02:30 +0000 |
---|---|---|
committer | tilosp-bot <git-bot@tilosp.de> | 2019-04-11 16:02:30 +0000 |
commit | 2af113afc6cb76d5c15bb814821a1a5b124cf4ef (patch) | |
tree | 93217d1bdfb2969793be3ead2fdd0bbd9b891812 /16.0-rc/fpm-alpine/config/redis.config.php | |
parent | d07e2166c4e13333179eb4739e5778808c47f2c0 (diff) |
Signed-off-by: tilosp-bot <git-bot@tilosp.de>
Diffstat (limited to '16.0-rc/fpm-alpine/config/redis.config.php')
-rw-r--r-- | 16.0-rc/fpm-alpine/config/redis.config.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/16.0-rc/fpm-alpine/config/redis.config.php b/16.0-rc/fpm-alpine/config/redis.config.php new file mode 100644 index 00000000..5df799f2 --- /dev/null +++ b/16.0-rc/fpm-alpine/config/redis.config.php @@ -0,0 +1,12 @@ +<?php +if (getenv('REDIS_HOST')) { + $CONFIG = array ( + 'memcache.distributed' => '\OC\Memcache\Redis', + 'memcache.locking' => '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_HOST_PORT') ?: 6379, + ), + ); +} + |