This commit is contained in:
Andras Bacsai
2023-06-12 14:47:42 +02:00
parent 3da58ed2b8
commit 2ae67b8ca9
5 changed files with 12 additions and 11 deletions

View File

@@ -89,12 +89,10 @@ class ProductionSeeder extends Seeder
'team_id' => 0,
'private_key_id' => 0
];
if (env('COOLIFY_DEFAULT_PROXY') == 'traefik') {
$server_details['extra_attributes'] = ServerMetadata::from([
'proxy_type' => ProxyTypes::TRAEFIK_V2->value,
'proxy_status' => ProxyStatus::EXITED->value
]);
}
$server_details['extra_attributes'] = ServerMetadata::from([
'proxy_type' => ProxyTypes::TRAEFIK_V2->value,
'proxy_status' => ProxyStatus::EXITED->value
]);
$server = Server::create($server_details);
$server->settings->is_validated = true;
$server->settings->save();