mirror of
https://github.com/nextcloud/docker.git
synced 2025-05-07 17:20:54 +02:00
Runs update.sh
This commit is contained in:
parent
4daafc8d20
commit
71235584cd
42 changed files with 2116 additions and 1 deletions
21
31/fpm/config/redis.config.php
Normal file
21
31/fpm/config/redis.config.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?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_FILE') ? trim(file_get_contents(getenv('REDIS_HOST_PASSWORD_FILE'))) : (string) 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;
|
||||
}
|
||||
|
||||
if (getenv('REDIS_HOST_USER') !== false) {
|
||||
$CONFIG['redis']['user'] = (string) getenv('REDIS_HOST_USER');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue