6. config.php exemple de configuration
Important : A partir d’ici, toutes les commandes seront exécutées en tant que root.
1. Configuration du fichier config.php
sudo nano /var/www/nextcloud/config/config.php
exemple de configuration :
?php
$CONFIG = array (
'instanceid' => 'ocljkz7n754s',
'passwordsalt' => 'IaRS4qSMcWENfCHgElqGP4vh4ijJYi',
'secret' => 'GHnmgp+NOW0289FnFuhtqqX2v0vdD6NMHILJADZAVAIhq3mq',
'trusted_domains' =>
array (
0 => '192.168.1.88',
),
'overwritehost' => 'sebcloud.homelinux.com',
'overwriteprotocol' => 'https',
'datadirectory' => '/var/www/nextcloud/data',
'dbtype' => 'mysql',
'version' => '29.0.7.1',
'overwrite.cli.url' => 'http://192.168.1.88',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => '04072001',
'installed' => true,
'default_phone_region' => 'FR',
'htaccess.RewriteBase' => '/',
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'maintenance_window_start' => 100,
'trashbin_retention_obligation' => 'auto, 15',
'mail_smtpmode' => 'smtp',
'mail_smtpauth' => 1,
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'sebaestabien',
'mail_domain' => 'gmail.com',
'mail_smtphost' => 'smtp.gmail.com',
'mail_smtpport' => '587',
'mail_smtpname' => 'sebaestabien@gmail.com',
'mail_smtppassword' => 'ehax tvjm cnim kedm ',
'memcache.distributed' => '\OC\Memcache\Redis',
'memcache.local' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => 'localhost',
'port' => 6379,
),
);
CTRL O pour enregistrer, ENTRER pour valider, et CTRL X pour sortir.
Décryptage :