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
feat(onboarding): add Hetzner integration and fix navigation issues
Andras Bacsai04625591eaaf
diff --git a/app/Livewire/Boarding/Index.php b/app/Livewire/Boarding/Index.phpindex e6f4c1d7b0..15f0cab850 100644--- a/app/Livewire/Boarding/Index.php+++ b/app/Livewire/Boarding/Index.php@@ -143,6 +143,11 @@ class Index extends Component$this->projects = Project::ownedByCurrentTeam(['name'])->get();}}++ // Load projects when on create-project state (for page refresh)+ if ($this->currentState === 'create-project' && $this->projects->isEmpty()) {+ $this->projects = Project::ownedByCurrentTeam(['name'])->get();+ }}public function explanation()@@ -182,36 +187,12 @@ class Index extends Componentreturn $this->validateServer('localhost');} elseif ($this->selectedServerType === 'remote') {$this->privateKeys = PrivateKey::ownedByCurrentTeam(['name'])->where('id', '!=', 0)->get();- if ($this->privateKeys->count() > 0) {- $this->selectedExistingPrivateKey = $this->privateKeys->first()->id;- }- $this->servers = Server::ownedByCurrentTeam(['name'])->where('id', '!=', 0)->get();- if ($this->servers->count() > 0) {- $this->selectedExistingServer = $this->servers->first()->id;- $this->updateServerDetails();- $this->currentState = 'select-existing-server';-- return;- }+ // Don't auto-select - let user explicitly choose from dropdown+ // Onboarding always creates new servers, skip existing server selection$this->currentState = 'private-key';}}- public function selectExistingServer()- {- $this->createdServer = Server::find($this->selectedExistingServer);- if (! $this->createdServer) {- $this->dispatch('error', 'Server is not found.');- $this->currentState = 'private-key';-- return;- }- $this->selectedExistingPrivateKey = $this->createdServer->privateKey->id;- $this->serverPublicKey = $this->createdServer->privateKey->getPublicKey();- $this->updateServerDetails();- $this->currentState = 'validate-server';- }-private function updateServerDetails(){if ($this->createdServer) {@@ -229,7 +210,7 @@ class Index extends Componentpublic function selectExistingPrivateKey(){if (is_null($this->selectedExistingPrivateKey)) {- $this->restartBoarding();+ $this->dispatch('error', 'Please select a private key.');return;}diff --git a/resources/views/components/boarding-progress.blade.php b/resources/views/components/boarding-progress.blade.phpindex a946a74710..dec34abac5 100644--- a/resources/views/components/boarding-progress.blade.php+++ b/resources/views/components/boarding-progress.blade.php@@ -7,8 +7,8 @@<div class="flex flex-col items-center"><divclass="flex items-center justify-center size-10 rounded-full border-2 transition-all duration-300- {{ $i < $currentStep ? 'bg-success border-success' : '' }}- {{ $i === $currentStep ? 'bg-white dark:bg-coolgray-100' : '' }}+ {{ $i < $currentStep ? 'bg-success border-success' : 'border-neutral-200 dark:border-coolgray-300' }}+ {{ $i === $currentStep ? 'bg-white dark:bg-coolgray-500' : '' }}">@if ($i < $currentStep)<svg class="size-5 text-white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"@@ -38,7 +38,7 @@@if ($i < $totalSteps)<divclass="flex-1 h-0.5 mx-4 transition-all duration-300- {{ $i < $currentStep ? 'bg-success' : 'bg-coolgray-200 dark:bg-coolgray-600' }}">+ {{ $i < $currentStep ? 'bg-success' : 'bg-neutral-200 dark:bg-coolgray-300' }}"></div>@endif</div>diff --git a/resources/views/components/boarding-step.blade.php b/resources/views/components/boarding-step.blade.phpindex 3e6dc92e58..716987bafe 100644--- a/resources/views/components/boarding-step.blade.php+++ b/resources/views/components/boarding-step.blade.php@@ -1,5 +1,5 @@<div class="w-full max-w-4xl">- <div class="bg-white dark:bg-coolgray-100 rounded-lg shadow-sm border border-neutral-200 dark:border-coolgray-300 overflow-hidden">+ <div class=" rounded-lg shadow-sm border border-neutral-200 dark:border-coolgray-300 overflow-hidden"><div class="p-8 lg:p-12"><h1 class="text-3xl font-bold lg:text-4xl mb-4">{{ $title }}</h1>@isset($question)@@ -16,7 +16,7 @@</div>@isset($explanation)- <div class="dark:bg-coolgray-200 border-t border-neutral-200 dark:border-coolgray-300 p-8 lg:p-12 bg-neutral-50">+ <div class=" border-t border-neutral-200 dark:border-coolgray-300 p-8 lg:p-12 "><h3 class="text-sm font-bold uppercase tracking-wide mb-4 dark:text-neutral-400">Technical Details</h3>diff --git a/resources/views/livewire/boarding/index.blade.php b/resources/views/livewire/boarding/index.blade.phpindex e396611a8d..f5b31746cf 100644--- a/resources/views/livewire/boarding/index.blade.php+++ b/resources/views/livewire/boarding/index.blade.php@@ -1,759 +1,738 @@@php use App\Enums\ProxyTypes; @endphp<x-slot:title>Onboarding | Coolify-</x-slot>-<section class="w-full">- <div class="flex flex-col items-center w-full space-y-8">- @if ($currentState === 'welcome')- <div class="w-full max-w-2xl text-center space-y-8">- <div class="space-y-4">- <h1 class="text-4xl font-bold lg:text-6xl">Welcome to Coolify</h1>- <p class="text-lg lg:text-xl dark:text-neutral-400">- Connect your first server and start deploying in minutes- </p>- </div>-- <div- class="bg-white dark:bg-coolgray-100 rounded-lg shadow-sm border border-neutral-200 dark:border-coolgray-300 p-8 text-left">- <h2 class="text-sm font-bold uppercase tracking-wide dark:text-neutral-400 mb-4">- What You'll Set Up- </h2>- <div class="space-y-3">- <div class="flex items-start gap-3">- <div class="flex-shrink-0 mt-0.5">- <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"- fill="currentColor">- <path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"- clip-rule="evenodd" />- </svg>- </div>- <div>- <div class="font-semibold text-base dark:text-white">Server Connection</div>- <div class="text-sm dark:text-neutral-400">Connect via SSH to deploy your resources</div>- </div>- </div>- <div class="flex items-start gap-3">- <div class="flex-shrink-0 mt-0.5">- <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"- fill="currentColor">- <path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"- clip-rule="evenodd" />- </svg>- </div>- <div>- <div class="font-semibold text-base dark:text-white">Docker Environment</div>- <div class="text-sm dark:text-neutral-400">Automated installation and configuration</div>- </div>- </div>- <div class="flex items-start gap-3">- <div class="flex-shrink-0 mt-0.5">- <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"- fill="currentColor">- <path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"- clip-rule="evenodd" />- </svg>- </div>- <div>- <div class="font-semibold text-base dark:text-white">Project Structure</div>- <div class="text-sm dark:text-neutral-400">Organize your applications and resources</div>- </div>- </div>+ </x-slot>+ <section class="w-full">+ <div class="flex flex-col items-center w-full space-y-8">+ @if ($currentState === 'welcome')+ <div class="w-full max-w-2xl text-center space-y-8">+ <div class="space-y-4">+ <h1 class="text-4xl font-bold lg:text-6xl">Welcome to Coolify</h1>+ <p class="text-lg lg:text-xl dark:text-neutral-400">+ Connect your first server and start deploying in minutes+ </p></div>- </div>- <div class="flex justify-center pt-4">- <x-forms.button class="justify-center px-12 py-4 text-lg font-bold box-boarding"- wire:click="explanation">- Start Setup- </x-forms.button>- </div>- </div>- @elseif ($currentState === 'explanation')- <x-boarding-progress :currentStep="0" />- <x-boarding-step title="Platform Overview">- <x-slot:question>- Coolify automates deployment and infrastructure management on your own servers. Deploy applications- from Git, manage databases, and monitor everything—without vendor lock-in.- </x-slot:question>- <x-slot:explanation>- <p>- <x-highlighted text="Automation:" /> Coolify handles server configuration, Docker management, and- deployments automatically.- </p>- <p>- <x-highlighted text="Self-hosted:" /> All data and configurations live on your infrastructure.- Works offline except for external integrations.- </p>- <p>- <x-highlighted text="Monitoring & Alerts:" /> Get real-time notifications via Discord, Telegram,- Email, and other platforms.- </p>- </x-slot:explanation>- <x-slot:actions>- <x-forms.button class="justify-center w-full lg:w-auto px-8 py-3 box-boarding"- wire:click="explanation">- Continue- </x-forms.button>- </x-slot:actions>- </x-boarding-step>- @elseif ($currentState === 'select-server-type')- <x-boarding-progress :currentStep="1" />- <x-boarding-step title="Choose Server Type">- <x-slot:question>- Select where to deploy your applications and databases. You can add more servers later.- </x-slot:question>- <x-slot:actions>- <div class="grid grid-cols-1 lg:grid-cols-2 gap-4 w-full">- <button- class="group relative box-without-bg cursor-pointer hover:border-coollabs transition-all duration-200 p-6"- wire:target="setServerType('localhost')" wire:click="setServerType('localhost')">- <div class="flex flex-col gap-4">- <div class="flex items-center justify-between">- <svg class="size-10"- xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"- stroke-width="1.5" stroke="currentColor">- <path stroke-linecap="round" stroke-linejoin="round"- d="M5.25 14.25h13.5m-13.5 0a3 3 0 01-3-3m3 3a3 3 0 100 6h13.5a3 3 0 100-6m-16.5-3a3 3 0 013-3h13.5a3 3 0 013 3m-19.5 0a4.5 4.5 0 01.9-2.7L5.737 5.1a3.375 3.375 0 012.7-1.35h7.126c1.062 0 2.062.5 2.7 1.35l2.587 3.45a4.5 4.5 0 01.9 2.7m0 0a3 3 0 01-3 3m0 3h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008zm-3 6h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008z" />+ <div+ class="bg-white dark:bg-coolgray-100 rounded-lg shadow-sm border border-neutral-200 dark:border-coolgray-300 p-8 text-left">+ <h2 class="text-sm font-bold uppercase tracking-wide dark:text-neutral-400 mb-4">+ What You'll Set Up+ </h2>+ <div class="space-y-3">+ <div class="flex items-start gap-3">+ <div class="flex-shrink-0 mt-0.5">+ <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"+ fill="currentColor">+ <path fill-rule="evenodd"+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"+ clip-rule="evenodd" /></svg>- <span- class="px-2 py-1 text-xs font-bold uppercase tracking-wide bg-neutral-100 dark:bg-coolgray-300 dark:text-neutral-400 rounded">- Quick Start- </span></div><div>- <h3 class="text-xl font-bold mb-2">This Machine</h3>- <p class="text-sm dark:text-neutral-400">- Deploy on the server running Coolify. Best for testing and single-server setups.- </p>+ <div class="font-semibold text-base dark:text-white">Server Connection</div>+ <div class="text-sm dark:text-neutral-400">Connect via SSH to deploy your resources+ </div></div></div>- </button>-- <button- class="group relative box-without-bg cursor-pointer hover:border-coollabs transition-all duration-200 p-6"- wire:target="setServerType('remote')" wire:click="setServerType('remote')">- <div class="flex flex-col gap-4">- <div class="flex items-center justify-between">- <svg class="size-10 " xmlns="http://www.w3.org/2000/svg" fill="none"- viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">- <path stroke-linecap="round" stroke-linejoin="round"- d="M2.25 15a4.5 4.5 0 004.5 4.5H18a3.75 3.75 0 001.332-7.257 3 3 0 00-3.758-3.848 5.25 5.25 0 00-10.233 2.33A4.502 4.502 0 002.25 15z" />+ <div class="flex items-start gap-3">+ <div class="flex-shrink-0 mt-0.5">+ <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"+ fill="currentColor">+ <path fill-rule="evenodd"+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"+ clip-rule="evenodd" /></svg>- <span- class="px-2 py-1 text-xs font-bold uppercase tracking-wide bg-warning/10 dark:bg-warning/20 text-warning rounded">- Recommended- </span></div><div>- <h3 class="text-xl font-bold mb-2">Remote Server</h3>- <p class="text-sm dark:text-neutral-400">- Connect via SSH to any server—cloud VPS, bare metal, or home infrastructure.- </p>+ <div class="font-semibold text-base dark:text-white">Docker Environment</div>+ <div class="text-sm dark:text-neutral-400">Automated installation and configuration+ </div></div></div>- </button>- </div>-- @if (!$serverReachable)- <div class="mt-6 p-4 border border-error rounded-lg text-gray-800 dark:text-gray-200">- <h2 class="text-lg font-bold mb-2">Server is not reachable</h2>- <p class="mb-4">Please check the connection details below and correct them if they are- incorrect.</p>-- <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">- <x-forms.input placeholder="Default is 22" label="Port" id="remoteServerPort"- wire:model="remoteServerPort" :value="$remoteServerPort" />+ <div class="flex items-start gap-3">+ <div class="flex-shrink-0 mt-0.5">+ <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"+ fill="currentColor">+ <path fill-rule="evenodd"+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"+ clip-rule="evenodd" />+ </svg>+ </div><div>- <x-forms.input placeholder="Default is root" label="User" id="remoteServerUser"- wire:model="remoteServerUser" :value="$remoteServerUser" />- <p class="text-xs mt-1">- Non-root user is experimental:- <a class="font-bold underline" target="_blank"- href="https://coolify.io/docs/knowledge-base/server/non-root-user">docs</a>- </p>+ <div class="font-semibold text-base dark:text-white">Project Structure</div>+ <div class="text-sm dark:text-neutral-400">Organize your applications and resources+ </div></div></div>-- <div class="mb-4">- <p class="mb-2">If the connection details are correct, please ensure:</p>- <ul class="list-disc list-inside">- <li>The correct public key is in your <code- class="bg-red-200 dark:bg-red-900 px-1 rounded-sm">~/.ssh/authorized_keys</code>- file for the specified user</li>- <li>Or skip the boarding process and manually add a new private key to Coolify and- the server</li>- </ul>- </div>-- <p class="mb-4">- For more help, check this <a target="_blank" class="underline font-semibold"- href="https://coolify.io/docs/knowledge-base/server/openssh">documentation</a>.- </p>-- <x-forms.input readonly id="serverPublicKey" class="mb-4"- label="Current Public Key"></x-forms.input>-- <x-forms.button class="w-full box-boarding" wire:click="saveAndValidateServer">- Check Again- </x-forms.button></div>- @endif- </x-slot:actions>- <x-slot:explanation>- <p>- <x-highlighted text="Servers" /> host your applications, databases, and services (collectively- called resources). All CPU-intensive operations run on the target server.- </p>- <p>- <x-highlighted text="Localhost:" /> The machine running Coolify. Not recommended for production- workloads due to resource contention.- </p>- <p>- <x-highlighted text="Remote Server:" /> Any SSH-accessible server—cloud providers (AWS, Hetzner,- DigitalOcean), bare metal, or self-hosted infrastructure.- </p>- </x-slot:explanation>- </x-boarding-step>- @elseif ($currentState === 'private-key')- <x-boarding-progress :currentStep="2" />- <x-boarding-step title="SSH Authentication">- <x-slot:question>- Configure SSH key-based authentication for secure server access.- </x-slot:question>- <x-slot:actions>- @if ($privateKeys && $privateKeys->count() > 0)- <div class="w-full space-y-4">- <div class="p-4 rounded-lg border border-neutral-200 dark:border-coolgray-400">- <form wire:submit='selectExistingPrivateKey' class="flex flex-col gap-4">- <x-forms.select label="Existing SSH Keys" id='selectedExistingPrivateKey'>- @foreach ($privateKeys as $privateKey)- <option wire:key="{{ $loop->index }}" value="{{ $privateKey->id }}">- {{ $privateKey->name }}</option>- @endforeach- </x-forms.select>- <x-forms.button type="submit" class="w-full lg:w-auto">Use Selected Key</x-forms.button>- </form>- </div>- <div class="relative">- <div class="absolute inset-0 flex items-center">- <div class="w-full border-t border-neutral-300 dark:border-coolgray-400"></div>- </div>- <div class="relative flex justify-center text-sm">- <div- class="px-2 py-1 bg-white dark:bg-coolgray-100 border border-neutral-300 dark:border-coolgray-300 rounded text-xs font-bold text-neutral-500 dark:text-neutral-400">- OR</div>- </div>- </div>- </div>- @endif- <div class="grid grid-cols-1 lg:grid-cols-2 gap-4 w-full">- <x-forms.button class="justify-center h-auto py-6 box-without-bg hover:border-coollabs transition-all duration-200" wire:target="setPrivateKey('own')"- wire:click="setPrivateKey('own')">- <div class="flex flex-col items-center gap-2">- <svg class="size-8" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"- stroke-width="1.5" stroke="currentColor">- <path stroke-linecap="round" stroke-linejoin="round"- d="M15.75 5.25a3 3 0 013 3m3 0a6 6 0 01-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1121.75 8.25z" />- </svg>- <div class="text-center">- <h3 class="text-xl font-bold mb-2">Use Existing Key</h3>- <p class="text-sm dark:text-neutral-400">I have my own SSH key</p>- </div>- </div>- </x-forms.button>- <x-forms.button class="justify-center h-auto py-6 box-without-bg hover:border-coollabs transition-all duration-200" wire:target="setPrivateKey('create')"- wire:click="setPrivateKey('create')">- <div class="flex flex-col items-center gap-2">- <svg class="size-8" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"- stroke-width="1.5" stroke="currentColor">- <path stroke-linecap="round" stroke-linejoin="round"- d="M19 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zM4 19.235v-.11a6.375 6.375 0 0112.75 0v.109A12.318 12.318 0 0110.374 21c-2.331 0-4.512-.645-6.374-1.766z" />- </svg>- <div class="text-center">- <h3 class="text-xl font-bold mb-2">Generate New Key</h3>- <p class="text-sm dark:text-neutral-400">Create ED25519 key pair</p>- </div>- </div>++ <div class="flex justify-center pt-4">+ <x-forms.button class="justify-center px-12 py-4 text-lg font-bold box-boarding"+ wire:click="explanation">+ Start Setup</x-forms.button></div>- </x-slot:actions>- <x-slot:explanation>- <p>- <x-highlighted text="SSH Key Authentication:" /> Uses public-key cryptography for secure,- password-less server access.- </p>- <p>- <x-highlighted text="Public Key Deployment:" /> Add the public key to your server's- <code class="text-xs bg-coolgray-300 dark:bg-coolgray-400 px-1 py-0.5 rounded">~/.ssh/authorized_keys</code>- file.- </p>- <p>- <x-highlighted text="Key Generation:" /> Coolify generates ED25519 keys by default for optimal- security and performance.- </p>- </x-slot:explanation>- </x-boarding-step>- @elseif ($currentState === 'select-existing-server')- <x-boarding-step title="Select a server">- <x-slot:question>- There are already servers available for your Team. Do you want to use one of them?- </x-slot:question>- <x-slot:actions>- <div class="flex flex-col gap-4">- <div>- <x-forms.button class="justify-center w-64 box-boarding" wire:click="createNewServer">No- (create one for me)- </x-forms.button>- </div>- <div>- <form wire:submit='selectExistingServer' class="flex flex-col w-full gap-4 lg:w-96">- <x-forms.select label="Existing servers" class="w-96" id='selectedExistingServer'>- @foreach ($servers as $server)- <option wire:key="{{ $loop->index }}" value="{{ $server->id }}">- {{ $server->name }}</option>- @endforeach- </x-forms.select>- <x-forms.button type="submit">Use this Server</x-forms.button>- </form>- </div>- </div>- @if (!$serverReachable)- <div class="mt-6 p-4 bg-red-100 dark:bg-red-950 rounded-lg text-gray-800 dark:text-gray-200">- <h2 class="text-lg font-bold mb-2">Server is not reachable</h2>- <p class="mb-4">Please check the connection details below and correct them if they are- incorrect.</p>-- <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">- <x-forms.input placeholder="Default is 22" label="Port" id="remoteServerPort"- wire:model="remoteServerPort" :value="$remoteServerPort" />- <div>- <x-forms.input placeholder="Default is root" label="User" id="remoteServerUser"- wire:model="remoteServerUser" :value="$remoteServerUser" />- <p class="text-xs mt-1">- Non-root user is experimental:- <a class="font-bold underline" target="_blank"- href="https://coolify.io/docs/knowledge-base/server/non-root-user">docs</a>- </p>+ </div>+ @elseif ($currentState === 'explanation')+ <x-boarding-progress :currentStep="0" />+ <x-boarding-step title="Platform Overview">+ <x-slot:question>+ Coolify automates deployment and infrastructure management on your own servers. Deploy applications+ from Git, manage databases, and monitor everything—without vendor lock-in.+ </x-slot:question>+ <x-slot:explanation>+ <p>+ <x-highlighted text="Automation:" /> Coolify handles server configuration, Docker management,+ and+ deployments automatically.+ </p>+ <p>+ <x-highlighted text="Self-hosted:" /> All data and configurations live on your infrastructure.+ Works offline except for external integrations.+ </p>+ <p>+ <x-highlighted text="Monitoring & Alerts:" /> Get real-time notifications via Discord, Telegram,+ Email, and other platforms.+ </p>+ </x-slot:explanation>+ <x-slot:actions>+ <x-forms.button class="justify-center w-full lg:w-auto px-8 py-3 box-boarding"+ wire:click="explanation">+ Continue+ </x-forms.button>+ </x-slot:actions>+ </x-boarding-step>+ @elseif ($currentState === 'select-server-type')+ <x-boarding-progress :currentStep="1" />+ <x-boarding-step title="Choose Server Type">+ <x-slot:question>+ Select where to deploy your applications and databases. You can add more servers later.+ </x-slot:question>+ <x-slot:actions>+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-4 w-full">+ <button+ class="group relative box-without-bg cursor-pointer hover:border-coollabs transition-all duration-200 p-6"+ wire:target="setServerType('localhost')" wire:click="setServerType('localhost')">+ <div class="flex flex-col gap-4 text-left">+ <div class="flex items-center justify-between">+ <svg class="size-10" xmlns="http://www.w3.org/2000/svg" fill="none"+ viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">+ <path stroke-linecap="round" stroke-linejoin="round"+ d="M5.25 14.25h13.5m-13.5 0a3 3 0 01-3-3m3 3a3 3 0 100 6h13.5a3 3 0 100-6m-16.5-3a3 3 0 013-3h13.5a3 3 0 013 3m-19.5 0a4.5 4.5 0 01.9-2.7L5.737 5.1a3.375 3.375 0 012.7-1.35h7.126c1.062 0 2.062.5 2.7 1.35l2.587 3.45a4.5 4.5 0 01.9 2.7m0 0a3 3 0 01-3 3m0 3h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008zm-3 6h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008z" />+ </svg>+ <span+ class="px-2 py-1 text-xs font-bold uppercase tracking-wide bg-neutral-100 dark:bg-coolgray-300 dark:text-neutral-400 rounded">+ Quick Start+ </span>+ </div>+ <div>+ <h3 class="text-xl font-bold mb-2">This Machine</h3>+ <p class="text-sm dark:text-neutral-400">+ Deploy on the server running Coolify. Best for testing and single-server setups.+ </p>+ </div></div>- </div>-- <div class="mb-4">- <p class="mb-2">If the connection details are correct, please ensure:</p>- <ul class="list-disc list-inside">- <li>The correct public key is in your <code- class="bg-red-200 dark:bg-red-900 px-1 rounded-sm">~/.ssh/authorized_keys</code>- file for the specified user</li>- <li>Or skip the boarding process and manually add a new private key to Coolify and- the server</li>- </ul>- </div>+ </button>- <p class="mb-4">- For more help, check this <a target="_blank" class="underline font-semibold"- href="https://coolify.io/docs/knowledge-base/server/openssh">documentation</a>.- </p>- <x-forms.input readonly id="serverPublicKey" class="mb-4"- label="Current Public Key"></x-forms.input>- <x-forms.button class="w-full md:w-auto box-boarding" wire:click="saveAndValidateServer">- Check again- </x-forms.button>- </div>- @endif- </x-slot:actions>- <x-slot:explanation>- <p>Private Keys are used to connect to a remote server through a secure shell, called SSH.</p>- <p>You can use your own private key, or you can let Coolify to create one for you.</p>- <p>In both ways, you need to add the public version of your private key to the remote server's- <code>~/.ssh/authorized_keys</code> file.- </p>- </x-slot:explanation>- </x-boarding-step>- @elseif ($currentState === 'create-private-key')- <x-boarding-progress :currentStep="2" />- <x-boarding-step title="SSH Key Configuration">- <x-slot:question>- Configure your SSH key for server authentication.- </x-slot:question>- <x-slot:actions>- <form wire:submit='savePrivateKey' class="flex flex-col w-full gap-4">- <x-forms.input required placeholder="e.g., production-server-key"- label="Key Name" id="privateKeyName" />- <x-forms.input placeholder="Optional: Note what this key is used for"- label="Description" id="privateKeyDescription" />- @if ($privateKeyType === 'create')- <x-forms.textarea required readonly label="Private Key" id="privateKey" rows="8" />- <x-forms.textarea rows="7" readonly label="Public Key" id="publicKey" />- @else- <x-forms.textarea required placeholder="-----BEGIN OPENSSH PRIVATE KEY-----"- label="Private Key" id="privateKey" rows="8" />- @endif- @if ($privateKeyType === 'create')- <div class="p-4 bg-warning/10 border border-warning rounded-lg">- <div class="flex gap-3">- <svg class="size-5 text-warning flex-shrink-0 mt-0.5" xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 20 20" fill="currentColor">- <path fill-rule="evenodd"- d="M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z"- clip-rule="evenodd" />- </svg>+ <button+ class="group relative box-without-bg cursor-pointer hover:border-coollabs transition-all duration-200 p-6"+ wire:target="setServerType('remote')" wire:click="setServerType('remote')">+ <div class="flex flex-col gap-4 text-left">+ <div class="flex items-center justify-between">+ <svg class="size-10 " xmlns="http://www.w3.org/2000/svg" fill="none"+ viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">+ <path stroke-linecap="round" stroke-linejoin="round"+ d="M2.25 15a4.5 4.5 0 004.5 4.5H18a3.75 3.75 0 001.332-7.257 3 3 0 00-3.758-3.848 5.25 5.25 0 00-10.233 2.33A4.502 4.502 0 002.25 15z" />+ </svg>+ <span+ class="px-2 py-1 text-xs font-bold uppercase tracking-wide bg-coollabs/10 dark:bg-warning/20 text-coollabs dark:text-warning rounded">+ Recommended+ </span>+ </div><div>- <p class="font-bold text-warning mb-1">Action Required</p>- <p class="text-sm dark:text-white text-black">- Copy the public key above and add it to your server's- <code- class="text-xs bg-coolgray-300 dark:bg-coolgray-400 px-1 py-0.5 rounded">~/.ssh/authorized_keys</code>- file.+ <h3 class="text-xl font-bold mb-2">Remote Server</h3>+ <p class="text-sm dark:text-neutral-400">+ Connect via SSH to any server—cloud VPS, bare metal, or home infrastructure.</p></div></div>- </div>- @endif- <x-forms.button type="submit" class="w-full lg:w-auto">Save SSH Key</x-forms.button>- </form>- </x-slot:actions>- <x-slot:explanation>- <p>- <x-highlighted text="Key Storage:" /> Private keys are encrypted at rest in Coolify's database.- </p>- <p>- <x-highlighted text="Public Key Distribution:" /> Deploy the public key to- <code class="text-xs bg-coolgray-300 dark:bg-coolgray-400 px-1 py-0.5 rounded">~/.ssh/authorized_keys</code>- on your target server for the specified user.- </p>- <p>- <x-highlighted text="Key Format:" /> Supports RSA, ED25519, ECDSA, and DSA key types in OpenSSH- format.- </p>- </x-slot:explanation>- </x-boarding-step>- @elseif ($currentState === 'create-server')- <x-boarding-progress :currentStep="2" />- <x-boarding-step title="Server Configuration">- <x-slot:question>- Provide connection details for your remote server.- </x-slot:question>- <x-slot:actions>- <form wire:submit='saveServer' class="flex flex-col w-full gap-4">- <div class="grid grid-cols-1 lg:grid-cols-2 gap-4">- <x-forms.input required placeholder="e.g., production-app-server"- label="Server Name" id="remoteServerName" wire:model="remoteServerName" />- <x-forms.input required placeholder="IP address or hostname" label="IP Address/Hostname"- id="remoteServerHost" wire:model="remoteServerHost" />+ </button>+ @can('viewAny', App\Models\CloudProviderToken::class)+ <x-modal-input title="Connect a Hetzner Server" isFullWidth>+ <x-slot:content>+ <div+ class="group relative box-without-bg cursor-pointer hover:border-coollabs transition-all duration-200 p-6 h-full min-h-[210px]">+ <div class="flex flex-col gap-4 text-left">+ <div class="flex items-center justify-between">+ <svg class="size-10" viewBox="0 0 200 200"+ xmlns="http://www.w3.org/2000/svg">+ <rect width="200" height="200" fill="#D50C2D" rx="8" />+ <path d="M40 40 H60 V90 H140 V40 H160 V160 H140 V110 H60 V160 H40 Z"+ fill="white" />+ </svg>+ <span+ class="px-2 py-1 text-xs font-bold uppercase tracking-wide bg-coollabs/10 dark:bg-warning/20 text-coollabs dark:text-warning rounded">+ Recommended+ </span>+ </div>+ <div>+ <h3 class="text-xl font-bold mb-2">Hetzner Cloud</h3>+ <p class="text-sm dark:text-neutral-400">+ Deploy servers directly from your Hetzner Cloud account.+ </p>+ </div>+ </div>+ </div>+ </x-slot:content>+ <livewire:server.new.by-hetzner :private_keys="$this->privateKeys" :limit_reached="false" />+ </x-modal-input>+ @endcan</div>- <x-forms.input placeholder="Optional: Note what this server hosts"- label="Description" id="remoteServerDescription" wire:model="remoteServerDescription" />- <div x-data="{ showAdvanced: false }" class="flex flex-col gap-4">- <button @click="showAdvanced = !showAdvanced" type="button"- class="flex items-center gap-2 text-left text-sm font-medium hover:underline">- <svg x-show="!showAdvanced" class="size-4" xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 20 20" fill="currentColor">- <path fill-rule="evenodd"- d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z"- clip-rule="evenodd" />- </svg>- <svg x-show="showAdvanced" class="size-4" xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 20 20" fill="currentColor">- <path fill-rule="evenodd"- d="M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z"- clip-rule="evenodd" />- </svg>- Advanced Connection Settings- </button>- <div x-show="showAdvanced" x-cloak class="grid grid-cols-1 lg:grid-cols-2 gap-4 p-4 rounded-lg border border-neutral-200 dark:border-coolgray-400">- <x-forms.input placeholder="Default: 22" label="SSH Port" type="number"- id="remoteServerPort" wire:model="remoteServerPort" />- <div>- <x-forms.input placeholder="Default: root" label="SSH User"- id="remoteServerUser" wire:model="remoteServerUser" />- <p class="mt-1 text-xs dark:text-white text-black">- Non-root user support is experimental.- <a class="font-bold underline hover:text-coollabs" target="_blank"- href="https://coolify.io/docs/knowledge-base/server/non-root-user">Learn more</a>- </p>+ @if (!$serverReachable)+ <div class="mt-6 p-4 border border-error rounded-lg text-gray-800 dark:text-gray-200">+ <h2 class="text-lg font-bold mb-2">Server is not reachable</h2>+ <p class="mb-4">Please check the connection details below and correct them if they are+ incorrect.</p>++ <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">+ <x-forms.input placeholder="Default is 22" label="Port" id="remoteServerPort"+ wire:model="remoteServerPort" :value="$remoteServerPort" />+ <div>+ <x-forms.input placeholder="Default is root" label="User" id="remoteServerUser"+ wire:model="remoteServerUser" :value="$remoteServerUser" />+ <p class="text-xs mt-1">+ Non-root user is experimental:+ <a class="font-bold underline" target="_blank"+ href="https://coolify.io/docs/knowledge-base/server/non-root-user">docs</a>+ </p>+ </div></div>++ <div class="mb-4">+ <p class="mb-2">If the connection details are correct, please ensure:</p>+ <ul class="list-disc list-inside">+ <li>The correct public key is in your <code+ class="bg-red-200 dark:bg-red-900 px-1 rounded-sm">~/.ssh/authorized_keys</code>+ file for the specified user</li>+ <li>Or skip the boarding process and manually add a new private key to Coolify and+ the server</li>+ </ul>+ </div>++ <p class="mb-4">+ For more help, check this <a target="_blank" class="underline font-semibold"+ href="https://coolify.io/docs/knowledge-base/server/openssh">documentation</a>.+ </p>++ <x-forms.input readonly id="serverPublicKey" class="mb-4"+ label="Current Public Key"></x-forms.input>++ <x-forms.button class="w-full box-boarding" wire:click="saveAndValidateServer">+ Check Again+ </x-forms.button></div>- </div>- <x-forms.button type="submit" class="w-full lg:w-auto">Validate Connection</x-forms.button>- </form>- </x-slot:actions>- <x-slot:explanation>- <p>- <x-highlighted text="Connection Requirements:" /> Server must be accessible via SSH on the- specified port (default 22).- </p>- <p>- <x-highlighted text="Hostname Resolution:" /> Use IP addresses for direct connections or ensure- DNS resolution is configured.- </p>- <p>- <x-highlighted text="User Permissions:" /> Root or sudo-enabled users recommended for full Docker- management capabilities.- </p>- </x-slot:explanation>- </x-boarding-step>- @elseif ($currentState === 'validate-server')- <x-boarding-progress :currentStep="2" />- <x-boarding-step title="Server Validation">- <x-slot:question>- Coolify will automatically install Docker {{ $minDockerVersion }}+ if not present.- </x-slot:question>- <x-slot:actions>- <div class="w-full space-y-6">- <div class="p-6 bg-neutral-50 dark:bg-coolgray-200 rounded-lg border border-neutral-200 dark:border-coolgray-400">- <h3 class="font-bold text-black dark:text-white mb-4">Validation Steps</h3>- <div class="space-y-3">- <div class="flex items-start gap-3">- <div class="flex-shrink-0 mt-0.5">- <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"- fill="currentColor">- <path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"- clip-rule="evenodd" />- </svg>+ @endif+ </x-slot:actions>+ <x-slot:explanation>+ <p>+ <x-highlighted text="Servers" /> host your applications, databases, and services (collectively+ called resources). All CPU-intensive operations run on the target server.+ </p>+ <p>+ <x-highlighted text="Localhost:" /> The machine running Coolify. Not recommended for production+ workloads due to resource contention.+ </p>+ <p>+ <x-highlighted text="Remote Server:" /> Any SSH-accessible server—cloud providers (AWS, Hetzner,+ DigitalOcean), bare metal, or self-hosted infrastructure.+ </p>+ </x-slot:explanation>+ </x-boarding-step>+ @elseif ($currentState === 'private-key')+ <x-boarding-progress :currentStep="2" />+ <x-boarding-step title="SSH Authentication">+ <x-slot:question>+ Configure SSH key-based authentication for secure server access.+ </x-slot:question>+ <x-slot:actions>+ @if ($privateKeys && $privateKeys->count() > 0)+ <div class="w-full space-y-4">+ <div class="p-4 rounded-lg border border-neutral-200 dark:border-coolgray-400">+ <form wire:submit='selectExistingPrivateKey' class="flex flex-col gap-4">+ <x-forms.select label="Existing SSH Keys" id='selectedExistingPrivateKey'>+ <option disabled selected value="">-- Select a Private Key --</option>+ @foreach ($privateKeys as $privateKey)+ <option wire:key="{{ $loop->index }}" value="{{ $privateKey->id }}">+ {{ $privateKey->name }}+ </option>+ @endforeach+ </x-forms.select>+ <x-forms.button type="submit" class="w-full lg:w-auto">Use Selected Key</x-forms.button>+ </form>+ </div>+ <div class="relative">+ <div class="absolute inset-0 flex items-center">+ <div class="w-full border-t border-neutral-300 dark:border-coolgray-400"></div></div>- <div>- <div class="font-semibold text-base dark:text-white">Test SSH Connection</div>- <div class="text-sm dark:text-neutral-400">Verify key-based authentication</div>+ <div class="relative flex justify-center text-sm">+ <div+ class="px-2 py-1 bg-white dark:bg-coolgray-100 border border-neutral-300 dark:border-coolgray-300 rounded text-xs font-bold text-neutral-500 dark:text-neutral-400">+ OR+ </div></div></div>- <div class="flex items-start gap-3">- <div class="flex-shrink-0 mt-0.5">- <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"- fill="currentColor">- <path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"- clip-rule="evenodd" />- </svg>+ </div>+ @endif+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-4 w-full">+ <x-forms.button+ class="justify-center h-auto py-6 box-without-bg hover:border-coollabs transition-all duration-200"+ wire:target="setPrivateKey('own')" wire:click="setPrivateKey('own')">+ <div class="flex flex-col items-center gap-2">+ <svg class="size-8" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"+ stroke-width="1.5" stroke="currentColor">+ <path stroke-linecap="round" stroke-linejoin="round"+ d="M15.75 5.25a3 3 0 013 3m3 0a6 6 0 01-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1121.75 8.25z" />+ </svg>+ <div class="text-center">+ <h3 class="text-xl font-bold mb-2">Use Existing Key</h3>+ <p class="text-sm dark:text-neutral-400">I have my own SSH key</p></div>- <div>- <div class="font-semibold text-base dark:text-white">Check OS Compatibility</div>- <div class="text-sm dark:text-neutral-400">Verify supported Linux distribution</div>+ </div>+ </x-forms.button>+ <x-forms.button+ class="justify-center h-auto py-6 box-without-bg hover:border-coollabs transition-all duration-200"+ wire:target="setPrivateKey('create')" wire:click="setPrivateKey('create')">+ <div class="flex flex-col items-center gap-2">+ <svg class="size-8" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"+ stroke-width="1.5" stroke="currentColor">+ <path stroke-linecap="round" stroke-linejoin="round"+ d="M19 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zM4 19.235v-.11a6.375 6.375 0 0112.75 0v.109A12.318 12.318 0 0110.374 21c-2.331 0-4.512-.645-6.374-1.766z" />+ </svg>+ <div class="text-center">+ <h3 class="text-xl font-bold mb-2">Generate New Key</h3>+ <p class="text-sm dark:text-neutral-400">Create ED25519 key pair</p></div></div>- <div class="flex items-start gap-3">- <div class="flex-shrink-0 mt-0.5">- <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"- fill="currentColor">+ </x-forms.button>+ </div>+ </x-slot:actions>+ <x-slot:explanation>+ <p>+ <x-highlighted text="SSH Key Authentication:" /> Uses public-key cryptography for secure,+ password-less server access.+ </p>+ <p>+ <x-highlighted text="Public Key Deployment:" /> Add the public key to your server's+ <code+ class="text-xs bg-coolgray-300 dark:bg-coolgray-400 px-1 py-0.5 rounded">~/.ssh/authorized_keys</code>+ file.+ </p>+ <p>+ <x-highlighted text="Key Generation:" /> Coolify generates ED25519 keys by default for optimal+ security and performance.+ </p>+ </x-slot:explanation>+ </x-boarding-step>+ @elseif ($currentState === 'create-private-key')+ <x-boarding-progress :currentStep="2" />+ <x-boarding-step title="SSH Key Configuration">+ <x-slot:question>+ Configure your SSH key for server authentication.+ </x-slot:question>+ <x-slot:actions>+ <form wire:submit='savePrivateKey' class="flex flex-col w-full gap-4">+ <x-forms.input required placeholder="e.g., production-server-key" label="Key Name"+ id="privateKeyName" />+ <x-forms.input placeholder="Optional: Note what this key is used for" label="Description"+ id="privateKeyDescription" />+ @if ($privateKeyType === 'create')+ <x-forms.textarea required readonly label="Private Key" id="privateKey" rows="8" />+ <x-forms.textarea rows="7" readonly label="Public Key" id="publicKey" />+ @else+ <x-forms.textarea required placeholder="-----BEGIN OPENSSH PRIVATE KEY-----" label="Private Key"+ id="privateKey" rows="8" />+ @endif+ @if ($privateKeyType === 'create')+ <div class="p-4 bg-warning/10 border border-warning rounded-lg">+ <div class="flex gap-3">+ <svg class="size-5 text-warning flex-shrink-0 mt-0.5" xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"+ d="M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z"clip-rule="evenodd" /></svg>+ <div>+ <p class="font-bold text-warning mb-1">Action Required</p>+ <p class="text-sm dark:text-white text-black">+ Copy the public key above and add it to your server's+ <code+ class="text-xs bg-coolgray-300 dark:bg-coolgray-400 px-1 py-0.5 rounded">~/.ssh/authorized_keys</code>+ file.+ </p>+ </div></div>+ </div>+ @endif+ <x-forms.button type="submit" class="w-full lg:w-auto">Save SSH Key</x-forms.button>+ </form>+ </x-slot:actions>+ <x-slot:explanation>+ <p>+ <x-highlighted text="Key Storage:" /> Private keys are encrypted at rest in Coolify's database.+ </p>+ <p>+ <x-highlighted text="Public Key Distribution:" /> Deploy the public key to+ <code+ class="text-xs bg-coolgray-300 dark:bg-coolgray-400 px-1 py-0.5 rounded">~/.ssh/authorized_keys</code>+ on your target server for the specified user.+ </p>+ <p>+ <x-highlighted text="Key Format:" /> Supports RSA, ED25519, ECDSA, and DSA key types in OpenSSH+ format.+ </p>+ </x-slot:explanation>+ </x-boarding-step>+ @elseif ($currentState === 'create-server')+ <x-boarding-progress :currentStep="2" />+ <x-boarding-step title="Server Configuration">+ <x-slot:question>+ Provide connection details for your remote server.+ </x-slot:question>+ <x-slot:actions>+ <form wire:submit='saveServer' class="flex flex-col w-full gap-4">+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-4">+ <x-forms.input required placeholder="e.g., production-app-server" label="Server Name"+ id="remoteServerName" wire:model="remoteServerName" />+ <x-forms.input required placeholder="IP address or hostname" label="IP Address/Hostname"+ id="remoteServerHost" wire:model="remoteServerHost" />+ </div>+ <x-forms.input placeholder="Optional: Note what this server hosts" label="Description"+ id="remoteServerDescription" wire:model="remoteServerDescription" />++ <div x-data="{ showAdvanced: false }" class="flex flex-col gap-4">+ <button @click="showAdvanced = !showAdvanced" type="button"+ class="flex items-center gap-2 text-left text-sm font-medium hover:underline">+ <svg x-show="!showAdvanced" class="size-4" xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 20 20" fill="currentColor">+ <path fill-rule="evenodd"+ d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z"+ clip-rule="evenodd" />+ </svg>+ <svg x-show="showAdvanced" class="size-4" xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 20 20" fill="currentColor">+ <path fill-rule="evenodd"+ d="M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z"+ clip-rule="evenodd" />+ </svg>+ Advanced Connection Settings+ </button>+ <div x-show="showAdvanced" x-cloak+ class="grid grid-cols-1 lg:grid-cols-2 gap-4 p-4 rounded-lg border border-neutral-200 dark:border-coolgray-400">+ <x-forms.input placeholder="Default: 22" label="SSH Port" type="number"+ id="remoteServerPort" wire:model="remoteServerPort" /><div>- <div class="font-semibold text-base dark:text-white">Install Docker Engine</div>- <div class="text-sm dark:text-neutral-400">Auto-install if version {{ $minDockerVersion }}+ not- found</div>+ <x-forms.input placeholder="Default: root" label="SSH User" id="remoteServerUser"+ wire:model="remoteServerUser" />+ <p class="mt-1 text-xs dark:text-white text-black">+ Non-root user support is experimental.+ <a class="font-bold underline hover:text-coollabs" target="_blank"+ href="https://coolify.io/docs/knowledge-base/server/non-root-user">Learn+ more</a>+ </p></div></div>- <div class="flex items-start gap-3">- <div class="flex-shrink-0 mt-0.5">- <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"- fill="currentColor">- <path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"- clip-rule="evenodd" />- </svg>+ </div>+ <x-forms.button type="submit" class="w-full lg:w-auto">Validate Connection</x-forms.button>+ </form>+ </x-slot:actions>+ <x-slot:explanation>+ <p>+ <x-highlighted text="Connection Requirements:" /> Server must be accessible via SSH on the+ specified port (default 22).+ </p>+ <p>+ <x-highlighted text="Hostname Resolution:" /> Use IP addresses for direct connections or ensure+ DNS resolution is configured.+ </p>+ <p>+ <x-highlighted text="User Permissions:" /> Root or sudo-enabled users recommended for full+ Docker+ management capabilities.+ </p>+ </x-slot:explanation>+ </x-boarding-step>+ @elseif ($currentState === 'validate-server')+ <x-boarding-progress :currentStep="2" />+ <x-boarding-step title="Server Validation">+ <x-slot:question>+ Coolify will automatically install Docker {{ $minDockerVersion }}+ if not present.+ </x-slot:question>+ <x-slot:actions>+ <div class="w-full space-y-6">+ <div+ class="p-6 bg-neutral-50 dark:bg-coolgray-200 rounded-lg border border-neutral-200 dark:border-coolgray-400">+ <h3 class="font-bold text-black dark:text-white mb-4">Validation Steps</h3>+ <div class="space-y-3">+ <div class="flex items-start gap-3">+ <div class="flex-shrink-0 mt-0.5">+ <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 20 20" fill="currentColor">+ <path fill-rule="evenodd"+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"+ clip-rule="evenodd" />+ </svg>+ </div>+ <div>+ <div class="font-semibold text-base dark:text-white">Test SSH Connection</div>+ <div class="text-sm dark:text-neutral-400">Verify key-based authentication</div>+ </div></div>- <div>- <div class="font-semibold text-base dark:text-white">Configure Network</div>- <div class="text-sm dark:text-neutral-400">Set up Docker networks and proxy</div>+ <div class="flex items-start gap-3">+ <div class="flex-shrink-0 mt-0.5">+ <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 20 20" fill="currentColor">+ <path fill-rule="evenodd"+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"+ clip-rule="evenodd" />+ </svg>+ </div>+ <div>+ <div class="font-semibold text-base dark:text-white">Check OS Compatibility+ </div>+ <div class="text-sm dark:text-neutral-400">Verify supported Linux distribution+ </div>+ </div>+ </div>+ <div class="flex items-start gap-3">+ <div class="flex-shrink-0 mt-0.5">+ <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 20 20" fill="currentColor">+ <path fill-rule="evenodd"+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"+ clip-rule="evenodd" />+ </svg>+ </div>+ <div>+ <div class="font-semibold text-base dark:text-white">Install Docker Engine</div>+ <div class="text-sm dark:text-neutral-400">Auto-install if version+ {{ $minDockerVersion }}+ not+ found+ </div>+ </div>+ </div>+ <div class="flex items-start gap-3">+ <div class="flex-shrink-0 mt-0.5">+ <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 20 20" fill="currentColor">+ <path fill-rule="evenodd"+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"+ clip-rule="evenodd" />+ </svg>+ </div>+ <div>+ <div class="font-semibold text-base dark:text-white">Configure Network</div>+ <div class="text-sm dark:text-neutral-400">Set up Docker networks and proxy+ </div>+ </div></div></div></div>- </div>- <x-slide-over closeWithX fullScreen>- <x-slot:title>Server Validation</x-slot:title>- <x-slot:content>- <livewire:server.validate-and-install :server="$this->createdServer" />- </x-slot:content>- <x-forms.button @click="slideOverOpen=true" class="w-full font-bold py-4 box-boarding"- wire:click.prevent='installServer' isHighlighted>- Start Validation+ <x-slide-over closeWithX fullScreen>+ <x-slot:title>Server Validation</x-slot:title>+ <x-slot:content>+ <livewire:server.validate-and-install :server="$this->createdServer" />+ </x-slot:content>+ <x-forms.button @click="slideOverOpen=true" class="w-full font-bold py-4 box-boarding"+ wire:click.prevent='installServer' isHighlighted>+ Start Validation+ </x-forms.button>+ </x-slide-over>+ </div>+ </x-slot:actions>+ <x-slot:explanation>+ <p>+ <x-highlighted text="Automated Setup:" /> Coolify installs Docker Engine, Docker Compose, and+ configures system requirements automatically.+ </p>+ <p>+ <x-highlighted text="Version Requirements:" /> Minimum Docker Engine {{ $minDockerVersion }}.x+ required.+ <a target="_blank" class="underline hover:text-coollabs"+ href="https://docs.docker.com/engine/install/#server">Manual installation guide</a>+ </p>+ <p>+ <x-highlighted text="System Configuration:" /> Sets up Docker networks, proxy configuration, and+ resource monitoring.+ </p>+ </x-slot:explanation>+ </x-boarding-step>+ @elseif ($currentState === 'create-project')+ <x-boarding-progress :currentStep="3" />+ <x-boarding-step title="Project Setup">+ <x-slot:question>+ @if ($projects && $projects->count() > 0)+ You have existing projects. Select one or create a new project to organize your resources.+ @else+ Create your first project to organize applications, databases, and services.+ @endif+ </x-slot:question>+ <x-slot:actions>+ <div class="w-full space-y-4">+ <x-forms.button class="justify-center w-full py-4 font-bold box-boarding"+ wire:click="createNewProject" isHighlighted>+ Create "My First Project"</x-forms.button>- </x-slide-over>- </div>- </x-slot:actions>- <x-slot:explanation>- <p>- <x-highlighted text="Automated Setup:" /> Coolify installs Docker Engine, Docker Compose, and- configures system requirements automatically.- </p>- <p>- <x-highlighted text="Version Requirements:" /> Minimum Docker Engine {{ $minDockerVersion }}.x- required.- <a target="_blank" class="underline hover:text-coollabs"- href="https://docs.docker.com/engine/install/#server">Manual installation guide</a>- </p>- <p>- <x-highlighted text="System Configuration:" /> Sets up Docker networks, proxy configuration, and- resource monitoring.- </p>- </x-slot:explanation>- </x-boarding-step>- @elseif ($currentState === 'create-project')- <x-boarding-progress :currentStep="3" />- <x-boarding-step title="Project Setup">- <x-slot:question>- @if ($projects && $projects->count() > 0)- You have existing projects. Select one or create a new project to organize your resources.- @else- Create your first project to organize applications, databases, and services.- @endif- </x-slot:question>- <x-slot:actions>- <div class="w-full space-y-4">- <x-forms.button class="justify-center w-full py-4 font-bold box-boarding"- wire:click="createNewProject" isHighlighted>- Create "My First Project"- </x-forms.button>- @if ($projects && $projects->count() > 0)- <div class="relative">- <div class="absolute inset-0 flex items-center">- <div class="w-full border-t border-neutral-300 dark:border-coolgray-400"></div>- </div>- <div class="relative flex justify-center text-sm">- <span class="px-2 bg-white dark:bg-coolgray-100 text-coolgray-400">Or use existing</span>+ @if ($projects && $projects->count() > 0)+ <div class="relative">+ <div class="absolute inset-0 flex items-center">+ <div class="w-full border-t border-neutral-300 dark:border-coolgray-400"></div>+ </div>+ <div class="relative flex justify-center text-sm">+ <span class="px-2 text-neutral-500 dark:text-neutral-400">Or use existing</span>+ </div></div>- </div>- <form wire:submit='selectExistingProject' class="flex flex-col gap-4">- <x-forms.select label="Existing Projects" id='selectedProject'>- @foreach ($projects as $project)- <option wire:key="{{ $loop->index }}" value="{{ $project->id }}">- {{ $project->name }}</option>- @endforeach- </x-forms.select>- <x-forms.button type="submit" class="w-full lg:w-auto">Use Selected Project</x-forms.button>- </form>- @endif- </div>- </x-slot:actions>- <x-slot:explanation>- <p>- <x-highlighted text="Project Organization:" /> Group related resources (apps, databases, services)- into logical projects.- </p>- <p>- <x-highlighted text="Environments:" /> Each project includes a production environment by default.- Add staging, development, or custom environments as needed.- </p>- <p>- <x-highlighted text="Team Access:" /> Projects inherit team permissions and can be managed- collaboratively.- </p>- </x-slot:explanation>- </x-boarding-step>- @elseif ($currentState === 'create-resource')- <x-boarding-progress :currentStep="3" />- <div class="w-full max-w-2xl text-center space-y-8">- <div class="space-y-4">- <div class="flex justify-center">- <svg class="size-16 text-success" xmlns="http://www.w3.org/2000/svg" fill="none"- viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">- <path stroke-linecap="round" stroke-linejoin="round"- d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />- </svg>+ <form wire:submit='selectExistingProject' class="flex flex-col gap-4">+ <x-forms.select label="Existing Projects" id='selectedProject'>+ @foreach ($projects as $project)+ <option wire:key="{{ $loop->index }}" value="{{ $project->id }}">+ {{ $project->name }}+ </option>+ @endforeach+ </x-forms.select>+ <x-forms.button type="submit" class="w-full lg:w-auto">Use Selected Project</x-forms.button>+ </form>+ @endif+ </div>+ </x-slot:actions>+ <x-slot:explanation>+ <p>+ <x-highlighted text="Project Organization:" /> Group related resources (apps, databases,+ services)+ into logical projects.+ </p>+ <p>+ <x-highlighted text="Environments:" /> Each project includes a production environment by+ default.+ Add staging, development, or custom environments as needed.+ </p>+ <p>+ <x-highlighted text="Team Access:" /> Projects inherit team permissions and can be managed+ collaboratively.+ </p>+ </x-slot:explanation>+ </x-boarding-step>+ @elseif ($currentState === 'create-resource')+ <x-boarding-progress :currentStep="3" />+ <div class="w-full max-w-2xl text-center space-y-8">+ <div class="space-y-4">+ <div class="flex justify-center">+ <svg class="size-16 text-success" xmlns="http://www.w3.org/2000/svg" fill="none"+ viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">+ <path stroke-linecap="round" stroke-linejoin="round"+ d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />+ </svg>+ </div>+ <h1 class="text-4xl font-bold lg:text-5xl">Setup Complete!</h1>+ <p class="text-lg dark:text-neutral-400">+ Your server is connected and ready. Start deploying your first resource.+ </p></div>- <h1 class="text-4xl font-bold lg:text-5xl">Setup Complete!</h1>- <p class="text-lg dark:text-neutral-400">- Your server is connected and ready. Start deploying your first resource.- </p>- </div>- <div- class="bg-white dark:bg-coolgray-100 rounded-lg shadow-sm border border-neutral-200 dark:border-coolgray-300 p-8 text-left">- <h2 class="text-sm font-bold uppercase tracking-wide dark:text-neutral-400 mb-4">- What's Configured- </h2>- <div class="space-y-3">- <div class="flex items-start gap-3">- <div class="flex-shrink-0 mt-0.5">- <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"- fill="currentColor">- <path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"- clip-rule="evenodd" />- </svg>- </div>- <div>- <div class="font-semibold text-base dark:text-white">Server: {{ $createdServer->name }}</div>- <div class="text-sm dark:text-neutral-400">{{ $createdServer->ip }}</div>- </div>- </div>- <div class="flex items-start gap-3">- <div class="flex-shrink-0 mt-0.5">- <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"- fill="currentColor">- <path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"- clip-rule="evenodd" />- </svg>- </div>- <div>- <div class="font-semibold text-base dark:text-white">Project: {{ $createdProject->name }}</div>- <div class="text-sm dark:text-neutral-400">Production environment ready</div>+ <div+ class="bg-white dark:bg-coolgray-100 rounded-lg shadow-sm border border-neutral-200 dark:border-coolgray-300 p-8 text-left">+ <h2 class="text-sm font-bold uppercase tracking-wide dark:text-neutral-400 mb-4">+ What's Configured+ </h2>+ <div class="space-y-3">+ <div class="flex items-start gap-3">+ <div class="flex-shrink-0 mt-0.5">+ <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"+ fill="currentColor">+ <path fill-rule="evenodd"+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"+ clip-rule="evenodd" />+ </svg>+ </div>+ <div>+ <div class="font-semibold text-base dark:text-white">Server: {{ $createdServer->name }}+ </div>+ <div class="text-sm dark:text-neutral-400">{{ $createdServer->ip }}</div>+ </div></div>- </div>- <div class="flex items-start gap-3">- <div class="flex-shrink-0 mt-0.5">- <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"- fill="currentColor">- <path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"- clip-rule="evenodd" />- </svg>+ <div class="flex items-start gap-3">+ <div class="flex-shrink-0 mt-0.5">+ <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"+ fill="currentColor">+ <path fill-rule="evenodd"+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"+ clip-rule="evenodd" />+ </svg>+ </div>+ <div>+ <div class="font-semibold text-base dark:text-white">Project:+ {{ $createdProject->name }}+ </div>+ <div class="text-sm dark:text-neutral-400">Production environment ready</div>+ </div></div>- <div>- <div class="font-semibold text-base dark:text-white">Docker Engine</div>- <div class="text-sm dark:text-neutral-400">Installed and running</div>+ <div class="flex items-start gap-3">+ <div class="flex-shrink-0 mt-0.5">+ <svg class="size-5 text-success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"+ fill="currentColor">+ <path fill-rule="evenodd"+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"+ clip-rule="evenodd" />+ </svg>+ </div>+ <div>+ <div class="font-semibold text-base dark:text-white">Docker Engine</div>+ <div class="text-sm dark:text-neutral-400">Installed and running</div>+ </div></div></div></div>++ <div class="flex flex-col gap-3">+ <x-forms.button class="justify-center w-full py-4 text-lg font-bold box-boarding"+ wire:click="showNewResource" isHighlighted>+ Deploy Your First Resource+ </x-forms.button>+ <button wire:click="skipBoarding"+ class="text-sm dark:text-neutral-400 hover:text-coollabs dark:hover:text-warning hover:underline transition-colors">+ Go to Dashboard+ </button>+ </div></div>+ @endif+ </div>- <div class="flex flex-col gap-3">- <x-forms.button class="justify-center w-full py-4 text-lg font-bold box-boarding"- wire:click="showNewResource" isHighlighted>- Deploy Your First Resource- </x-forms.button>- <button wire:click="skipBoarding"- class="text-sm dark:text-neutral-400 hover:text-coollabs dark:hover:text-warning hover:underline transition-colors">- Go to Dashboard+ @if ($currentState !== 'welcome' && $currentState !== 'create-resource')+ <div class="flex flex-col items-center gap-4 pt-8 mt-8 border-t border-neutral-200 dark:border-coolgray-400">+ <div class="flex justify-center gap-6 text-sm">+ <button wire:click='skipBoarding'+ class="dark:text-neutral-400 hover:text-coollabs dark:hover:text-warning hover:underline transition-colors">+ Skip Setup+ </button>+ <button wire:click='restartBoarding'+ class="dark:text-neutral-400 hover:text-coollabs dark:hover:text-warning hover:underline transition-colors">+ Restart</button></div>+ <x-modal-input title="Need Help?">+ <x-slot:content>+ <button+ class="text-sm dark:text-neutral-400 hover:text-coollabs dark:hover:text-warning hover:underline transition-colors">+ Contact Support+ </button>+ </x-slot:content>+ <livewire:help />+ </x-modal-input></div>@endif- </div>-- @if ($currentState !== 'welcome' && $currentState !== 'create-resource')- <div class="flex flex-col items-center gap-4 pt-8 mt-8 border-t border-neutral-200 dark:border-coolgray-400">- <div class="flex justify-center gap-6 text-sm">- <button wire:click='skipBoarding'- class="dark:text-neutral-400 hover:text-coollabs dark:hover:text-warning hover:underline transition-colors">- Skip Setup- </button>- <button wire:click='restartBoarding'- class="dark:text-neutral-400 hover:text-coollabs dark:hover:text-warning hover:underline transition-colors">- Restart- </button>- </div>- <x-modal-input title="Need Help?">- <x-slot:content>- <button- class="text-sm dark:text-neutral-400 hover:text-coollabs dark:hover:text-warning hover:underline transition-colors">- Contact Support- </button>- </x-slot:content>- <livewire:help />- </x-modal-input>- </div>- @endif-</section>+ </section>\ No newline at end of file