fix: migrate db schema for smtp + discord

This commit is contained in:
Andras Bacsai
2023-07-27 21:26:15 +02:00
parent d0a85713d2
commit 9c393ff6bc
21 changed files with 382 additions and 238 deletions

View File

@@ -16,14 +16,11 @@ class InstanceSettingsSeeder extends Seeder
InstanceSettings::create([
'id' => 0,
'is_registration_enabled' => true,
'smtp' => [
'enabled' => true,
'test_recipients' => 'test@example.com,test2@example.com',
'host' => 'coolify-mail',
'port' => 1025,
'from_address' => 'hi@localhost.com',
'from_name' => 'Coolify',
]
'smtp_enabled' => true,
'smtp_host' => 'coolify-mail',
'smtp_port' => 1025,
'smtp_from_address' => 'hi@localhost.com',
'smtp_from_name' => 'Coolify',
]);
try {
$ipv4 = Process::run('curl -4s https://ifconfig.io')->output();
@@ -44,4 +41,4 @@ class InstanceSettingsSeeder extends Seeder
echo "Error: {$e->getMessage()}\n";
}
}
}
}