Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2021-02-08 20:08:42 +0300
committerGitHub <noreply@github.com>2021-02-08 20:08:42 +0300
commitb68ff8df64b17acdd0ce2b762f6064a80a70414e (patch)
tree279359d8cdc5c819f6da3d4f47bc50b57e24f6f4 /.devcontainer
parent7f983cc5496ca398dfdef90d96fd0e1958371e56 (diff)
Hard-code SMTP configuration
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to '.devcontainer')
-rw-r--r--.devcontainer/codespace.config.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/.devcontainer/codespace.config.php b/.devcontainer/codespace.config.php
index 9c1730b3c9c..6908aa8475f 100644
--- a/.devcontainer/codespace.config.php
+++ b/.devcontainer/codespace.config.php
@@ -2,8 +2,15 @@
$cloudEnvironmentId = getenv('CLOUDENV_ENVIRONMENT_ID');
-if($cloudEnvironmentId !== false) {
- $CONFIG = array (
- 'overwritehost' => $cloudEnvironmentId . '-80.apps.codespaces.githubusercontent.com',
- );
+$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';
}