# Source: nextcloud/templates/config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: nextcloud-config
labels:
app.kubernetes.io/name: nextcloud
helm.sh/chart: nextcloud-4.5.12
app.kubernetes.io/instance: nextcloud
app.kubernetes.io/managed-by: Helm
data:
locale.config.php: |-
'fr',
'default_locale' => 'fr_FR',
'default_phone_region' => 'FR',
'log_type' => 'errorlog',
'loglevel' => 0,
'logdateformat' => 'F d, Y H:i:s',
'trusted_proxies' => array('10.244.0.0/16','2001:cafe:42::1'),
'allow_local_remote_servers' => true,
);
redis.config.php: |-
true,
'memcache.distributed' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_HOST'),
'port' => getenv('REDIS_HOST_PORT') ?: 6379,
),
);
}
.htaccess: |-
# line below if for Apache 2.4
Require all denied
# line below if for Apache 2.2
deny from all
# section for Apache 2.2 and 2.4
IndexIgnore *
apcu.config.php: |-
'\OC\Memcache\APCu',
);
apps.config.php: |-
array (
0 => array (
"path" => OC::$SERVERROOT."/apps",
"url" => "/apps",
"writable" => false,
),
1 => array (
"path" => OC::$SERVERROOT."/custom_apps",
"url" => "/custom_apps",
"writable" => true,
),
),
);
autoconfig.php: |-
'smtp',
'mail_smtphost' => getenv('SMTP_HOST'),
'mail_smtpport' => getenv('SMTP_PORT') ?: (getenv('SMTP_SECURE') ? 465 : 25),
'mail_smtpsecure' => getenv('SMTP_SECURE') ?: '',
'mail_smtpauth' => getenv('SMTP_NAME') && getenv('SMTP_PASSWORD'),
'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN',
'mail_smtpname' => getenv('SMTP_NAME') ?: '',
'mail_smtppassword' => getenv('SMTP_PASSWORD') ?: '',
'mail_from_address' => getenv('MAIL_FROM_ADDRESS'),
'mail_domain' => getenv('MAIL_DOMAIN'),
);
}