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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Merge branch 'next' into disable-2-step-confirmation-if-needed
Andras Bacsai67c69b4ba453
diff --cc database/seeders/DatabaseSeeder.phpindex 1339e78897,cec05c8fe5..6e66c64f4a--- a/database/seeders/DatabaseSeeder.php+++ b/database/seeders/DatabaseSeeder.php@@@ -26,7 -26,7 +26,8 @@@ class DatabaseSeeder extends SeedeS3StorageSeeder::class,StandalonePostgresqlSeeder::class,OauthSettingSeeder::class,+ DisableTwoStepConfirmationSeeder::class,+ SentinelSeeder::class,]);}}diff --cc resources/views/livewire/settings/index.blade.phpindex 0fb111d91b,7128a24774..bf776d90a2--- a/resources/views/livewire/settings/index.blade.php+++ b/resources/views/livewire/settings/index.blade.php@@@ -64,70 -81,44 +64,75 @@@<x-forms.input type="number" id="settings.public_port_max" label="Public Port Max" /></div> --}}- </div>- <h4 class="pt-6">API</h4>- <div class="md:w-96">- <x-forms.checkbox instantSave id="is_api_enabled" label="Enabled" />- </div>- <x-forms.input id="settings.allowed_ips" label="Allowed IPs"- helper="Allowed IP lists for the API. A comma separated list of IPs. Empty means you allow from everywhere."- placeholder="1.1.1.1,8.8.8.8" />+ </div>+ <h4 class="pt-6">API</h4>+ <div class="md:w-96">+ <x-forms.checkbox instantSave id="is_api_enabled" label="Enabled" />+ </div>+ <x-forms.input id="settings.allowed_ips" label="Allowed IPs" helper="Allowed IP lists for the API. A comma separated list of IPs. Empty means you allow from everywhere." placeholder="1.1.1.1,8.8.8.8" />- <h5 class="pt-4 font-bold text-white">Update</h5>- <div class="text-right md:w-96">- @if (!is_null(env('AUTOUPDATE', null)))+ <h4 class="pt-6">Advanced</h4>+ <div class="text-right md:w-96">+ <x-forms.checkbox instantSave id="is_registration_enabled" label="Registration Allowed" />+ <x-forms.checkbox instantSave id="do_not_track" label="Do Not Track" />+ </div>+ <h4 class="pt-6">Update</h4>+ <div class="text-right md:w-96">+ @if (!is_null(env('AUTOUPDATE', null)))<div class="text-right md:w-96">- <x-forms.checkbox instantSave helper="AUTOUPDATE is set in .env file, you need to modify it there."- disabled id="is_auto_update_enabled" label="Enabled" />+ <x-forms.checkbox instantSave helper="AUTOUPDATE is set in .env file, you need to modify it there." disabled id="is_auto_update_enabled" label="Enabled" /></div>- @else+ @else<x-forms.checkbox instantSave id="is_auto_update_enabled" label="Auto Update Enabled" />- @endif- </div>- <div class="flex flex-col gap-2">- <div class="flex items-end gap-2">- <x-forms.input required id="update_check_frequency" label="Update Check Frequency"- placeholder="0 * * * *"- helper="Cron expression for update check frequency (check for new Coolify versions and pull new Service Templates from CDN).<br>You can use every_minute, hourly, daily, weekly, monthly, yearly.<br><br>Default is every hour." />- <x-forms.button wire:click='checkManually'>Check Manually</x-forms.button>+ @endif</div>+ <div class="flex flex-col gap-2">+ <div class="flex items-end gap-2">+ <x-forms.input required id="update_check_frequency" label="Update Check Frequency" placeholder="0 * * * *" helper="Cron expression for update check frequency (check for new Coolify versions and pull new Service Templates from CDN).<br>You can use every_minute, hourly, daily, weekly, monthly, yearly.<br><br>Default is every hour." />+ <x-forms.button wire:click='checkManually'>Check Manually</x-forms.button>+ </div>- @if (is_null(env('AUTOUPDATE', null)) && $is_auto_update_enabled)- <x-forms.input required id="auto_update_frequency" label="Auto Update Frequency" placeholder="0 0 * * *"- helper="Cron expression for auto update frequency (automatically update coolify).<br>You can use every_minute, hourly, daily, weekly, monthly, yearly.<br><br>Default is every day at 00:00" />- @endif- </div>- </form>+ @if (is_null(env('AUTOUPDATE', null)) && $is_auto_update_enabled)+ <x-forms.input required id="auto_update_frequency" label="Auto Update Frequency" placeholder="0 0 * * *" helper="Cron expression for auto update frequency (automatically update coolify).<br>You can use every_minute, hourly, daily, weekly, monthly, yearly.<br><br>Default is every day at 00:00" />+ @endif+ </div>++ <h4 class="pt-6">Advanced</h4>+ <div class="text-right md:w-96">+ <x-forms.checkbox instantSave id="is_registration_enabled" label="Registration Allowed" />+ <x-forms.checkbox instantSave id="do_not_track" label="Do Not Track" />+ </div>++ <h5 class="pt-4 font-bold text-white">Confirmation Settings</h5>+ <div x-data="{ open: false }" class="md:w-96">+ <button type="button" @click="open = !open" class="flex items-center justify-between w-full py-2 text-left">+ <span>Confirmation Options</span>+ <svg :class="{'rotate-180': open}" class="w-5 h-5 transition-transform duration-200" fill="none" viewBox="0 0 24 24" stroke="currentColor">+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>+ </svg>+ </button>+ <div x-show="open" x-transition:enter="transition ease-out duration-100" x-transition:enter-start="transform opacity-0 scale-95" x-transition:enter-end="transform opacity-100 scale-100" x-transition:leave="transition ease-in duration-75" x-transition:leave-start="transform opacity-100 scale-100" x-transition:leave-end="transform opacity-0 scale-95" class="mt-2">+ <div class="mb-4 p-4 bg-yellow-100 border-l-4 border-yellow-500 text-yellow-700">+ <p class="font-bold">Warning!</p>+ <p>Disabling two step confirmation reduces security (as anyone can easily delete anything) and increases the risk of accidental actions. This is not recommended for production servers.</p>+ </div>+ @if($disable_two_step_confirmation)+ <x-forms.checkbox instantSave id="disable_two_step_confirmation" label="Disable Two Step Confirmation" helper="When disabled, you will not need to confirm actions with a text and user password. This significantly reduces security and may lead to accidental deletions or unwanted changes. Use with extreme caution, especially on production servers." />+ @else+ <x-modal-confirmation+ title="Disable Two Step Confirmation?"+ buttonTitle="Disable Two Step Confirmation"+ isErrorButton+ submitAction="toggleTwoStepConfirmation"+ :actions="['Tow Step confimation will be disabled globally.', 'Disabling two step confirmation reduces security (as anyone can easily delete anything).', 'The risk of accidental actions will increase.']"+ confirmationText="DISABLE TWO STEP CONFIRMATION"+ confirmationLabel="Please type the confirmation text to disable two step confirmation."+ shortConfirmationLabel="Confirmation text"+ step3ButtonText="Disable Two Step Confirmation"+ />+ @endif+ </div>+ </div>+ </form></div>