mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 18:15:24 +00:00
Add isLocalhost method to Server model and
conditionally show Cloudflare Tunnel checkbox in server form view
This commit is contained in:
1 parent
81437e6822
commit
fb42c43953
2 files changed
+13
-5
No files matched your search
@@ -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