nextcloud/.devcontainer/codespace.config.php
Lukas Reschke b68ff8df64 Hard-code SMTP configuration
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-02-08 17:08:42 +00:00

16 lines
423 B
PHP

<?php
$cloudEnvironmentId = getenv('CLOUDENV_ENVIRONMENT_ID');
$CONFIG = [
'mail_from_address' => 'no-reply',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'example.com',
'mail_smtphost' => 'localhost',
'mail_smtpport' => '1025'
];
if($cloudEnvironmentId !== true) {
$CONFIG['overwritehost'] = $cloudEnvironmentId . '-80.apps.codespaces.githubusercontent.com';
}