0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-06-16 16:14:47 +02:00
nextcloud-docker/19.0/apache-unprivileged/config/redis.config.php
Stephan Müller 51d464d6eb
Autogenerated: Introduce unprivileged images for apache and fpm
Signed-off-by: Stephan Müller <mail@stephanmueller.eu>
2020-09-04 17:55:44 +02:00

17 lines
476 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'),
'password' => getenv('REDIS_HOST_PASSWORD'),
),
);
if (getenv('REDIS_HOST_PORT') !== false) {
$CONFIG['redis']['port'] = (int) getenv('REDIS_HOST_PORT');
} elseif (getenv('REDIS_HOST')[0] != '/') {
$CONFIG['redis']['port'] = 6379;
}
}