fix nextcloud role for helm chart version 2.5.1 - set password for redis and add custom redis config

This commit is contained in:
ace 2021-02-05 00:14:50 +03:00
parent 8b1326e429
commit c9ec5c7dbf
No known key found for this signature in database
GPG Key ID: 32989872B72276A0

View File

@ -94,6 +94,19 @@ nextcloud_default_values:
$CONFIG = array (
"mail_smtptimeout" => 60,
);
fix.redis.config.php: |-
<?php
if (getenv('REDIS_HOST')) {
$CONFIG = array (
'memcache.distributed' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_HOST'),
'port' => getenv('REDIS_HOST_PORT') ?: 6379,
'password' => getenv('REDIS_HOST_PASSWORD'),
),
);
}
fix.config.php: |-
<?php
$CONFIG = array (
@ -120,7 +133,9 @@ nextcloud_default_values:
enabled: false
# Enable Redis
redis:
enabled: false
enabled: true
usePassword: true
password: 'nextcloud'
cluster:
enabled: false
## External database configuration