fix: disable sentinel for now
This commit is contained in:
@@ -362,6 +362,10 @@ function isCloud(): bool
|
|||||||
return ! config('coolify.self_hosted');
|
return ! config('coolify.self_hosted');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isExperimentalEnabled(): bool
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
function translate_cron_expression($expression_to_validate): string
|
function translate_cron_expression($expression_to_validate): string
|
||||||
{
|
{
|
||||||
if (isset(VALID_CRON_STRINGS[$expression_to_validate])) {
|
if (isset(VALID_CRON_STRINGS[$expression_to_validate])) {
|
||||||
|
@@ -159,13 +159,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@if (!$server->isSwarm() && !$server->isBuildServer())
|
@if (!$server->isSwarm() && !$server->isBuildServer())
|
||||||
|
@if (isExperimentalEnabled())
|
||||||
<div class="flex gap-2 items-center pt-4 pb-2">
|
<div class="flex gap-2 items-center pt-4 pb-2">
|
||||||
<h3>Sentinel</h3>
|
<h3>Sentinel</h3>
|
||||||
@if ($server->isSentinelEnabled())
|
@if ($server->isSentinelEnabled())
|
||||||
<div class="flex gap-2 items-center"
|
<div class="flex gap-2 items-center"
|
||||||
wire:poll.{{ $server->settings->sentinel_push_interval_seconds }}s="checkSyncStatus">
|
wire:poll.{{ $server->settings->sentinel_push_interval_seconds }}s="checkSyncStatus">
|
||||||
@if ($server->isSentinelLive())
|
@if ($server->isSentinelLive())
|
||||||
<x-status.running status="In sync" noLoading title="{{ $server->sentinel_updated_at }}" />
|
<x-status.running status="In sync" noLoading
|
||||||
|
title="{{ $server->sentinel_updated_at }}" />
|
||||||
<x-forms.button wire:click='restartSentinel'>Restart</x-forms.button>
|
<x-forms.button wire:click='restartSentinel'>Restart</x-forms.button>
|
||||||
@else
|
@else
|
||||||
<x-status.stopped status="Out of sync" noLoading
|
<x-status.stopped status="Out of sync" noLoading
|
||||||
@@ -175,9 +177,15 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
@else
|
||||||
|
<h3>Sentinel</h3>
|
||||||
|
<div>Sentinel is not available in this version (soon).</div>
|
||||||
|
@endif
|
||||||
|
@if (isExperimentalEnabled())
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
<div class="w-64">
|
<div class="w-64">
|
||||||
<x-forms.checkbox wire:model.live="server.settings.is_sentinel_enabled" label="Enable Sentinel" />
|
<x-forms.checkbox wire:model.live="server.settings.is_sentinel_enabled"
|
||||||
|
label="Enable Sentinel" />
|
||||||
@if ($server->isSentinelEnabled())
|
@if ($server->isSentinelEnabled())
|
||||||
<x-forms.checkbox instantSave id="server.settings.is_metrics_enabled"
|
<x-forms.checkbox instantSave id="server.settings.is_metrics_enabled"
|
||||||
label="Enable Metrics" />
|
label="Enable Metrics" />
|
||||||
@@ -212,6 +220,6 @@
|
|||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
@endif
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -28,8 +28,8 @@
|
|||||||
<a class="menu-item" :class="activeTab === 'log-drains' && 'menu-item-active'"
|
<a class="menu-item" :class="activeTab === 'log-drains' && 'menu-item-active'"
|
||||||
@click.prevent="activeTab = 'log-drains'; window.location.hash = 'log-drains'" href="#">Log
|
@click.prevent="activeTab = 'log-drains'; window.location.hash = 'log-drains'" href="#">Log
|
||||||
Drains</a>
|
Drains</a>
|
||||||
<a class="menu-item" :class="activeTab === 'metrics' && 'menu-item-active'"
|
{{-- <a class="menu-item" :class="activeTab === 'metrics' && 'menu-item-active'"
|
||||||
@click.prevent="activeTab = 'metrics'; window.location.hash = 'metrics'" href="#">Metrics</a>
|
@click.prevent="activeTab = 'metrics'; window.location.hash = 'metrics'" href="#">Metrics</a> --}}
|
||||||
@endif
|
@endif
|
||||||
@if (!$server->isLocalhost())
|
@if (!$server->isLocalhost())
|
||||||
<a class="menu-item" :class="activeTab === 'danger' && 'menu-item-active'"
|
<a class="menu-item" :class="activeTab === 'danger' && 'menu-item-active'"
|
||||||
|
Reference in New Issue
Block a user