diff --git a/app/Models/Server.php b/app/Models/Server.php
index cc6bff2cf..2867f95cb 100644
--- a/app/Models/Server.php
+++ b/app/Models/Server.php
@@ -54,6 +54,8 @@ class Server extends BaseModel
public static $batch_counter = 0;
+ protected $appends = ['is_coolify_host'];
+
protected static function booted()
{
static::saving(function ($server) {
@@ -156,6 +158,15 @@ public function type()
return 'server';
}
+ protected function isCoolifyHost(): Attribute
+ {
+ return Attribute::make(
+ get: function () {
+ return $this->id === 0;
+ }
+ );
+ }
+
public static function isReachable()
{
return Server::ownedByCurrentTeam()->whereRelation('settings', 'is_reachable', true);
diff --git a/resources/views/livewire/server/show.blade.php b/resources/views/livewire/server/show.blade.php
index 0d1d5e681..ac0d3a6df 100644
--- a/resources/views/livewire/server/show.blade.php
+++ b/resources/views/livewire/server/show.blade.php
@@ -223,8 +223,7 @@ class="px-4 py-2 text-gray-800 cursor-pointer hover:bg-gray-100 dark:hover:bg-co
+ required helper="Interval at which metrics data is sent to the collector." />
@endif