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

81 lines
2.4 KiB
Django/Jinja

<?php
$CONFIG = array (
'config_is_read_only' => true,
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/usr/share/nextcloud/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/lib/nextcloud/apps',
'url' => '/apps-appstore',
'writable' => true,
),
),
'instanceid' => '{{ nextcloud_instanceid }}',
'passwordsalt' => '{{ nextcloud_passwordsalt }}',
'secret' => '{{ nextcloud_secret }}',
'trusted_proxies' =>
array (
{% for addr in nextcloud_trusted_proxies %}
{{ loop.index0 }} => '{{ addr }}',
{% endfor %}
),
'trusted_domains' =>
array (
{% for name in nextcloud_trusted_domains %}
{{ loop.index0 }} => '{{ name }}',
{% endfor %}
),
'datadirectory' => '/var/lib/nextcloud/data',
'dbtype' => 'pgsql',
'version' => '{{ nc_version }}',
'overwrite.cli.url' => 'https://{{ nextcloud_server_name }}',
'dbname' => '{{ nextcloud_db_name }}',
'dbhost' => '{{ nextcloud_db_host }}',
'dbport' => '{{ nextcloud_db_port }}',
'dbtableprefix' => 'oc_',
'dbuser' => '{{ nextcloud_db_user }}',
'dbpassword' => '{{ nextcloud_db_password|d("") }}',
'installed' => true,
'ldapIgnoreNamingRules' => false,
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'maintenance' => {{ nextcloud_maintenance|bool|string|lower }},
'theme' => '',
'trashbin_retention_obligation' => 'auto, 30',
'loglevel' => 2,
{% if nextcloud_smtp is defined %}
'mail_from_address' => '{{ nextcloud_smtp.from.split("@")[0] }}',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => '{{ nextcloud_smtp.from.split("@")[1] }}',
'mail_smtphost' => '{{ nextcloud_smtp.host }}',
'mail_smtpport' => '{{ nextcloud_smtp.port }}',
{% endif %}
'filelocking.enabled' => true,
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
'timeout' => 0.0,
),
'memories.db.triggers.fcu' => true,
'memories.exiftool_no_local' => true,
'memories.vod.path' => '/var/lib/nextcloud/apps/memories/bin-ext/go-vod-amd64',
'memories.vod.ffmpeg' => '/usr/bin/ffmpeg',
'memories.vod.ffprobe' => '/usr/bin/ffprobe',
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\Image',
1 => 'OC\\Preview\\Movie',
),
);