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.

make sentinel enabled env var

Andras Bacsaidb9a68e9c937
diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php
index 9f834d3e02..89d679a476 100644
--- a/app/Console/Kernel.php
+++ b/app/Console/Kernel.php
@@ -58,7 +58,9 @@ class Kernel extends ConsoleKernel
{
$servers = Server::all()->where('settings.is_usable', true)->where('settings.is_reachable', true)->where('ip', '!=', '1.2.3.4');
foreach ($servers as $server) {
- // $schedule->job(new PullSentinelImageJob($server))->everyFiveMinutes()->onOneServer();
+ if (config('coolify.is_sentinel_enabled')) {
+ $schedule->job(new PullSentinelImageJob($server))->everyFiveMinutes()->onOneServer();
+ }
$schedule->job(new PullHelperImageJob($server))->everyFiveMinutes()->onOneServer();
}
}
diff --git a/app/Jobs/ServerStatusJob.php b/app/Jobs/ServerStatusJob.php
index 4ec28328f1..449ab85a0e 100644
--- a/app/Jobs/ServerStatusJob.php
+++ b/app/Jobs/ServerStatusJob.php
@@ -44,7 +44,9 @@ class ServerStatusJob implements ShouldQueue, ShouldBeEncrypted
if ($this->server->isFunctional()) {
$this->cleanup(notify: false);
$this->removeCoolifyYaml();
- // $this->server->checkSentinel();
+ if (config('coolify.is_sentinel_enabled')) {
+ $this->server->checkSentinel();
+ }
}
} catch (\Throwable $e) {
send_internal_notification('ServerStatusJob failed with: ' . $e->getMessage());
diff --git a/config/coolify.php b/config/coolify.php
index a6d6d8581a..c7cfe61011 100644
--- a/config/coolify.php
+++ b/config/coolify.php
@@ -14,4 +14,5 @@ return [
'helper_image' => env('HELPER_IMAGE', 'ghcr.io/coollabsio/coolify-helper:latest'),
'is_horizon_enabled' => env('HORIZON_ENABLED', true),
'is_scheduler_enabled' => env('SCHEDULER_ENABLED', true),
+ 'is_sentinel_enabled' => env('SENTINEL_ENABLED', false),
];