98 lines
3.4 KiB
YAML
98 lines
3.4 KiB
YAML
# Source: nextcloud/templates/config.yaml
|
||
apiVersion: v1
|
||
kind: ConfigMap
|
||
metadata:
|
||
name: nextcloud-config
|
||
labels:
|
||
app.kubernetes.io/name: nextcloud
|
||
helm.sh/chart: nextcloud-3.5.19
|
||
app.kubernetes.io/instance: nextcloud
|
||
app.kubernetes.io/managed-by: Helm
|
||
data:
|
||
locale.config.php: |-
|
||
<?php
|
||
$CONFIG = array (
|
||
'default_language' => '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,
|
||
);
|
||
.htaccess: |-
|
||
# line below if for Apache 2.4
|
||
<ifModule mod_authz_core.c>
|
||
Require all denied
|
||
</ifModule>
|
||
# line below if for Apache 2.2
|
||
<ifModule !mod_authz_core.c>
|
||
deny from all
|
||
</ifModule>
|
||
# section for Apache 2.2 and 2.4
|
||
<ifModule mod_autoindex.c>
|
||
IndexIgnore *
|
||
</ifModule>
|
||
apcu.config.php: |-
|
||
<?php
|
||
$CONFIG = array (
|
||
'memcache.local' => '\OC\Memcache\APCu',
|
||
);
|
||
apps.config.php: |-
|
||
<?php
|
||
$CONFIG = array (
|
||
"apps_paths" => 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: |-
|
||
<?php
|
||
$autoconfig_enabled = false;
|
||
if (getenv('SQLITE_DATABASE')) {
|
||
$AUTOCONFIG["dbtype"] = "sqlite";
|
||
$AUTOCONFIG["dbname"] = getenv('SQLITE_DATABASE');
|
||
$autoconfig_enabled = true;
|
||
} elseif (getenv('MYSQL_DATABASE') && getenv('MYSQL_USER') && getenv('MYSQL_PASSWORD') && getenv('MYSQL_HOST')) {
|
||
$AUTOCONFIG["dbtype"] = "mysql";
|
||
$AUTOCONFIG["dbname"] = getenv('MYSQL_DATABASE');
|
||
$AUTOCONFIG["dbuser"] = getenv('MYSQL_USER');
|
||
$AUTOCONFIG["dbpass"] = getenv('MYSQL_PASSWORD');
|
||
$AUTOCONFIG["dbhost"] = getenv('MYSQL_HOST');
|
||
$autoconfig_enabled = true;
|
||
} elseif (getenv('POSTGRES_DB') && getenv('POSTGRES_USER') && getenv('POSTGRES_PASSWORD') && getenv('POSTGRES_HOST')) {
|
||
$AUTOCONFIG["dbtype"] = "pgsql";
|
||
$AUTOCONFIG["dbname"] = getenv('POSTGRES_DB');
|
||
$AUTOCONFIG["dbuser"] = getenv('POSTGRES_USER');
|
||
$AUTOCONFIG["dbpass"] = getenv('POSTGRES_PASSWORD');
|
||
$AUTOCONFIG["dbhost"] = getenv('POSTGRES_HOST');
|
||
$autoconfig_enabled = true;
|
||
}
|
||
if ($autoconfig_enabled) {
|
||
$AUTOCONFIG["directory"] = getenv('NEXTCLOUD_DATA_DIR') ?: "/var/www/html/data";
|
||
}
|
||
smtp.config.php: |-
|
||
<?php
|
||
if (getenv('SMTP_HOST') && getenv('MAIL_FROM_ADDRESS') && getenv('MAIL_DOMAIN')) {
|
||
$CONFIG = array (
|
||
'mail_smtpmode' => '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'),
|
||
);
|
||
} |