Add isLocalhost method to Server model and
conditionally show Cloudflare Tunnel checkbox in server form view
This commit is contained in:
@@ -112,6 +112,12 @@ class Server extends BaseModel
|
||||
return $this->proxy->modelScope();
|
||||
}
|
||||
|
||||
public function isLocalhost() {
|
||||
if (isDev()) {
|
||||
return $this->ip === 'coolify-testing-host';
|
||||
}
|
||||
return $this->ip === 'host.docker.internal';
|
||||
}
|
||||
public function checkServerRediness()
|
||||
{
|
||||
$serverUptimeCheckNumber = $this->unreachable_count;
|
||||
|
||||
Reference in New Issue
Block a user