mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-21 00:24:36 +00:00
Merge remote-tracking branch 'origin/next' into feat/noindex-domains
This commit is contained in:
@@ -19,6 +19,8 @@ class ServiceApplication extends BaseModel
|
||||
'description',
|
||||
'fqdn',
|
||||
'noindex_domains',
|
||||
'redirect',
|
||||
'domain_dns_statuses',
|
||||
'ports',
|
||||
'exposes',
|
||||
'status',
|
||||
@@ -33,6 +35,23 @@ class ServiceApplication extends BaseModel
|
||||
'is_migrated',
|
||||
];
|
||||
|
||||
/**
|
||||
* Internal DNS check cache — not part of the public API surface.
|
||||
*
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $hidden = [
|
||||
'domain_dns_statuses',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'domain_dns_statuses' => 'array',
|
||||
'noindex_domains' => 'array',
|
||||
];
|
||||
}
|
||||
|
||||
protected static function booted()
|
||||
{
|
||||
static::deleting(function ($service) {
|
||||
@@ -50,13 +69,6 @@ class ServiceApplication extends BaseModel
|
||||
});
|
||||
}
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'noindex_domains' => 'array',
|
||||
];
|
||||
}
|
||||
|
||||
public function restart()
|
||||
{
|
||||
$container_id = $this->name.'-'.$this->service->uuid;
|
||||
|
||||
Reference in New Issue
Block a user