diff options
Diffstat (limited to '17.0/apache/config/redis.config.php')
-rw-r--r-- | 17.0/apache/config/redis.config.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/17.0/apache/config/redis.config.php b/17.0/apache/config/redis.config.php new file mode 100644 index 00000000..19676160 --- /dev/null +++ b/17.0/apache/config/redis.config.php @@ -0,0 +1,13 @@ +<?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, + 'password' => getenv('REDIS_HOST_PASSWORD'), + ), + ); +} + |