feat(servers): add cross-instance server migration (#11075)

This commit is contained in:
Andras Bacsai
2026-08-07 23:07:55 +02:00
committed by GitHub
parent c15e3b35fd
commit f9caa5250d
36 changed files with 7675 additions and 15 deletions
+21
View File
@@ -862,8 +862,29 @@ $schema://$host {
return $this->settings->force_disabled;
}
/**
* Server was migrated away from this Coolify instance (source side).
* Must not be revalidated or re-enabled as a live managed host.
*/
public function isTransferredAway(): bool
{
return data_get($this->server_metadata, 'transfer.status') === 'transferred';
}
/**
* Whether this server may be validated / installed against from this instance.
*/
public function canBeValidated(): bool
{
return ! $this->isTransferredAway();
}
public function forceEnableServer()
{
if ($this->isTransferredAway()) {
return;
}
$this->settings->force_disabled = false;
$this->settings->save();
}