From 6acef2a0c3a5b5d05e17e1d31520fb903e723cf7 Mon Sep 17 00:00:00 2001 From: Claudio Maradonna Date: Wed, 4 Aug 2021 18:14:50 +0200 Subject: [PATCH] feature: add default config for nextcloud 21 with S3 storage, smtp and rewrite URL --- .../www/html/nextcloud/config/config.php.s3 | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 nextcloud/var/www/html/nextcloud/config/config.php.s3 diff --git a/nextcloud/var/www/html/nextcloud/config/config.php.s3 b/nextcloud/var/www/html/nextcloud/config/config.php.s3 new file mode 100644 index 0000000..0790fd8 --- /dev/null +++ b/nextcloud/var/www/html/nextcloud/config/config.php.s3 @@ -0,0 +1,64 @@ + '', + 'passwordsalt' => '', + 'secret' => '', + 'trusted_domains' => + array ( + 0 => 'your_domain', + ), + 'datadirectory' => '/var/www/html/nextcloud/data', + 'dbtype' => 'mysql', + 'version' => '21.0.3.1', + 'overwrite.cli.url' => 'http://your_domain/', + 'htaccess.RewriteBase' => '/', + 'dbname' => 'nextcloud', + 'dbhost' => 'host:port', + 'dbport' => '', + 'dbtableprefix' => 'oc_', + 'mysql.utf8mb4' => true, + 'dbuser' => 'user', + 'dbpassword' => 'pass', + 'installed' => true, + 'memcache.distributed' => '\\OC\\Memcache\\Redis', + 'memcache.locking' => '\\OC\\Memcache\\Redis', + 'memcache.local' => '\\OC\\Memcache\\Redis', + 'log_type' => 'syslog', + 'logfile' => '', + 'loglevel' => '3', + 'redis' => + array ( + 'host' => 'localhost', + 'port' => 6379, + ), + 'objectstore' => + array ( + 'class' => '\\OC\\Files\\ObjectStore\\S3', + 'arguments' => + array ( + 'bucket' => 'name', + 'autocreate' => true, + 'key' => '', + 'secret' => '', + 'hostname' => '', + 'region' => '', + 'port' => 443, + 'use_ssl' => true, + 'use_path_style' => true, + ), + ), + 'mail_smtpmode' => 'smtp', + 'mail_smtphost' => '', + 'mail_smtpport' => '587', + 'mail_smtptimeout' => 10, + 'mail_from_address' => 'no-reply', + 'mail_sendmailmode' => 'pipe', + 'mail_domain' => 'your_domain', + 'mail_smtpsecure' => 'tls', + 'mail_smtpauthtype' => 'LOGIN', + 'mail_smtpauth' => 1, + 'mail_smtpname' => '', + 'mail_smtppassword' => '', + 'maintenance' => false, + 'default_phone_region' => 'IT', +);