coolify/resources/views/livewire/settings/updates.blade.php
Andras Bacsai 8ae56587d5
feat(ui): Shadow UI redesign, domain management, and DNS autoconfigure (#11119)
Co-authored-by: ShadowArcanist <162910371+ShadowArcanist@users.noreply.github.com>
2026-08-03 23:11:54 +02:00

65 lines
3.3 KiB
PHP

<div>
<x-slot:title>
Update Settings | Coolify
</x-slot>
<x-settings.navbar />
<div
class="application-settings-workspace mx-auto grid w-full max-w-[1180px] min-w-0 gap-8 xl:grid-cols-[210px_minmax(0,1fr)] xl:gap-10">
<x-settings.sidebar activeMenu="updates" />
<form wire:submit="submit" class="application-settings-form flex min-w-0 flex-col gap-6">
{{-- Exclude is_auto_update_enabled (instantSave) so the bar does not flash. --}}
<x-unsaved-bar action="submit" targets="update_check_frequency,auto_update_frequency" />
<x-application.settings-section title="Update checks">
<x-slot:actions>
<x-forms.button type="button" wire:click="checkManually">
<x-reicon name="refresh" class="size-3.5" />
Check now
</x-forms.button>
</x-slot:actions>
<x-forms.input required id="update_check_frequency" label="Check frequency"
placeholder="0 * * * *"
helper="A cron expression or preset such as hourly, daily, weekly, monthly, or yearly." />
</x-application.settings-section>
<x-application.settings-section title="Automatic updates">
<div class="grid gap-4 lg:grid-cols-2">
@if (!is_null(config('constants.coolify.autoupdate', null)))
<x-forms.listbox disabled id="is_auto_update_enabled" label="Automatic updates"
helper="Controlled by the AUTOUPDATE environment variable." :options="[
['value' => true, 'label' => 'Enabled'],
['value' => false, 'label' => 'Disabled'],
]" />
@else
<x-forms.listbox id="is_auto_update_enabled" label="Automatic updates"
onChange="instantSave" :options="[
['value' => true, 'label' => 'Enabled'],
['value' => false, 'label' => 'Disabled'],
]" />
@endif
@if (is_null(config('constants.coolify.autoupdate', null)) && $is_auto_update_enabled)
<x-forms.input required id="auto_update_frequency" label="Update frequency"
placeholder="0 0 * * *"
helper="Cron expression or preset for installing updates." />
@else
<x-forms.input label="Update frequency" disabled placeholder="Disabled" />
@endif
</div>
</x-application.settings-section>
<x-application.settings-section title="Image registry">
<div class="max-w-md">
<x-forms.listbox id="docker_registry_url" label="Docker registry" :options="[
['value' => 'docker.io', 'label' => 'Docker Hub'],
['value' => 'ghcr.io', 'label' => 'GitHub Container Registry'],
]"
helper="Switch registries if the current source is rate limited." />
</div>
</x-application.settings-section>
</form>
</div>
</div>