mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-16 20:49:28 +00:00
wip
This commit is contained in:
@@ -16,7 +16,10 @@ return new class extends Migration
|
||||
$table->string('name');
|
||||
$table->string('description')->nullable();
|
||||
$table->boolean('personal_team')->default(false);
|
||||
$table->schemalessAttributes('extra_attributes');
|
||||
$table->schemalessAttributes('smtp');
|
||||
$table->schemalessAttributes('smtp_notifications');
|
||||
$table->schemalessAttributes('discord');
|
||||
$table->schemalessAttributes('discord_notifications');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ return new class extends Migration
|
||||
$table->boolean('do_not_track')->default(false);
|
||||
$table->boolean('is_auto_update_enabled')->default(true);
|
||||
$table->boolean('is_registration_enabled')->default(true);
|
||||
$table->schemalessAttributes('extra_attributes');
|
||||
$table->schemalessAttributes('smtp');
|
||||
// $table->string('custom_dns_servers')->default('1.1.1.1,8.8.8.8');
|
||||
// $table->boolean('is_dns_check_enabled')->default(true);
|
||||
$table->timestamps();
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Data\SmtpConfiguration;
|
||||
use App\Models\InstanceSettings;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\Process;
|
||||
@@ -17,14 +16,14 @@ class InstanceSettingsSeeder extends Seeder
|
||||
InstanceSettings::create([
|
||||
'id' => 0,
|
||||
'is_registration_enabled' => true,
|
||||
'extra_attributes' => SmtpConfiguration::from([
|
||||
'smtp_enabled' => true,
|
||||
'smtp_test_recipients' => 'test@example.com,test2@example.com',
|
||||
'smtp_host' => 'coolify-mail',
|
||||
'smtp_port' => 1025,
|
||||
'smtp_from_address' => 'hi@localhost.com',
|
||||
'smtp_from_name' => 'Coolify',
|
||||
])
|
||||
'smtp' => [
|
||||
'enabled' => true,
|
||||
'test_recipients' => 'test@example.com,test2@example.com',
|
||||
'host' => 'coolify-mail',
|
||||
'port' => 1025,
|
||||
'from_address' => 'hi@localhost.com',
|
||||
'from_name' => 'Coolify',
|
||||
]
|
||||
]);
|
||||
try {
|
||||
$ipv4 = Process::run('curl -4s https://ifconfig.io')->output();
|
||||
|
||||
Reference in New Issue
Block a user