fix(server): enable disabled self-hosted servers again on validation

On self-hosted, a validation that connects now clears force_disabled. The unreachable cleanup skips the localhost server, and the server page explains why a server is disabled. Cloud and transferred servers stay disabled.

Closes #12475
This commit is contained in:
Andras Bacsai
2026-11-06 18:57:06 +01:00
parent 5af4715b8a
commit f7ea962145
4 changed files with 101 additions and 1 deletions
@@ -221,6 +221,14 @@
</x-callout>
@endif
@if ($server->canBeReEnabled())
<x-callout type="danger" title="Server disabled" class="mb-4">
Coolify disabled this server because it was unreachable for more than 7 days. Coolify does
not connect to it. Correct the connection settings, then click
<strong>Validate connection</strong>. When the connection works, the server is enabled again.
</x-callout>
@endif
<div class="grid gap-4 sm:grid-cols-2">
<x-forms.input canGate="update" :canResource="$server" id="name" label="Name"
required :disabled="$isValidating" />