mirror of
https://github.com/coollabsio/coolify.git
synced 2026-09-28 02:06:37 -04:00
feat(restarts): make resource restart limits opt-in
Default restart limits to zero for applications, previews, and services, and bump the Coolify version to 4.3.21.
This commit is contained in:
@@ -135,6 +135,10 @@ class Application extends BaseModel
|
||||
|
||||
private static $parserVersion = '5';
|
||||
|
||||
protected $attributes = [
|
||||
'max_restart_count' => 0,
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'description',
|
||||
|
||||
@@ -13,6 +13,10 @@ class ApplicationPreview extends BaseModel
|
||||
{
|
||||
use HasRestartLimit, SoftDeletes;
|
||||
|
||||
protected $attributes = [
|
||||
'max_restart_count' => 0,
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'uuid',
|
||||
'application_id',
|
||||
|
||||
@@ -54,6 +54,7 @@ class ServiceApplication extends BaseModel
|
||||
|
||||
protected $attributes = [
|
||||
'is_force_https_enabled' => true,
|
||||
'max_restart_count' => 0,
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
|
||||
Reference in New Issue
Block a user