mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
fix(server-transfer): accept legacy database port values and allow the kit VM network
- Do not check database port mappings in a bundle: the UI checks them only since March 2026, so older servers could not be transferred, and the values stay on the server owner's own host. - The dev .env runs Cloud mode, where the import check refuses private addresses. reset.sh now allows the VM network of A on both instances. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
cf9f254507
commit
9e52c6a140
@@ -57,7 +57,9 @@ tinker "$A" 'foreach (App\Models\Server::where("id", "!=", 0)->get() as $s) { $s
|
||||
for side in source target; do
|
||||
C="$A"
|
||||
[[ "$side" == target ]] && C="$B"
|
||||
tinker "$C" '$s = App\Models\InstanceSettings::get(); $s->is_api_enabled = true; $s->save(); session(["currentTeam" => App\Models\Team::find(0)]); echo App\Models\User::find(0)->createToken("transfer-test", ["root"])->plainTextToken;' | tail -1 >"$STATE_DIR/$side.token"
|
||||
# The dev .env runs Cloud mode, where the import check refuses private addresses unless the
|
||||
# instance allows them. The VMs of A are on a private network.
|
||||
tinker "$C" '$s = App\Models\InstanceSettings::get(); $s->is_api_enabled = true; $s->webhook_allowed_internal_hosts = ["10.221.'"$A_SLOT"'.0/24"]; $s->save(); session(["currentTeam" => App\Models\Team::find(0)]); echo App\Models\User::find(0)->createToken("transfer-test", ["root"])->plainTextToken;' | tail -1 >"$STATE_DIR/$side.token"
|
||||
chmod 600 "$STATE_DIR/$side.token"
|
||||
docker exec -u www-data "$C" php artisan horizon:terminate >/dev/null
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user