dataset/seed/nextcloud/templates/nextcloud-config.php

132 lines
4.2 KiB
PHP
Raw Normal View History

2022-03-08 19:42:28 +01:00
<?php
$CONFIG = array (
'log_type' => 'syslog',
'debug' => false,
'datadirectory' => '/srv/nextcloud/data/',
'updatechecker' => false,
'check_for_working_htaccess' => false,
'asset-pipeline.enabled' => false,
'assetdirectory' => '/var/lib/nextcloud',
'preview_libreoffice_path' => '/usr/bin/libreoffice',
'trusted_domains' =>
array (
0 => 'localhost',
2022-08-18 10:19:43 +02:00
1 => '%%revprox_client_external_domainnames[0]',
2022-03-08 19:42:28 +01:00
),
2022-10-01 19:11:05 +02:00
'apps_paths' =>
2022-03-08 19:42:28 +01:00
array (
2022-10-01 19:11:05 +02:00
0 =>
2022-03-08 19:42:28 +01:00
array (
2022-10-01 19:11:05 +02:00
'path' => '/usr/share/nextcloud/apps',
'url' => '/apps',
'writable' => false,
2022-03-08 19:42:28 +01:00
),
2022-10-01 19:11:05 +02:00
1 =>
2022-03-08 19:42:28 +01:00
array (
2022-10-01 19:11:05 +02:00
'path' => '/usr/local/share/nextcloud/apps',
'url' => '/apps-appstore',
'writable' => true,
2022-03-08 19:42:28 +01:00
),
),
'dbtype' => 'pgsql',
2022-10-01 19:11:05 +02:00
'version' => '{{VERSION}}',
2022-03-08 19:42:28 +01:00
'overwrite.cli.url' => 'http://localhost',
'dbname' => '%%pg_client_database',
'dbhost' => '%%pg_client_server_domainname',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => '%%pg_client_username',
'dbpassword' => '%%pg_client_password',
2022-10-01 19:11:05 +02:00
'dbdriveroptions' =>
array (
'sslmode' => 'verify-full',
'sslcert' => '/etc/pki/tls/certs/postgresql.crt',
'sslkey' => '/etc/pki/tls/private/postgresql.key',
'sslrootcert' => '/etc/pki/ca-trust/source/anchors/ca_PostgreSQL.crt',
),
2022-03-08 19:42:28 +01:00
'passwordsalt' => '{{SALT}}',
'secret' => '{{SECRET}}',
'instanceid' => '%%nextcloud_instance_id',
'config_is_read_only' => true,
'installed' => false,
'maintenance' => false,
'appstoreenabled' => false,
'appcodechecker' => false,
2022-10-17 18:33:01 +02:00
# 'memcache.distributed' => '\\OC\\Memcache\\Redis',
# 'memcache.locking' => '\\OC\\Memcache\\Redis',
2022-03-08 19:42:28 +01:00
'trusted_proxies' => '%%revprox_client_server_ip',
2022-08-18 10:19:43 +02:00
'overwritehost' => '%%revprox_client_external_domainnames[0]',
2022-03-08 19:42:28 +01:00
'filelocking.enabled' => true,
2022-10-01 19:11:05 +02:00
'redis' =>
array (
'host' => '%%redis_client_server_domainname',
'port' => 6380,
'user' => '%%redis_client_username',
'password' => '%%redis_client_password',
'dbindex' => 0,
'ssl_context' =>
array (
'local_cert' => '/etc/pki/tls/certs/redis.crt',
'local_pk' => '/etc/pki/tls/private/redis.key',
'cafile' => '/etc/pki/ca-trust/source/anchors/ca_Redis.crt',
2022-10-17 18:33:01 +02:00
),
2022-10-01 19:11:05 +02:00
),
2022-03-08 19:42:28 +01:00
'default_phone_region' => 'FR',
2022-10-01 19:11:05 +02:00
# OIDC login
2022-03-08 19:42:28 +01:00
'allow_user_to_change_display_name' => false,
'lost_password_link' => 'disabled',
'oidc_login_provider_url' => 'https://%%oauth2_client_server_domainname',
'oidc_login_client_id' => '%%oauth2_client_id',
'oidc_login_client_secret' => '%%oauth2_client_secret',
'oidc_login_auto_redirect' => true,
2022-10-01 19:11:05 +02:00
# FIXME 'oidc_login_logout_url' => 'https://openid.example.com/thankyou',
# FIXME to true
2022-03-08 19:42:28 +01:00
'oidc_login_end_session_redirect' => false,
2022-10-01 19:11:05 +02:00
# If no quota, we cannot send file
2022-03-08 19:42:28 +01:00
'oidc_login_default_quota' => '1000000000000000',
'oidc_login_button_text' => 'Log in with OpenID',
'oidc_login_hide_password_form' => true,
'oidc_login_use_id_token' => false,
2022-10-01 19:11:05 +02:00
'oidc_login_attributes' =>
array (
'id' => 'sub',
'name' => 'name',
'mail' => 'email',
# 'quota' => 'ownCloudQuota',
# 'home' => 'homeDirectory',
'ldap_uid' => 'uid',
# 'groups' => 'ownCloudGroups',
# 'photoURL' => 'picture',
# 'is_admin' => 'ownCloudAdmin',
2022-03-08 19:42:28 +01:00
),
'oidc_login_default_group' => 'oidc',
'oidc_login_scope' => 'openid profile email',
'oidc_login_proxy_ldap' => false,
'oidc_login_disable_registration' => true,
'oidc_login_redir_fallback' => false,
'oidc_login_alt_login_page' => 'assets/login.php',
'oidc_login_tls_verify' => true,
'oidc_create_groups' => false,
2022-10-01 19:11:05 +02:00
# FIXME
2022-03-08 19:42:28 +01:00
'oidc_login_webdav_enabled' => false,
'oidc_login_password_authentication' => false,
'oidc_login_public_key_caching_time' => 86400,
'oidc_login_min_time_between_jwks_requests' => 10,
'oidc_login_well_known_caching_time' => 86400,
'oidc_login_update_avatar' => false,
2022-10-01 19:11:05 +02:00
# mail
2022-03-08 19:42:28 +01:00
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'tls',
'mail_sendmailmode' => 'smtp',
%set %%mailfrom, %%maildomain = %%nextcloud_mail_admin.split("@")
'mail_from_address' => '%%mailfrom',
'mail_domain' => '%%maildomain',
'mail_smtpauthtype' => 'PLAIN',
'mail_smtpauth' => 1,
'mail_smtphost' => '%%smtp_relay_address',
'mail_smtpport' => '25',
'mail_smtpname' => '%%smtp_relay_user@%%ip_eth0',
'mail_smtppassword' => '%%smtp_relay_password',
2022-10-01 19:11:05 +02:00
'loglevel' => 2,
2022-03-08 19:42:28 +01:00
);