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 891ef3fa4b
Update redis.config.php
Broken Redis session handler with unix socket, can't login (#730)
2019-05-01 21:19:30 +02:00

17 lines
421 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');
}
else if (getenv('REDIS_HOST')[0] != '/') {
$CONFIG['redis']['port'] = 6379;
}
}