mirror of
https://github.com/nextcloud/docker.git
synced 2025-03-15 19:05:09 +01:00
Update redis.config.php
Broken Redis session handler with unix socket, can't login (#730)
This commit is contained in:
parent
dfe84fcd62
commit
891ef3fa4b
1 changed files with 6 additions and 1 deletions
|
@ -5,8 +5,13 @@ if (getenv('REDIS_HOST')) {
|
||||||
'memcache.locking' => '\OC\Memcache\Redis',
|
'memcache.locking' => '\OC\Memcache\Redis',
|
||||||
'redis' => array(
|
'redis' => array(
|
||||||
'host' => getenv('REDIS_HOST'),
|
'host' => getenv('REDIS_HOST'),
|
||||||
'port' => getenv('REDIS_HOST_PORT') ?: 6379,
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
if(getenv('REDIS_HOST_PORT') !== false) {
|
||||||
|
$CONFIG['redis']['port'] = getenv('REDIS_HOST_PORT');
|
||||||
|
}
|
||||||
|
else if (getenv('REDIS_HOST')[0] != '/') {
|
||||||
|
$CONFIG['redis']['port'] = 6379;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue