feat(install): add smtp config for wiki and farm
Some checks are pending
/ test (push) Waiting to run
Some checks are pending
/ test (push) Waiting to run
This commit is contained in:
parent
40d3d22229
commit
7cb482c25e
3 changed files with 31 additions and 2 deletions
|
@ -26,3 +26,11 @@ source_archive_url=https://repository.yeswiki.net/doryphore/yeswiki-doryphore-4.
|
||||||
admin_id=YesWikiProAdmin
|
admin_id=YesWikiProAdmin
|
||||||
admin_password='A very strong password should be used for admin access!'
|
admin_password='A very strong password should be used for admin access!'
|
||||||
admin_email=contact@yeswiki.pro
|
admin_email=contact@yeswiki.pro
|
||||||
|
|
||||||
|
# smtp params
|
||||||
|
smtpHost='ssl://my.smtpdomain.ext'
|
||||||
|
smtpPort='465'
|
||||||
|
smtpUser='noreply@domain.ext'
|
||||||
|
smtpPass='the given smtp password for the smtp user'
|
||||||
|
contactFrom='noreply@domain.ext'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
$wakkaConfig = array(
|
$wakkaConfig = [
|
||||||
'wakka_version' => '0.1.1',
|
'wakka_version' => '0.1.1',
|
||||||
'wikini_version' => '0.5.0',
|
'wikini_version' => '0.5.0',
|
||||||
'yeswiki_version' => 'doryphore',
|
'yeswiki_version' => 'doryphore',
|
||||||
|
@ -63,4 +63,20 @@ $wakkaConfig = array(
|
||||||
),
|
),
|
||||||
'default_language' => 'fr',
|
'default_language' => 'fr',
|
||||||
'db_charset' => 'utf8mb4',
|
'db_charset' => 'utf8mb4',
|
||||||
);
|
'yeswiki-farm-admin-name' => 'WikiAdminFerme',
|
||||||
|
'yeswiki-farm-admin-pass' => 'A CHANGER !!!',
|
||||||
|
'yeswiki-farm-extra-config' => [
|
||||||
|
'contact_mail_func' => 'smtp',
|
||||||
|
'contact_smtp_host' => '<?=$this->e($smtpHost)?>',
|
||||||
|
'contact_smtp_port' => '<?=$this->e($smtpPort)?>',
|
||||||
|
'contact_smtp_pass' => '<?=$this->e($smtpPass)?>',
|
||||||
|
'contact_smtp_user' => '<?=$this->e($smtpUser)?>',
|
||||||
|
'contact_from' => '<?=$this->e($contactFrom)?>',
|
||||||
|
],
|
||||||
|
'contact_mail_func' => 'smtp',
|
||||||
|
'contact_smtp_host' => '<?=$this->e($smtpHost)?>',
|
||||||
|
'contact_smtp_port' => '<?=$this->e($smtpPort)?>',
|
||||||
|
'contact_smtp_pass' => '<?=$this->e($smtpPass)?>',
|
||||||
|
'contact_smtp_user' => '<?=$this->e($smtpUser)?>',
|
||||||
|
'contact_from' => '<?=$this->e($contactFrom)?>',
|
||||||
|
];
|
||||||
|
|
|
@ -388,6 +388,11 @@ function createWakkaConfig($domain, $user, $dbUser)
|
||||||
'databaseUser' => $dbUser['user'],
|
'databaseUser' => $dbUser['user'],
|
||||||
'databasePassword' => $dbUser['password'],
|
'databasePassword' => $dbUser['password'],
|
||||||
'yeswikiVersion' => preg_replace('/.*-(.*)\.zip/m', "$1", $_SERVER['source_archive_url']),
|
'yeswikiVersion' => preg_replace('/.*-(.*)\.zip/m', "$1", $_SERVER['source_archive_url']),
|
||||||
|
'contactFrom' => $_SERVER['contactFrom'],
|
||||||
|
'smtpHost' => $_SERVER['smtpHost'],
|
||||||
|
'smtpPort' => $_SERVER['smtpPort'],
|
||||||
|
'smtpUser' => $_SERVER['smtpUser'],
|
||||||
|
'smtpPass' => $_SERVER['smtpPass'],
|
||||||
]));
|
]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue