0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-14 18:35:08 +01:00
nextcloud-docker/.config/redis.config.php
epma01 e8607eb731
Update redis.config.php
Fix Broken Redis session handler with unix socket #730
2019-05-01 15:30:11 +02:00

13 lines
335 B
PHP

<?php
if (getenv('REDIS_HOST')) {
$CONFIG = array (
'memcache.distributed' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_HOST'),
),
);
if (getenv('REDIS_HOST_PORT') !== false) {
$CONFIG['redis']['port'] = getenv('REDIS_HOST_PORT');
}
}