homelab/roles/nextcloud/templates/config.php.j2

62 lines
1.8 KiB
Django/Jinja

<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'instanceid' => '{{ instance_id }}',
'passwordsalt' => '{{ password_salt }}',
'secret' => '{{ secret }}',
'version' => '{{ version }}',
'dbtype' => '{{ db_type }}',
'overwrite.cli.url' => '{{ url }}',
'overwriteprotocol' => '{{ overwrite_protocol }}',
'dbname' => '{{ db_name }}',
'dbhost' => '{{ db_host }}',
'dbport' => '{{ db_port }}',
'dbtableprefix' => 'oc_',
'dbuser' => '{{ db_user }}',
'dbpassword' => '{{ db_password }}',
'installed' => true,
'mail_from_address' => '{{ mail_from_address }}',
'mail_domain' => '{{ mail_domain }}',
'mail_smtphost' => '{{ smtp_host }}',
'mail_smtpport' => '{{ smtp_port }}',
'mail_smtpauth' => true,
'mail_smtpname' => '{{ smtp_name }}',
'mail_smtppassword' => '{{ smtp_password }}',
'maintenance' => false,
'loglevel' => 2,
'log_type' => 'errorlog',
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' => array(
'host' => '{{ redis_host }}',
'port' => {{ redis_port }},
),
'default_language' => 'ru',
'default_locale' => 'ru_RU',
'default_phone_region' => 'RU',
'trusted_domains' => [
{% for domain in trusted_domains %}
'{{ domain }}',
{% endfor %}
],
'trusted_proxies' => [
'172.24.0.0/16',
],
'ldapUserCleanupInterval' => 0,
'auth.storeCryptedPassword' => false,
'maintenance_window_start' => 21,
'apps_paths' => array (
0 => array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 => array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'upgrade.disable-web' => true,
);