Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Update health check validation rules in HealthChecks.php

Andras Bacsai0c516843d80b
diff --git a/app/Livewire/Project/Shared/HealthChecks.php b/app/Livewire/Project/Shared/HealthChecks.php
index 3bf507cab6..bd16ee5774 100644
--- a/app/Livewire/Project/Shared/HealthChecks.php
+++ b/app/Livewire/Project/Shared/HealthChecks.php
@@ -17,9 +17,9 @@ class HealthChecks extends Component
'resource.health_check_return_code' => 'integer',
'resource.health_check_scheme' => 'string',
'resource.health_check_response_text' => 'nullable|string',
- 'resource.health_check_interval' => 'integer',
- 'resource.health_check_timeout' => 'integer',
- 'resource.health_check_retries' => 'integer',
+ 'resource.health_check_interval' => 'integer|min:1',
+ 'resource.health_check_timeout' => 'integer|min:1',
+ 'resource.health_check_retries' => 'integer|min:1',
'resource.health_check_start_period' => 'integer',
];