k8s-manifests/customers/base/nextcloud-configmap.yml

112 lines
3.6 KiB
YAML
Raw Normal View History

apiVersion: v1
kind: ConfigMap
metadata:
name: nextcloud-configmap
data:
config.php: |
<?php
$CONFIG = array (
2023-04-04 08:43:09 +02:00
'app_install_overwrite' =>
array (
2023-04-04 08:43:09 +02:00
0 => 'globalsiteselector',
),
2023-04-04 08:43:09 +02:00
'apps_paths' =>
array (
2023-04-04 08:43:09 +02:00
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
2023-04-04 08:43:09 +02:00
'appstoreenabled' => false,
2025-01-24 17:22:54 +01:00
'config_is_read_only' => false,
2023-04-04 08:43:09 +02:00
'csrf.disabled' => true,
'datadirectory' => '/var/www/html/data',
2025-01-24 17:51:34 +01:00
'dbhost' => getenv('MYSQL_HOST_PORT'),
2025-01-24 16:20:40 +01:00
'dbname' => getenv('MYSQL_DATABASE'),
'dbpassword' => getenv('MYSQL_PASSWORD'),
'dbport' => getenv('MYSQL_PORT'),
'dbtableprefix' => 'oc_',
'dbtype' => 'mysql',
2025-01-24 16:20:40 +01:00
'dbuser' => getenv('MYSQL_USER'),
'default_phone_region' => 'SE',
2023-04-04 08:43:09 +02:00
'forcessl' => true,
'gs.enabled' => 'true',
'gs.federation' => 'global',
'gs.trustedHosts' => ['*.sunet.se'],
'installed' => true,
2025-01-24 16:20:40 +01:00
'instanceid' => getenv('NEXTCLOUD_INSTANCEID'),
2023-04-04 13:55:17 +02:00
'integrity.check.disabled' => true,
'log_type' => 'file',
'loglevel' => 0,
2025-01-24 16:20:40 +01:00
'lookup_server' => getenv('LOOKUP_SERVER'),
'mail_domain' => getenv('MAIL_DOMAIN'),
'mail_from_address' => getenv('MAIL_FROM_ADDRESS'),
'mail_sendmailmode' => 'smtp',
'mail_smtpauth' => 1,
'mail_smtpauthtype' => 'LOGIN',
2025-01-24 16:20:40 +01:00
'mail_smtphost' => getenv('MAIL_SMTPHOST'),
'mail_smtpmode' => 'smtp',
2025-01-24 16:20:40 +01:00
'mail_smtpname' => getenv('MAIL_SMTPNAME'),
'mail_smtppassword' => getenv('MAIL_SMTPPASSWORD'),
'mail_smtpport' => '587',
'mail_smtpsecure' => 'tls',
'mail_template_class' => 'OCA\DriveEmailTemplate\EMailTemplate',
2023-04-04 08:43:09 +02:00
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'mysql.utf8mb4' => true,
2023-04-04 08:43:09 +02:00
'objectstore' =>
array (
'class' => '\\OC\\Files\\ObjectStore\\S3',
'arguments' =>
array (
'autocreate' => false,
2025-01-24 16:20:40 +01:00
'bucket' => getenv('OBJECTSTORE_S3_BUCKET'),
'hostname' => getenv('OBJECTSTORE_S3_HOST'),
'key' => getenv('OBJECTSTORE_S3_KEY'),
2023-04-04 08:43:09 +02:00
'legacy_auth' => false,
'objectPrefix' => 'urn:oid:',
'port' => '',
2025-01-24 16:20:40 +01:00
'region' => getenv('OBJECTSTORE_S3_REGION'),
'secret' => getenv('OBJECTSTORE_S3_SECRET'),
2023-04-04 08:43:09 +02:00
'use_path_style' => true,
'use_ssl' => true,
),
),
2025-01-24 16:50:13 +01:00
'overwrite.cli.url' => 'https://' . getenv('SITE_NAME'),
2025-01-24 16:20:40 +01:00
'overwritehost' => getenv('SITE_NAME'),
2023-04-04 08:43:09 +02:00
'overwriteprotocol' => 'https',
2025-01-24 16:20:40 +01:00
'passwordsalt' => getenv('NEXTCLOUD_PASSWORDSALT'),
'secret' => getenv('NEXTCLOUD_SECRET'),
2023-04-04 08:43:09 +02:00
'redis' =>
array (
2025-01-24 16:20:40 +01:00
'host' => getenv('REDIS_HOST'),
2023-04-04 08:43:09 +02:00
'port' => 6379,
),
'skeletondirectory' => '',
2023-04-04 08:43:09 +02:00
'templatedirectory' => '',
'trusted_domains' =>
array (
2025-01-24 16:20:40 +01:00
0 => getenv('NEXTCLOUD_TRUSTED_DOMAINS')
2023-04-04 08:43:09 +02:00
),
'trusted_proxies' =>
array (
0 => '10.0.0.0/8'
),
'twofactor_enforced' => 'true',
'twofactor_enforced_groups' =>
2023-04-04 08:43:09 +02:00
array (
0 => 'admin',
),
2023-04-04 13:55:17 +02:00
'updatechecker' => false,
2025-01-24 16:20:40 +01:00
'version' => getenv('NEXTCLOUD_VERSION_STRING'),
);