0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-14 18:35:08 +01:00

Update redis.config.php

Fix Broken Redis session handler with unix socket #730
This commit is contained in:
epma01 2019-05-01 15:30:11 +02:00 committed by GitHub
parent a2d0c57921
commit e8607eb731
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,8 +5,9 @@ if (getenv('REDIS_HOST')) {
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_HOST'),
'port' => getenv('REDIS_HOST_PORT') ?: 6379,
),
);
if (getenv('REDIS_HOST_PORT') !== false) {
$CONFIG['redis']['port'] = getenv('REDIS_HOST_PORT');
}
}