repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/database/clickhouse/general.blade.php
resources/views/livewire/project/database/clickhouse/general.blade.php
<div> <form wire:submit="submit" class="flex flex-col gap-2"> <div class="flex items-center gap-2"> <h2>General</h2> <x-forms.button type="submit" canGate="update" :canResource="$database"> Save </x-forms.button> </div> <div class="flex gap-2"> <x-forms.input label="Name" id="name" canGate="update" :canResource="$database" /> <x-forms.input label="Description" id="description" canGate="update" :canResource="$database" /> <x-forms.input label="Image" id="image" required canGate="update" :canResource="$database" helper="For all available images, check here:<br><br><a target='_blank' href='https://hub.docker.com/r/clickhouse/clickhouse-server/'>https://hub.docker.com/r/clickhouse/clickhouse-server/</a>" /> </div> @if ($database->started_at) <div class="flex gap-2"> <x-forms.input label="Initial Username" id="clickhouseAdminUser" placeholder="If empty: clickhouse" readonly helper="You can only change this in the database." canGate="update" :canResource="$database" /> <x-forms.input label="Initial Password" id="clickhouseAdminPassword" type="password" required readonly helper="You can only change this in the database." canGate="update" :canResource="$database" /> </div> @else <div class=" dark:text-warning">Please verify these values. You can only modify them before the initial start. After that, you need to modify it in the database. </div> <div class="flex gap-2"> <x-forms.input label="Username" id="clickhouseAdminUser" required canGate="update" :canResource="$database" /> <x-forms.input label="Password" id="clickhouseAdminPassword" type="password" required canGate="update" :canResource="$database" /> </div> @endif <x-forms.input helper="You can add custom docker run options that will be used when your container is started.<br>Note: Not all options are supported, as they could mess up Coolify's automation and could cause bad experience for users.<br><br>Check the <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/docker/custom-commands'>docs.</a>" placeholder="--cap-add SYS_ADMIN --device=/dev/fuse --security-opt apparmor:unconfined --ulimit nofile=1024:1024 --tmpfs /run:rw,noexec,nosuid,size=65536k" id="customDockerRunOptions" label="Custom Docker Options" canGate="update" :canResource="$database" /> <div class="flex flex-col gap-2"> <h3 class="py-2">Network</h3> <div class="flex items-end gap-2"> <x-forms.input placeholder="3000:5432" id="portsMappings" label="Ports Mappings" helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" canGate="update" :canResource="$database" /> </div> <x-forms.input label="Clickhouse URL (internal)" helper="If you change the user/password/port, this could be different. This is with the default values." type="password" readonly wire:model="dbUrl" canGate="update" :canResource="$database" /> @if ($dbUrlPublic) <x-forms.input label="Clickhouse URL (public)" helper="If you change the user/password/port, this could be different. This is with the default values." type="password" readonly wire:model="dbUrlPublic" canGate="update" :canResource="$database" /> @else <x-forms.input label="Clickhouse URL (public)" helper="If you change the user/password/port, this could be different. This is with the default values." readonly value="Starting the database will generate this." canGate="update" :canResource="$database" /> @endif </div> <div> <div class="flex flex-col py-2 w-64"> <div class="flex items-center gap-2 pb-2"> <div class="flex items-center"> <h3>Proxy</h3> <x-loading wire:loading wire:target="instantSave" /> </div> @if ($isPublic) <x-slide-over fullScreen> <x-slot:title>Proxy Logs</x-slot:title> <x-slot:content> <livewire:project.shared.get-logs :server="$server" :resource="$database" container="{{ data_get($database, 'uuid') }}-proxy" :collapsible="false" lazy /> </x-slot:content> <x-forms.button disabled="{{ !$isPublic }}" @click="slideOverOpen=true">Logs</x-forms.button> </x-slide-over> @endif </div> <x-forms.checkbox instantSave id="isPublic" label="Make it publicly available" canGate="update" :canResource="$database" /> </div> <x-forms.input placeholder="5432" disabled="{{ $isPublic }}" id="publicPort" label="Public Port" canGate="update" :canResource="$database" /> </div> </form> <h3 class="pt-4">Advanced</h3> <div class="w-64"> <x-forms.checkbox helper="Drain logs to your configured log drain endpoint in your Server settings." instantSave="instantSaveAdvanced" id="isLogDrainEnabled" label="Drain Logs" canGate="update" :canResource="$database" /> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/database/mariadb/general.blade.php
resources/views/livewire/project/database/mariadb/general.blade.php
<div> <form wire:submit="submit" class="flex flex-col gap-2"> <div class="flex items-center gap-2"> <h2>General</h2> <x-forms.button type="submit" canGate="update" :canResource="$database"> Save </x-forms.button> </div> <div class="flex gap-2"> <x-forms.input label="Name" id="name" canGate="update" :canResource="$database" /> <x-forms.input label="Description" id="description" canGate="update" :canResource="$database" /> <x-forms.input label="Image" id="image" required canGate="update" :canResource="$database" helper="For all available images, check here:<br><br><a target='_blank' href='https://hub.docker.com/_/mariadb'>https://hub.docker.com/_/mariadb</a>" /> </div> <div class="pt-2 dark:text-warning">If you change the values in the database, please sync it here, otherwise automations (like backups) won't work. </div> @if ($database->started_at) <div class="flex xl:flex-row flex-col gap-2"> <x-forms.input label="Root Password" id="mariadbRootPassword" type="password" required helper="If you change this in the database, please sync it here, otherwise automations (like backups) won't work." canGate="update" :canResource="$database" /> <x-forms.input label="Normal User" id="mariadbUser" required helper="If you change this in the database, please sync it here, otherwise automations (like backups) won't work." canGate="update" :canResource="$database" /> <x-forms.input label="Normal User Password" id="mariadbPassword" type="password" required helper="If you change this in the database, please sync it here, otherwise automations (like backups) won't work." canGate="update" :canResource="$database" /> </div> <div class="flex flex-col gap-2"> <x-forms.input label="Initial Database" id="mariadbDatabase" placeholder="If empty, it will be the same as Username." readonly helper="You can only change this in the database." /> </div> @else <div class="flex xl:flex-row flex-col gap-2 pb-2"> <x-forms.input label="Root Password" id="mariadbRootPassword" type="password" helper="You can only change this in the database." canGate="update" :canResource="$database" /> <x-forms.input label="Normal User" id="mariadbUser" required helper="You can only change this in the database." canGate="update" :canResource="$database" /> <x-forms.input label="Normal User Password" id="mariadbPassword" type="password" required helper="You can only change this in the database." canGate="update" :canResource="$database" /> </div> <div class="flex flex-col gap-2"> <x-forms.input label="Initial Database" id="mariadbDatabase" placeholder="If empty, it will be the same as Username." helper="You can only change this in the database." canGate="update" :canResource="$database" /> </div> @endif <div class="pt-2"> <x-forms.input helper="You can add custom docker run options that will be used when your container is started.<br>Note: Not all options are supported, as they could mess up Coolify's automation and could cause bad experience for users.<br><br>Check the <a class='underline dark:text-white' {{ wireNavigate() }} href='https://coolify.io/docs/knowledge-base/docker/custom-commands'>docs.</a>" placeholder="--cap-add SYS_ADMIN --device=/dev/fuse --security-opt apparmor:unconfined --ulimit nofile=1024:1024 --tmpfs /run:rw,noexec,nosuid,size=65536k" id="customDockerRunOptions" label="Custom Docker Options" canGate="update" :canResource="$database" /> </div> <div class="flex flex-col gap-2"> <h3 class="py-2">Network</h3> <div class="flex items-end gap-2"> <x-forms.input placeholder="3000:5432" id="portsMappings" label="Ports Mappings" helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" canGate="update" :canResource="$database" /> </div> <x-forms.input label="MariaDB URL (internal)" helper="If you change the user/password/port, this could be different. This is with the default values." type="password" readonly wire:model="db_url" canGate="update" :canResource="$database" /> @if ($db_url_public) <x-forms.input label="MariaDB URL (public)" helper="If you change the user/password/port, this could be different. This is with the default values." type="password" readonly wire:model="db_url_public" canGate="update" :canResource="$database" /> @endif </div> <div class="flex flex-col gap-2"> <div class="flex items-center justify-between py-2"> <div class="flex items-center justify-between w-full"> <h3>SSL Configuration</h3> @if ($enableSsl && $certificateValidUntil) <x-modal-confirmation title="Regenerate SSL Certificates" buttonTitle="Regenerate SSL Certificates" :actions="[ 'The SSL certificate of this database will be regenerated.', 'You must restart the database after regenerating the certificate to start using the new certificate.', ]" submitAction="regenerateSslCertificate" :confirmWithText="false" :confirmWithPassword="false" /> @endif </div> </div> @if ($enableSsl && $certificateValidUntil) <span class="text-sm">Valid until: @if (now()->gt($certificateValidUntil)) <span class="text-red-500">{{ $certificateValidUntil->format('d.m.Y H:i:s') }} - Expired</span> @elseif(now()->addDays(30)->gt($certificateValidUntil)) <span class="text-red-500">{{ $certificateValidUntil->format('d.m.Y H:i:s') }} - Expiring soon</span> @else <span>{{ $certificateValidUntil->format('d.m.Y H:i:s') }}</span> @endif </span> @endif </div> <div class="flex flex-col gap-2"> <div class="flex flex-col gap-2"> <div class="w-64"> @if (str($database->status)->contains('exited')) <x-forms.checkbox id="enableSsl" label="Enable SSL" wire:model.live="enableSsl" instantSave="instantSaveSSL" canGate="update" :canResource="$database" /> @else <x-forms.checkbox id="enableSsl" label="Enable SSL" wire:model.live="enableSsl" instantSave="instantSaveSSL" disabled helper="Database should be stopped to change this settings." canGate="update" :canResource="$database" /> @endif </div> </div> </div> <div> <div class="flex flex-col py-2 w-64"> <div class="flex items-center gap-2 pb-2"> <div class="flex items-center"> <h3>Proxy</h3> <x-loading wire:loading wire:target="instantSave" /> </div> @if (data_get($database, 'is_public')) <x-slide-over fullScreen> <x-slot:title>Proxy Logs</x-slot:title> <x-slot:content> <livewire:project.shared.get-logs :server="$server" :resource="$database" container="{{ data_get($database, 'uuid') }}-proxy" :collapsible="false" lazy /> </x-slot:content> <x-forms.button disabled="{{ !data_get($database, 'is_public') }}" @click="slideOverOpen=true">Logs</x-forms.button> </x-slide-over> @endif </div> <x-forms.checkbox instantSave id="isPublic" label="Make it publicly available" canGate="update" :canResource="$database" /> </div> <x-forms.input placeholder="5432" disabled="{{ $isPublic }}" id="publicPort" label="Public Port" canGate="update" :canResource="$database" /> </div> <x-forms.textarea label="Custom MariaDB Configuration" rows="10" id="mariadbConf" canGate="update" :canResource="$database" /> <h3 class="pt-4">Advanced</h3> <div class="flex flex-col"> <x-forms.checkbox helper="Drain logs to your configured log drain endpoint in your Server settings." instantSave="instantSaveAdvanced" id="isLogDrainEnabled" label="Drain Logs" canGate="update" :canResource="$database" /> </div> </form> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/database/redis/general.blade.php
resources/views/livewire/project/database/redis/general.blade.php
<div> <form wire:submit="submit" class="flex flex-col gap-2"> <div class="flex items-center gap-2"> <h2>General</h2> <x-forms.button type="submit" canGate="update" :canResource="$database"> Save </x-forms.button> </div> <div class="flex gap-2"> <x-forms.input label="Name" id="name" canGate="update" :canResource="$database" /> <x-forms.input label="Description" id="description" canGate="update" :canResource="$database" /> <x-forms.input label="Image" id="image" required canGate="update" :canResource="$database" helper="For all available images, check here:<br><br><a target='_blank' href='https://hub.docker.com/_/redis'>https://hub.docker.com/_/redis</a>" /> </div> <div class="flex flex-col gap-2"> @if ($database->started_at) <div class="pt-2 dark:text-warning">If you change the values in the database, please sync it here, otherwise automations won't work. <br>Changing them here will not change the values in the database. </div> <div class="flex gap-2"> @if (version_compare($redisVersion, '6.0', '>=')) <x-forms.input label="Username" id="redisUsername" helper="You can only change this in the database." canGate="update" :canResource="$database" /> @endif <x-forms.input label="Password" id="redisPassword" type="password" helper="You can only change this in the database." canGate="update" :canResource="$database" /> </div> @else <div class="pt-2 dark:text-warning">You can only change the username and password in the database after initial start.</div> <div class="flex gap-2"> @if (version_compare($redisVersion, '6.0', '>=')) <x-forms.input label="Username" id="redisUsername" required helper="You can change the Redis Username in the input field below or by editing the value of the REDIS_USERNAME environment variable. <br><br> If you change the Redis Username in the database, please sync it here, otherwise automations (like backups) won't work. <br><br> Note: If the environment variable REDIS_USERNAME is set as a shared variable (environment, project, or team-based), this input field will become read-only." :disabled="$this->isSharedVariable('REDIS_USERNAME')" canGate="update" :canResource="$database" /> @endif <x-forms.input label="Password" id="redisPassword" type="password" required helper="You can change the Redis Password in the input field below or by editing the value of the REDIS_PASSWORD environment variable. <br><br> If you change the Redis Password in the database, please sync it here, otherwise automations (like backups) won't work. <br><br> Note: If the environment variable REDIS_PASSWORD is set as a shared variable (environment, project, or team-based), this input field will become read-only." :disabled="$this->isSharedVariable('REDIS_PASSWORD')" canGate="update" :canResource="$database" /> </div> @endif </div> <x-forms.input helper="You can add custom docker run options that will be used when your container is started.<br>Note: Not all options are supported, as they could mess up Coolify's automation and could cause bad experience for users.<br><br>Check the <a class='underline dark:text-white' {{ wireNavigate() }} href='https://coolify.io/docs/knowledge-base/docker/custom-commands'>docs.</a>" placeholder="--cap-add SYS_ADMIN --device=/dev/fuse --security-opt apparmor:unconfined --ulimit nofile=1024:1024 --tmpfs /run:rw,noexec,nosuid,size=65536k" id="customDockerRunOptions" label="Custom Docker Options" canGate="update" :canResource="$database" /> <div class="flex flex-col gap-2"> <h3 class="py-2">Network</h3> <div class="flex items-end gap-2"> <x-forms.input placeholder="3000:5432" id="portsMappings" label="Ports Mappings" helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" canGate="update" :canResource="$database" /> </div> <x-forms.input label="Redis URL (internal)" helper="If you change the user/password/port, this could be different. This is with the default values." type="password" readonly wire:model="dbUrl" canGate="update" :canResource="$database" /> @if ($dbUrlPublic) <x-forms.input label="Redis URL (public)" helper="If you change the user/password/port, this could be different. This is with the default values." type="password" readonly wire:model="dbUrlPublic" canGate="update" :canResource="$database" /> @endif </div> <div class="flex flex-col gap-2"> <div class="flex items-center justify-between py-2"> <div class="flex items-center justify-between w-full"> <h3>SSL Configuration</h3> @if ($enableSsl && $certificateValidUntil) <x-modal-confirmation title="Regenerate SSL Certificates" buttonTitle="Regenerate SSL Certificates" :actions="[ 'The SSL certificate of this database will be regenerated.', 'You must restart the database after regenerating the certificate to start using the new certificate.', ]" submitAction="regenerateSslCertificate" :confirmWithText="false" :confirmWithPassword="false" /> @endif </div> </div> @if ($enableSsl && $certificateValidUntil) <span class="text-sm">Valid until: @if (now()->gt($certificateValidUntil)) <span class="text-red-500">{{ $certificateValidUntil->format('d.m.Y H:i:s') }} - Expired</span> @elseif(now()->addDays(30)->gt($certificateValidUntil)) <span class="text-red-500">{{ $certificateValidUntil->format('d.m.Y H:i:s') }} - Expiring soon</span> @else <span>{{ $certificateValidUntil->format('d.m.Y H:i:s') }}</span> @endif </span> @endif <div class="flex flex-col gap-2"> <div class="w-64" wire:key='enable_ssl'> @if (str($database->status)->contains('exited')) <x-forms.checkbox id="enableSsl" label="Enable SSL" wire:model.live="enableSsl" instantSave="instantSaveSSL" canGate="update" :canResource="$database" /> @else <x-forms.checkbox id="enableSsl" label="Enable SSL" wire:model.live="enableSsl" instantSave="instantSaveSSL" disabled helper="Database should be stopped to change this settings." canGate="update" :canResource="$database" /> @endif </div> </div> </div> <div> <div class="flex flex-col py-2 w-64"> <div class="flex items-center gap-2 pb-2"> <div class="flex items-center"> <h3>Proxy</h3> <x-loading wire:loading wire:target="instantSave" /> </div> @if ($isPublic) <x-slide-over fullScreen> <x-slot:title>Proxy Logs</x-slot:title> <x-slot:content> <livewire:project.shared.get-logs :server="$server" :resource="$database" container="{{ data_get($database, 'uuid') }}-proxy" :collapsible="false" lazy /> </x-slot:content> <x-forms.button disabled="{{ !$isPublic }}" @click="slideOverOpen=true">Logs</x-forms.button> </x-slide-over> @endif </div> <x-forms.checkbox instantSave id="isPublic" label="Make it publicly available" canGate="update" :canResource="$database" /> </div> <x-forms.input placeholder="5432" disabled="{{ $isPublic }}" id="publicPort" label="Public Port" canGate="update" :canResource="$database" /> </div> <x-forms.textarea placeholder="# maxmemory 256mb # maxmemory-policy allkeys-lru # timeout 300" helper="You only need to provide the Redis directives you want to override — Redis will use default values for everything else. <br/><br/> ⚠️ <strong>Important:</strong> Coolify automatically applies the requirepass directive using the password shown in the Password field above. If you override requirepass in your custom configuration, make sure it matches the password field to avoid authentication issues. <br/><br/> 🔗 <strong>Tip:</strong> <a target='_blank' class='underline dark:text-white' href='https://raw.githubusercontent.com/redis/redis/7.2/redis.conf'>View the full Redis default configuration</a> to see what options are available." label="Custom Redis Configuration" rows="10" id="redisConf" canGate="update" :canResource="$database" /> <h3 class="pt-4">Advanced</h3> <div class="flex flex-col"> <x-forms.checkbox helper="Drain logs to your configured log drain endpoint in your Server settings." instantSave="instantSaveAdvanced" id="isLogDrainEnabled" label="Drain Logs" canGate="update" :canResource="$database" /> </div> </form> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/database/mysql/general.blade.php
resources/views/livewire/project/database/mysql/general.blade.php
<div> <form wire:submit="submit" class="flex flex-col gap-2"> <div class="flex items-center gap-2"> <h2>General</h2> <x-forms.button type="submit"> Save </x-forms.button> </div> <div class="flex gap-2"> <x-forms.input label="Name" id="name" canGate="update" :canResource="$database" /> <x-forms.input label="Description" id="description" canGate="update" :canResource="$database" /> <x-forms.input label="Image" id="image" required helper="For all available images, check here:<br><br><a target='_blank' href='https://hub.docker.com/_/mysql'>https://hub.docker.com/_/mysql</a>" canGate="update" :canResource="$database" /> </div> <div class="pt-2 dark:text-warning">If you change the values in the database, please sync it here, otherwise automations (like backups) won't work. </div> @if ($database->started_at) <div class="flex xl:flex-row flex-col gap-2"> <x-forms.input label="Root Password" id="mysqlRootPassword" type="password" required helper="If you change this in the database, please sync it here, otherwise automations (like backups) won't work." canGate="update" :canResource="$database" /> <x-forms.input label="Normal User" id="mysqlUser" required helper="If you change this in the database, please sync it here, otherwise automations (like backups) won't work." canGate="update" :canResource="$database" /> <x-forms.input label="Normal User Password" id="mysqlPassword" type="password" required helper="If you change this in the database, please sync it here, otherwise automations (like backups) won't work." canGate="update" :canResource="$database" /> </div> <div class="flex flex-col gap-2"> <x-forms.input label="Initial Database" id="mysqlDatabase" placeholder="If empty, it will be the same as Username." readonly helper="You can only change this in the database." canGate="update" :canResource="$database" /> </div> @else <div class="flex xl:flex-row flex-col gap-4 pb-2"> <x-forms.input label="Root Password" id="mysqlRootPassword" type="password" helper="You can only change this in the database." canGate="update" :canResource="$database" /> <x-forms.input label="Normal User" id="mysqlUser" required helper="You can only change this in the database." canGate="update" :canResource="$database" /> <x-forms.input label="Normal User Password" id="mysqlPassword" type="password" required helper="You can only change this in the database." canGate="update" :canResource="$database" /> </div> <div class="flex flex-col gap-2"> <x-forms.input label="Initial Database" id="mysqlDatabase" placeholder="If empty, it will be the same as Username." helper="You can only change this in the database." canGate="update" :canResource="$database" /> </div> @endif <div class="pt-2"> <x-forms.input helper="You can add custom docker run options that will be used when your container is started.<br>Note: Not all options are supported, as they could mess up Coolify's automation and could cause bad experience for users.<br><br>Check the <a class='underline dark:text-white' target='_blank' href='https://coolify.io/docs/knowledge-base/docker/custom-commands'>docs.</a>" placeholder="--cap-add SYS_ADMIN --device=/dev/fuse --security-opt apparmor:unconfined --ulimit nofile=1024:1024 --tmpfs /run:rw,noexec,nosuid,size=65536k" id="customDockerRunOptions" label="Custom Docker Options" canGate="update" :canResource="$database" /> </div> <div class="flex flex-col gap-2"> <h3 class="py-2">Network</h3> <div class="flex items-end gap-2"> <x-forms.input placeholder="3000:5432" id="portsMappings" label="Ports Mappings" helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" canGate="update" :canResource="$database" /> </div> <x-forms.input label="MySQL URL (internal)" helper="If you change the user/password/port, this could be different. This is with the default values." type="password" readonly wire:model="db_url" /> @if ($db_url_public) <x-forms.input label="MySQL URL (public)" helper="If you change the user/password/port, this could be different. This is with the default values." type="password" readonly wire:model="db_url_public" /> @endif </div> <div class="flex flex-col gap-2"> <div class="flex items-center justify-between py-2"> <div class="flex items-center justify-between w-full"> <h3>SSL Configuration</h3> @if ($enableSsl && $certificateValidUntil) <x-modal-confirmation title="Regenerate SSL Certificates" buttonTitle="Regenerate SSL Certificates" :actions="[ 'The SSL certificate of this database will be regenerated.', 'You must restart the database after regenerating the certificate to start using the new certificate.', ]" submitAction="regenerateSslCertificate" :confirmWithText="false" :confirmWithPassword="false" /> @endif </div> </div> @if ($enableSsl && $certificateValidUntil) <span class="text-sm">Valid until: @if (now()->gt($certificateValidUntil)) <span class="text-red-500">{{ $certificateValidUntil->format('d.m.Y H:i:s') }} - Expired</span> @elseif(now()->addDays(30)->gt($certificateValidUntil)) <span class="text-red-500">{{ $certificateValidUntil->format('d.m.Y H:i:s') }} - Expiring soon</span> @else <span>{{ $certificateValidUntil->format('d.m.Y H:i:s') }}</span> @endif </span> @endif </div> <div class="flex flex-col gap-2"> <div class="flex flex-col gap-2"> <div class="w-64"> @if (str($database->status)->contains('exited')) <x-forms.checkbox id="enableSsl" label="Enable SSL" wire:model.live="enableSsl" instantSave="instantSaveSSL" canGate="update" :canResource="$database" /> @else <x-forms.checkbox id="enableSsl" label="Enable SSL" wire:model.live="enableSsl" instantSave="instantSaveSSL" disabled helper="Database should be stopped to change this settings." /> @endif </div> @if ($enableSsl) <div class="mx-2"> @if (str($database->status)->contains('exited')) <x-forms.select id="sslMode" label="SSL Mode" wire:model.live="sslMode" instantSave="instantSaveSSL" helper="Choose the SSL verification mode for MySQL connections" canGate="update" :canResource="$database"> <option value="PREFERRED" title="Prefer secure connections">Prefer (secure)</option> <option value="REQUIRED" title="Require secure connections">Require (secure)</option> <option value="VERIFY_CA" title="Verify CA certificate">Verify CA (secure)</option> <option value="VERIFY_IDENTITY" title="Verify full certificate">Verify Full (secure) </option> </x-forms.select> @else <x-forms.select id="sslMode" label="SSL Mode" instantSave="instantSaveSSL" disabled helper="Database should be stopped to change this settings."> <option value="PREFERRED" title="Prefer secure connections">Prefer (secure)</option> <option value="REQUIRED" title="Require secure connections">Require (secure)</option> <option value="VERIFY_CA" title="Verify CA certificate">Verify CA (secure)</option> <option value="VERIFY_IDENTITY" title="Verify full certificate">Verify Full (secure) </option> </x-forms.select> @endif </div> @endif </div> </div> <div> <div class="flex flex-col py-2 w-64"> <div class="flex items-center gap-2 pb-2"> <div class="flex items-center"> <h3>Proxy</h3> <x-loading wire:loading wire:target="instantSave" /> </div> @if (data_get($database, 'is_public')) <x-slide-over fullScreen> <x-slot:title>Proxy Logs</x-slot:title> <x-slot:content> <livewire:project.shared.get-logs :server="$server" :resource="$database" container="{{ data_get($database, 'uuid') }}-proxy" :collapsible="false" lazy /> </x-slot:content> <x-forms.button disabled="{{ !data_get($database, 'is_public') }}" @click="slideOverOpen=true">Logs</x-forms.button> </x-slide-over> @endif </div> <x-forms.checkbox instantSave id="isPublic" label="Make it publicly available" canGate="update" :canResource="$database" /> </div> <x-forms.input placeholder="5432" disabled="{{ $isPublic }}" id="publicPort" label="Public Port" canGate="update" :canResource="$database" /> </div> <x-forms.textarea label="Custom Mysql Configuration" rows="10" id="mysqlConf" canGate="update" :canResource="$database" /> <h3 class="pt-4">Advanced</h3> <div class="flex flex-col"> <x-forms.checkbox helper="Drain logs to your configured log drain endpoint in your Server settings." instantSave="instantSaveAdvanced" id="isLogDrainEnabled" label="Drain Logs" canGate="update" :canResource="$database" /> </div> </form> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/database/dragonfly/general.blade.php
resources/views/livewire/project/database/dragonfly/general.blade.php
<div> <form wire:submit="submit" class="flex flex-col gap-2"> <div class="flex items-center gap-2"> <h2>General</h2> <x-forms.button type="submit" canGate="update" :canResource="$database"> Save </x-forms.button> </div> <div class="flex gap-2"> <x-forms.input label="Name" id="name" canGate="update" :canResource="$database" /> <x-forms.input label="Description" id="description" canGate="update" :canResource="$database" /> <x-forms.input label="Image" id="image" required canGate="update" :canResource="$database" /> </div> <x-forms.input helper="You can add custom docker run options that will be used when your container is started.<br>Note: Not all options are supported, as they could mess up Coolify's automation and could cause bad experience for users.<br><br>Check the <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/docker/custom-commands'>docs.</a>" placeholder="--cap-add SYS_ADMIN --device=/dev/fuse --security-opt apparmor:unconfined --ulimit nofile=1024:1024 --tmpfs /run:rw,noexec,nosuid,size=65536k" id="customDockerRunOptions" label="Custom Docker Options" canGate="update" :canResource="$database" /> @if ($database->started_at) <div class="flex gap-2"> <x-forms.input label="Initial Password" id="dragonflyPassword" type="password" required readonly helper="You can only change this in the database." canGate="update" :canResource="$database" /> </div> @else <div class=" dark:text-warning">Please verify these values. You can only modify them before the initial start. After that, you need to modify it in the database. </div> <div class="flex gap-2"> <x-forms.input label="Password" id="dragonflyPassword" type="password" required canGate="update" :canResource="$database" /> </div> @endif <div class="flex flex-col gap-2"> <h3 class="py-2">Network</h3> <div class="flex items-end gap-2"> <x-forms.input placeholder="3000:5432" id="portsMappings" label="Ports Mappings" helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" canGate="update" :canResource="$database" /> </div> <x-forms.input label="Dragonfly URL (internal)" helper="If you change the user/password/port, this could be different. This is with the default values." type="password" readonly wire:model="dbUrl" canGate="update" :canResource="$database" /> @if ($dbUrlPublic) <x-forms.input label="Dragonfly URL (public)" helper="If you change the user/password/port, this could be different. This is with the default values." type="password" readonly wire:model="dbUrlPublic" canGate="update" :canResource="$database" /> @else <x-forms.input label="Dragonfly URL (public)" helper="If you change the user/password/port, this could be different. This is with the default values." readonly value="Starting the database will generate this." canGate="update" :canResource="$database" /> @endif </div> <div class="flex flex-col gap-2"> <div class="flex items-center justify-between py-2"> <div class="flex items-center justify-between w-full"> <h3>SSL Configuration</h3> @if ($database->enable_ssl && $certificateValidUntil) <x-modal-confirmation title="Regenerate SSL Certificates" buttonTitle="Regenerate SSL Certificates" :actions="[ 'The SSL certificate of this database will be regenerated.', 'You must restart the database after regenerating the certificate to start using the new certificate.', ]" submitAction="regenerateSslCertificate" :confirmWithText="false" :confirmWithPassword="false" /> @endif </div> </div> @if ($database->enable_ssl && $certificateValidUntil) <span class="text-sm">Valid until: @if (now()->gt($certificateValidUntil)) <span class="text-red-500">{{ $certificateValidUntil->format('d.m.Y H:i:s') }} - Expired</span> @elseif(now()->addDays(30)->gt($certificateValidUntil)) <span class="text-red-500">{{ $certificateValidUntil->format('d.m.Y H:i:s') }} - Expiring soon</span> @else <span>{{ $certificateValidUntil->format('d.m.Y H:i:s') }}</span> @endif </span> @endif <div class="flex flex-col gap-2"> <div class="w-64"> @if (str($database->status)->contains('exited')) <x-forms.checkbox id="enable_ssl" label="Enable SSL" wire:model.live="enable_ssl" instantSave="instantSaveSSL" canGate="update" :canResource="$database" /> @else <x-forms.checkbox id="enable_ssl" label="Enable SSL" wire:model.live="enable_ssl" instantSave="instantSaveSSL" disabled helper="Database should be stopped to change this settings." canGate="update" :canResource="$database" /> @endif </div> </div> </div> <div> <div class="flex flex-col py-2 w-64"> <div class="flex items-center gap-2 pb-2"> <div class="flex items-center"> <h3>Proxy</h3> <x-loading wire:loading wire:target="instantSave" /> </div> @if ($isPublic) <x-slide-over fullScreen> <x-slot:title>Proxy Logs</x-slot:title> <x-slot:content> <livewire:project.shared.get-logs :server="$server" :resource="$database" container="{{ data_get($database, 'uuid') }}-proxy" :collapsible="false" lazy /> </x-slot:content> <x-forms.button disabled="{{ !$isPublic }}" @click="slideOverOpen=true">Logs</x-forms.button> </x-slide-over> @endif </div> <x-forms.checkbox instantSave id="isPublic" label="Make it publicly available" canGate="update" :canResource="$database" /> </div> <x-forms.input placeholder="5432" disabled="{{ $isPublic }}" id="publicPort" label="Public Port" canGate="update" :canResource="$database" /> </div> </form> <h3 class="pt-4">Advanced</h3> <div class="w-64"> <x-forms.checkbox helper="Drain logs to your configured log drain endpoint in your Server settings." instantSave="instantSaveAdvanced" id="isLogDrainEnabled" label="Drain Logs" canGate="update" :canResource="$database" /> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/database/keydb/general.blade.php
resources/views/livewire/project/database/keydb/general.blade.php
<div> <form wire:submit="submit" class="flex flex-col gap-2"> <div class="flex items-center gap-2"> <h2>General</h2> <x-forms.button type="submit" canGate="update" :canResource="$database"> Save </x-forms.button> </div> <div class="flex gap-2"> <x-forms.input label="Name" id="name" canGate="update" :canResource="$database" /> <x-forms.input label="Description" id="description" canGate="update" :canResource="$database" /> <x-forms.input label="Image" id="image" required canGate="update" :canResource="$database" helper="For all available images, check here:<br><br><a target='_blank' href=https://hub.docker.com/r/eqalpha/keydb'>https://hub.docker.com/r/eqalpha/keydb</a>" /> </div> @if ($database->started_at) <div class="flex gap-2"> <x-forms.input label="Initial Password" id="keydbPassword" type="password" required readonly helper="You can only change this in the database." canGate="update" :canResource="$database" /> </div> @else <div class=" dark:text-warning">Please verify these values. You can only modify them before the initial start. After that, you need to modify it in the database. </div> <div class="flex gap-2"> <x-forms.input label="Password" id="keydbPassword" type="password" required canGate="update" :canResource="$database" /> </div> @endif <x-forms.input helper="You can add custom docker run options that will be used when your container is started.<br>Note: Not all options are supported, as they could mess up Coolify's automation and could cause bad experience for users.<br><br>Check the <a class='underline dark:text-white' target='_blank' href='https://coolify.io/docs/knowledge-base/docker/custom-commands'>docs.</a>" placeholder="--cap-add SYS_ADMIN --device=/dev/fuse --security-opt apparmor:unconfined --ulimit nofile=1024:1024 --tmpfs /run:rw,noexec,nosuid,size=65536k" id="customDockerRunOptions" label="Custom Docker Options" canGate="update" :canResource="$database" /> <div class="flex flex-col gap-2"> <h3 class="py-2">Network</h3> <div class="flex items-end gap-2"> <x-forms.input placeholder="3000:5432" id="portsMappings" label="Ports Mappings" helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" canGate="update" :canResource="$database" /> </div> <x-forms.input label="KeyDB URL (internal)" helper="If you change the user/password/port, this could be different. This is with the default values." type="password" readonly wire:model="dbUrl" canGate="update" :canResource="$database" /> @if ($dbUrlPublic) <x-forms.input label="KeyDB URL (public)" helper="If you change the user/password/port, this could be different. This is with the default values." type="password" readonly wire:model="dbUrlPublic" canGate="update" :canResource="$database" /> @else <x-forms.input label="KeyDB URL (public)" helper="If you change the user/password/port, this could be different. This is with the default values." readonly value="Starting the database will generate this." canGate="update" :canResource="$database" /> @endif </div> <div class="flex flex-col gap-2"> <div class="flex items-center justify-between py-2"> <div class="flex items-center justify-between w-full"> <h3>SSL Configuration</h3> @if ($database->enable_ssl && $certificateValidUntil) <x-modal-confirmation title="Regenerate SSL Certificates" buttonTitle="Regenerate SSL Certificates" :actions="[ 'The SSL certificate of this database will be regenerated.', 'You must restart the database after regenerating the certificate to start using the new certificate.', ]" submitAction="regenerateSslCertificate" :confirmWithText="false" :confirmWithPassword="false" /> @endif </div> </div> @if ($database->enable_ssl && $certificateValidUntil) <span class="text-sm">Valid until: @if (now()->gt($certificateValidUntil)) <span class="text-red-500">{{ $certificateValidUntil->format('d.m.Y H:i:s') }} - Expired</span> @elseif(now()->addDays(30)->gt($certificateValidUntil)) <span class="text-red-500">{{ $certificateValidUntil->format('d.m.Y H:i:s') }} - Expiring soon</span> @else <span>{{ $certificateValidUntil->format('d.m.Y H:i:s') }}</span> @endif </span> @endif <div class="flex flex-col gap-2"> <div class="w-64"> @if (str($database->status)->contains('exited')) <x-forms.checkbox id="enable_ssl" label="Enable SSL" wire:model.live="enable_ssl" instantSave="instantSaveSSL" canGate="update" :canResource="$database" /> @else <x-forms.checkbox id="enable_ssl" label="Enable SSL" wire:model.live="enable_ssl" instantSave="instantSaveSSL" disabled helper="Database should be stopped to change this settings." canGate="update" :canResource="$database" /> @endif </div> </div> </div> <div> <div class="flex flex-col py-2 w-64"> <div class="flex items-center gap-2 pb-2"> <div class="flex items-center"> <h3>Proxy</h3> <x-loading wire:loading wire:target="instantSave" /> </div> @if ($isPublic) <x-slide-over fullScreen> <x-slot:title>Proxy Logs</x-slot:title> <x-slot:content> <livewire:project.shared.get-logs :server="$server" :resource="$database" container="{{ data_get($database, 'uuid') }}-proxy" :collapsible="false" lazy /> </x-slot:content> <x-forms.button disabled="{{ !$isPublic }}" @click="slideOverOpen=true">Logs</x-forms.button> </x-slide-over> @endif </div> <x-forms.checkbox instantSave id="isPublic" label="Make it publicly available" canGate="update" :canResource="$database" /> </div> <x-forms.input placeholder="5432" disabled="{{ $isPublic }}" id="publicPort" label="Public Port" canGate="update" :canResource="$database" /> </div> <x-forms.textarea helper="<a target='_blank' class='underline dark:text-white' href='https://raw.githubusercontent.com/Snapchat/KeyDB/unstable/keydb.conf'>KeyDB Default Configuration</a>" label="Custom KeyDB Configuration" rows="10" id="keydbConf" canGate="update" :canResource="$database" /> </form> <h3 class="pt-4">Advanced</h3> <div class="w-64"> <x-forms.checkbox helper="Drain logs to your configured log drain endpoint in your Server settings." instantSave="instantSaveAdvanced" id="isLogDrainEnabled" label="Drain Logs" canGate="update" :canResource="$database" /> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/database/backup/index.blade.php
resources/views/livewire/project/database/backup/index.blade.php
<div> <x-slot:title> {{ data_get_str($database, 'name')->limit(10) }} > Backups | Coolify </x-slot> <h1>Backups</h1> <livewire:project.shared.configuration-checker :resource="$database" /> <livewire:project.database.heading :database="$database" /> <div> <div class="flex gap-2"> <h2 class="pb-4">Scheduled Backups</h2> @can('update', $database) <x-modal-input buttonTitle="+ Add" title="New Scheduled Backup"> <livewire:project.database.create-scheduled-backup :database="$database" /> </x-modal-input> @endcan </div> <livewire:project.database.scheduled-backups :database="$database" /> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/database/backup/execution.blade.php
resources/views/livewire/project/database/backup/execution.blade.php
<div> <x-slot:title> {{ data_get_str($database, 'name')->limit(10) }} > Backup | Coolify </x-slot> <h1>Backups</h1> <livewire:project.shared.configuration-checker :resource="$database" /> <livewire:project.database.heading :database="$database" /> <div> <livewire:project.database.backup-edit :backup="$backup" :s3s="$s3s" :status="data_get($database, 'status')" /> <livewire:project.database.backup-executions :backup="$backup" /> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/health-checks.blade.php
resources/views/livewire/project/shared/health-checks.blade.php
<form wire:submit='submit' class="flex flex-col"> <div class="flex items-center gap-2"> <h2>Healthchecks</h2> <x-forms.button canGate="update" :canResource="$resource" type="submit">Save</x-forms.button> @if (!$healthCheckEnabled) <x-modal-confirmation title="Confirm Healthcheck Enable?" buttonTitle="Enable Healthcheck" submitAction="toggleHealthcheck" :actions="['Enable healthcheck for this resource.']" warningMessage="If the health check fails, your application will become inaccessible. Please review the <a href='https://coolify.io/docs/knowledge-base/health-checks' target='_blank' class='underline text-white'>Health Checks</a> guide before proceeding!" step2ButtonText="Enable Healthcheck" :confirmWithText="false" :confirmWithPassword="false" isHighlightedButton> </x-modal-confirmation> @else <x-forms.button canGate="update" :canResource="$resource" wire:click="toggleHealthcheck">Disable Healthcheck</x-forms.button> @endif </div> <div class="mt-1 pb-4">Define how your resource's health should be checked.</div> <div class="flex flex-col gap-4"> @if ($customHealthcheckFound) <x-callout type="warning" title="Caution"> <p>A custom health check has been detected. If you enable this health check, it will disable the custom one and use this instead.</p> </x-callout> @endif <div class="flex gap-2"> <x-forms.select canGate="update" :canResource="$resource" id="healthCheckMethod" label="Method" required> <option value="GET">GET</option> <option value="POST">POST</option> </x-forms.select> <x-forms.select canGate="update" :canResource="$resource" id="healthCheckScheme" label="Scheme" required> <option value="http">http</option> <option value="https">https</option> </x-forms.select> <x-forms.input canGate="update" :canResource="$resource" id="healthCheckHost" placeholder="localhost" label="Host" required /> <x-forms.input canGate="update" :canResource="$resource" type="number" id="healthCheckPort" helper="If no port is defined, the first exposed port will be used." placeholder="80" label="Port" /> <x-forms.input canGate="update" :canResource="$resource" id="healthCheckPath" placeholder="/health" label="Path" required /> </div> <div class="flex gap-2"> <x-forms.input canGate="update" :canResource="$resource" type="number" id="healthCheckReturnCode" placeholder="200" label="Return Code" required /> <x-forms.input canGate="update" :canResource="$resource" id="healthCheckResponseText" placeholder="OK" label="Response Text" /> </div> <div class="flex gap-2"> <x-forms.input canGate="update" :canResource="$resource" min="1" type="number" id="healthCheckInterval" placeholder="30" label="Interval (s)" required /> <x-forms.input canGate="update" :canResource="$resource" type="number" id="healthCheckTimeout" placeholder="30" label="Timeout (s)" required /> <x-forms.input canGate="update" :canResource="$resource" type="number" id="healthCheckRetries" placeholder="3" label="Retries" required /> <x-forms.input canGate="update" :canResource="$resource" min=1 type="number" id="healthCheckStartPeriod" placeholder="30" label="Start Period (s)" required /> </div> </div> </form>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/resource-limits.blade.php
resources/views/livewire/project/shared/resource-limits.blade.php
<div> <form wire:submit='submit' class="flex flex-col"> <div class="flex items-center gap-2 "> <h2>Resource Limits</h2> <x-forms.button canGate="update" :canResource="$resource" type='submit'>Save</x-forms.button> </div> <div class="">Limit your container resources by CPU & memory.</div> <h3 class="pt-4">Limit CPUs</h3> <div class="flex gap-2"> <x-forms.input canGate="update" :canResource="$resource" placeholder="1.5" helper="0 means use all CPUs. Floating point number, like 0.002 or 1.5. More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/engine/reference/run/#cpu-share-constraint'>here</a>." label="Number of CPUs" id="limitsCpus" /> <x-forms.input canGate="update" :canResource="$resource" placeholder="0-2" helper="Empty means, use all CPU sets. 0-2 will use CPU 0, CPU 1 and CPU 2. More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/engine/reference/run/#cpu-share-constraint'>here</a>." label="CPU sets to use" id="limitsCpuset" /> <x-forms.input canGate="update" :canResource="$resource" placeholder="1024" helper="More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/engine/reference/run/#cpu-share-constraint'>here</a>." label="CPU Weight" id="limitsCpuShares" /> </div> <h3 class="pt-4">Limit Memory</h3> <div class="flex flex-col gap-2"> <div class="flex gap-2"> <x-forms.input canGate="update" :canResource="$resource" helper="Examples: 69b (byte) or 420k (kilobyte) or 1337m (megabyte) or 1g (gigabyte).<br>More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/compose/compose-file/05-services/#mem_reservation'>here</a>." label="Soft Memory Limit" id="limitsMemoryReservation" /> <x-forms.input canGate="update" :canResource="$resource" helper="0-100.<br>More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/compose/compose-file/05-services/#mem_swappiness'>here</a>." type="number" min="0" max="100" label="Swappiness" id="limitsMemorySwappiness" /> </div> <div class="flex gap-2"> <x-forms.input canGate="update" :canResource="$resource" helper="Examples: 69b (byte) or 420k (kilobyte) or 1337m (megabyte) or 1g (gigabyte).<br>More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/compose/compose-file/05-services/#mem_limit'>here</a>." label="Maximum Memory Limit" id="limitsMemory" /> <x-forms.input canGate="update" :canResource="$resource" helper="Examples:69b (byte) or 420k (kilobyte) or 1337m (megabyte) or 1g (gigabyte).<br>More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/compose/compose-file/05-services/#memswap_limit'>here</a>." label="Maximum Swap Limit" id="limitsMemorySwap" /> </div> </div> </form> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/webhooks.blade.php
resources/views/livewire/project/shared/webhooks.blade.php
<div class="flex flex-col gap-2"> <div class="flex items-center gap-2"> <h2>Webhooks</h2> <x-helper helper="For more details goto our <a class='underline dark:text-white' href='https://coolify.io/docs/api-reference/api/operations/deploy-by-tag-or-uuid' target='_blank'>docs</a>." /> </div> <div> <x-forms.input readonly helper="See details in our <a target='_blank' class='underline dark:text-white' href='https://coolify.io/docs/api-reference/api/operations/deploy-by-tag-or-uuid'>documentation</a>." label="Deploy Webhook (auth required)" id="deploywebhook"></x-forms.input> </div> @if ($resource->type() === 'application') <div> <h3>Manual Git Webhooks</h3> @if ($githubManualWebhook && $gitlabManualWebhook) <form wire:submit='submit' class="flex flex-col gap-2"> <div class="flex items-end gap-2"> <x-forms.input helper="Content Type in GitHub configuration could be json or form-urlencoded." readonly label="GitHub" id="githubManualWebhook"></x-forms.input> @can('update', $resource) <x-forms.input type="password" helper="Need to set a secret to be able to use this webhook. It should match with the secret in GitHub." label="GitHub Webhook Secret" id="githubManualWebhookSecret"></x-forms.input> @else <x-forms.input disabled type="password" helper="Need to set a secret to be able to use this webhook. It should match with the secret in GitHub." label="GitHub Webhook Secret" id="githubManualWebhookSecret"></x-forms.input> @endcan </div> <a target="_blank" class="flex hover:no-underline" href="{{ $resource?->gitWebhook }}"> <x-forms.button>Webhook Configuration on GitHub <x-external-link /> </x-forms.button> </a> <div class="flex gap-2"> <x-forms.input readonly label="GitLab" id="gitlabManualWebhook"></x-forms.input> @can('update', $resource) <x-forms.input type="password" helper="Need to set a secret to be able to use this webhook. It should match with the secret in GitLab." label="GitLab Webhook Secret" id="gitlabManualWebhookSecret"></x-forms.input> @else <x-forms.input disabled type="password" helper="Need to set a secret to be able to use this webhook. It should match with the secret in GitLab." label="GitLab Webhook Secret" id="gitlabManualWebhookSecret"></x-forms.input> @endcan </div> <div class="flex gap-2"> <x-forms.input readonly label="Bitbucket" id="bitbucketManualWebhook"></x-forms.input> @can('update', $resource) <x-forms.input type="password" helper="Need to set a secret to be able to use this webhook. It should match with the secret in Bitbucket." label="Bitbucket Webhook Secret" id="bitbucketManualWebhookSecret"></x-forms.input> @else <x-forms.input disabled type="password" helper="Need to set a secret to be able to use this webhook. It should match with the secret in Bitbucket." label="Bitbucket Webhook Secret" id="bitbucketManualWebhookSecret"></x-forms.input> @endcan </div> <div class="flex gap-2"> <x-forms.input readonly label="Gitea" id="giteaManualWebhook"></x-forms.input> @can('update', $resource) <x-forms.input type="password" helper="Need to set a secret to be able to use this webhook. It should match with the secret in Gitea." label="Gitea Webhook Secret" id="giteaManualWebhookSecret"></x-forms.input> @else <x-forms.input disabled type="password" helper="Need to set a secret to be able to use this webhook. It should match with the secret in Gitea." label="Gitea Webhook Secret" id="giteaManualWebhookSecret"></x-forms.input> @endcan </div> @can('update', $resource) <x-forms.button type="submit">Save</x-forms.button> @endcan </form> @else <x-callout type="info" title="Information"> You are using an official Git App. You do not need manual webhooks. </x-callout> @endif </div> @endif </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/configuration-checker.blade.php
resources/views/livewire/project/shared/configuration-checker.blade.php
<div> @if ($isConfigurationChanged && !is_null($resource->config_hash) && !$resource->isExited()) <x-popup-small> <x-slot:title> The latest configuration has not been applied </x-slot:title> <x-slot:icon> <svg class="hidden w-10 h-10 dark:text-warning lg:block" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="M240.26 186.1L152.81 34.23a28.74 28.74 0 0 0-49.62 0L15.74 186.1a27.45 27.45 0 0 0 0 27.71A28.31 28.31 0 0 0 40.55 228h174.9a28.31 28.31 0 0 0 24.79-14.19a27.45 27.45 0 0 0 .02-27.71m-20.8 15.7a4.46 4.46 0 0 1-4 2.2H40.55a4.46 4.46 0 0 1-4-2.2a3.56 3.56 0 0 1 0-3.73L124 46.2a4.77 4.77 0 0 1 8 0l87.44 151.87a3.56 3.56 0 0 1 .02 3.73M116 136v-32a12 12 0 0 1 24 0v32a12 12 0 0 1-24 0m28 40a16 16 0 1 1-16-16a16 16 0 0 1 16 16" /> </svg> </x-slot:icon> <x-slot:description> <span>Please redeploy to apply the new configuration.</span> </x-slot:description> <x-slot:button-text @click="disableSponsorship()"> Disable This Popup </x-slot:button-text> </x-popup-small> @endif </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/tags.blade.php
resources/views/livewire/project/shared/tags.blade.php
<div> <h2>Tags</h2> @can('update', $resource) <form wire:submit='submit' class="flex items-end gap-2"> <div class="w-64"> <x-forms.input label="Create new or assign existing tags" helper="You add more at once with space separated list: web api something<br><br>If the tag does not exists, it will be created." wire:model="newTags" placeholder="example: prod app1 user" /> </div> <x-forms.button type="submit">Add</x-forms.button> </form> @else <x-callout type="warning" title="Access Restricted" class="mt-4"> You don't have permission to manage tags. Contact your team administrator to request access. </x-callout> @endcan @if (data_get($this->resource, 'tags') && count(data_get($this->resource, 'tags')) > 0) <h3 class="pt-4">Assigned Tags</h3> <div class="flex flex-wrap gap-2 pt-4"> @foreach (data_get($this->resource, 'tags') as $tagId => $tag) <div class="button"> {{ $tag->name }} @can('update', $resource) <svg wire:click="deleteTag('{{ $tag->id }}')" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="inline-block w-3 h-3 rounded-sm cursor-pointer stroke-current hover:bg-red-500"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"> </path> </svg> @endcan </div> @endforeach </div> @endif @can('update', $resource) @if (count($filteredTags) > 0) <h3 class="pt-4">Existing Tags</h3> <div>Click to add quickly</div> <div class="flex flex-wrap gap-2 pt-4"> @foreach ($filteredTags as $tag) <x-forms.button wire:click="addTag('{{ $tag->id }}','{{ $tag->name }}')"> {{ $tag->name }}</x-forms.button> @endforeach </div> @endif @endcan </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/get-logs.blade.php
resources/views/livewire/project/shared/get-logs.blade.php
<div class="{{ $collapsible ? 'my-4 border dark:border-coolgray-200 border-neutral-200' : '' }}"> <div id="screen" x-data="{ collapsible: {{ $collapsible ? 'true' : 'false' }}, expanded: {{ ($expandByDefault || !$collapsible) ? 'true' : 'false' }}, logsLoaded: false, fullscreen: false, alwaysScroll: false, rafId: null, scrollDebounce: null, colorLogs: localStorage.getItem('coolify-color-logs') === 'true', searchQuery: '', matchCount: 0, containerName: '{{ $container ?? "logs" }}', makeFullscreen() { this.fullscreen = !this.fullscreen; if (this.fullscreen === false) { this.alwaysScroll = false; if (this.rafId) { cancelAnimationFrame(this.rafId); this.rafId = null; } } }, handleKeyDown(event) { if (event.key === 'Escape' && this.fullscreen) { this.makeFullscreen(); } }, isScrolling: false, scrollToBottom() { const logsContainer = document.getElementById('logsContainer'); if (logsContainer) { this.isScrolling = true; logsContainer.scrollTop = logsContainer.scrollHeight; setTimeout(() => { this.isScrolling = false; }, 50); } }, scheduleScroll() { if (!this.alwaysScroll) return; this.rafId = requestAnimationFrame(() => { this.scrollToBottom(); if (this.alwaysScroll) { setTimeout(() => this.scheduleScroll(), 250); } }); }, toggleScroll() { this.alwaysScroll = !this.alwaysScroll; if (this.alwaysScroll) { this.scheduleScroll(); } else { if (this.rafId) { cancelAnimationFrame(this.rafId); this.rafId = null; } } }, handleScroll(event) { if (!this.alwaysScroll || this.isScrolling) return; clearTimeout(this.scrollDebounce); this.scrollDebounce = setTimeout(() => { const el = event.target; const distanceFromBottom = el.scrollHeight - el.scrollTop - el.clientHeight; if (distanceFromBottom > 100) { this.alwaysScroll = false; if (this.rafId) { cancelAnimationFrame(this.rafId); this.rafId = null; } } }, 150); }, toggleColorLogs() { this.colorLogs = !this.colorLogs; localStorage.setItem('coolify-color-logs', this.colorLogs); this.applyColorLogs(); }, applyColorLogs() { const logs = document.getElementById('logs'); if (!logs) return; const lines = logs.querySelectorAll('[data-log-line]'); lines.forEach(line => { const content = (line.dataset.logContent || '').toLowerCase(); line.classList.remove('log-error', 'log-warning', 'log-debug', 'log-info'); if (!this.colorLogs) return; if (/\b(error|err|failed|failure|exception|fatal|panic|critical)\b/.test(content)) { line.classList.add('log-error'); } else if (/\b(warn|warning|wrn|caution)\b/.test(content)) { line.classList.add('log-warning'); } else if (/\b(debug|dbg|trace|verbose)\b/.test(content)) { line.classList.add('log-debug'); } else if (/\b(info|inf|notice)\b/.test(content)) { line.classList.add('log-info'); } }); }, hasActiveLogSelection() { const selection = window.getSelection(); if (!selection || selection.isCollapsed || !selection.toString().trim()) { return false; } const logsContainer = document.getElementById('logs'); if (!logsContainer) return false; const range = selection.getRangeAt(0); return logsContainer.contains(range.commonAncestorContainer); }, decodeHtml(text) { const doc = new DOMParser().parseFromString(text, 'text/html'); return doc.documentElement.textContent; }, applySearch() { const logs = document.getElementById('logs'); if (!logs) return; const lines = logs.querySelectorAll('[data-log-line]'); const query = this.searchQuery.trim().toLowerCase(); let count = 0; lines.forEach(line => { const content = (line.dataset.logContent || '').toLowerCase(); const textSpan = line.querySelector('[data-line-text]'); const matches = !query || content.includes(query); line.classList.toggle('hidden', !matches); if (matches && query) count++; // Update highlighting if (textSpan) { const originalText = this.decodeHtml(textSpan.dataset.lineText || ''); if (!query) { textSpan.textContent = originalText; } else if (matches) { this.highlightText(textSpan, originalText, query); } } }); this.matchCount = query ? count : 0; }, highlightText(el, text, query) { // Skip if user has selection if (this.hasActiveLogSelection()) return; el.textContent = ''; const lowerText = text.toLowerCase(); let lastIndex = 0; let index = lowerText.indexOf(query, lastIndex); while (index !== -1) { if (index > lastIndex) { el.appendChild(document.createTextNode(text.substring(lastIndex, index))); } const mark = document.createElement('span'); mark.className = 'log-highlight'; mark.textContent = text.substring(index, index + query.length); el.appendChild(mark); lastIndex = index + query.length; index = lowerText.indexOf(query, lastIndex); } if (lastIndex < text.length) { el.appendChild(document.createTextNode(text.substring(lastIndex))); } }, downloadLogs() { const logs = document.getElementById('logs'); if (!logs) return; const visibleLines = logs.querySelectorAll('[data-log-line]:not(.hidden)'); let content = ''; visibleLines.forEach(line => { const text = line.textContent.replace(/\s+/g, ' ').trim(); if (text) { content += text + String.fromCharCode(10); } }); const blob = new Blob([content], { type: 'text/plain' }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; const timestamp = new Date().toISOString().slice(0,19).replace(/[T:]/g, '-'); a.download = this.containerName + '-logs-' + timestamp + '.txt'; a.click(); URL.revokeObjectURL(url); }, init() { if (this.expanded) { this.$wire.getLogs(true); this.logsLoaded = true; } // Watch search query changes this.$watch('searchQuery', () => { this.applySearch(); }); // Handler for applying colors and search after DOM changes const applyAfterUpdate = () => { this.$nextTick(() => { this.applyColorLogs(); this.applySearch(); if (this.alwaysScroll) { this.scrollToBottom(); } }); }; // Apply colors after Livewire updates (existing content) Livewire.hook('morph.updated', ({ el }) => { if (el.id === 'logs') { applyAfterUpdate(); } }); // Apply colors after Livewire adds new content (initial load) Livewire.hook('morph.added', ({ el }) => { if (el.id === 'logs') { applyAfterUpdate(); } }); } }" @keydown.window="handleKeyDown($event)"> @if ($collapsible) <div class="flex gap-2 items-center p-4 cursor-pointer select-none hover:bg-gray-50 dark:hover:bg-coolgray-200" x-on:click="expanded = !expanded; if (expanded && !logsLoaded) { $wire.getLogs(true); logsLoaded = true; }"> <svg class="w-4 h-4 transition-transform" :class="expanded ? 'rotate-90' : ''" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z" /> </svg> @if ($displayName) <h4>{{ $displayName }}</h4> @elseif ($resource?->type() === 'application' || str($resource?->type())->startsWith('standalone')) <h4>{{ $container }}</h4> @else <h4>{{ str($container)->beforeLast('-')->headline() }}</h4> @endif @if ($pull_request) <div>({{ $pull_request }})</div> @endif @if ($streamLogs) <x-loading wire:poll.2000ms='getLogs(true)' /> @endif </div> @endif <div x-show="expanded" {{ $collapsible ? 'x-collapse' : '' }} :class="fullscreen ? 'fullscreen flex flex-col !overflow-visible' : 'relative w-full {{ $collapsible ? 'py-4' : '' }} mx-auto'" :style="fullscreen ? 'max-height: none !important; height: 100% !important;' : ''"> <div class="flex flex-col dark:text-white dark:border-coolgray-300 border-neutral-200" :class="fullscreen ? 'h-full w-full bg-white dark:bg-coolgray-100' : 'bg-white dark:bg-coolgray-100 border border-solid rounded-sm'"> <div class="flex items-center justify-between gap-2 px-4 py-2 border-b dark:border-coolgray-300 border-neutral-200 shrink-0"> <div class="flex items-center gap-2"> <form wire:submit="getLogs(true)" class="relative flex items-center"> <span class="absolute left-2 top-1/2 -translate-y-1/2 text-xs text-gray-400 pointer-events-none">Lines:</span> <input type="number" wire:model="numberOfLines" placeholder="100" min="1" title="Number of Lines" {{ $streamLogs ? 'readonly' : '' }} class="input input-sm w-32 pl-11 text-center dark:bg-coolgray-300" /> </form> <span x-show="searchQuery.trim()" x-text="matchCount + ' matches'" class="text-xs text-gray-500 dark:text-gray-400 whitespace-nowrap"></span> </div> <div class="flex items-center gap-2"> <div class="relative"> <svg class="absolute left-2 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400" 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="m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z" /> </svg> <input type="text" x-model.debounce.300ms="searchQuery" placeholder="Find in logs" class="input input-sm w-48 pl-8 pr-8 dark:bg-coolgray-300" /> <button x-show="searchQuery" x-on:click="searchQuery = ''" type="button" class="absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 dark:hover:text-gray-200"> <svg class="w-4 h-4" 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="M6 18 18 6M6 6l12 12" /> </svg> </button> </div> <button wire:click="getLogs(true)" title="Refresh Logs" {{ $streamLogs ? 'disabled' : '' }} class="p-1 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 disabled:opacity-50"> <svg class="w-4 h-4" 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="M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99" /> </svg> </button> <button wire:click="toggleStreamLogs" title="{{ $streamLogs ? 'Stop Streaming' : 'Stream Logs' }}" class="p-1 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 {{ $streamLogs ? '!text-warning' : '' }}"> @if ($streamLogs) {{-- Pause icon --}} <svg class="w-4 h-4" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"> <path d="M6 4h4v16H6V4zm8 0h4v16h-4V4z" /> </svg> @else {{-- Play icon --}} <svg class="w-4 h-4" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"> <path d="M8 5v14l11-7L8 5z" /> </svg> @endif </button> <button x-on:click=" $wire.copyLogs().then(logs => { navigator.clipboard.writeText(logs); Livewire.dispatch('success', ['Logs copied to clipboard.']); }); " title="Copy Logs" class="p-1 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"> <svg class="w-4 h-4" 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 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75" /> </svg> </button> <button x-on:click="downloadLogs()" title="Download Logs" class="p-1 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"> <svg class="w-4 h-4" 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="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3" /> </svg> </button> <button wire:click="toggleTimestamps" title="Toggle Timestamps" class="p-1 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 {{ $showTimeStamps ? '!text-warning' : '' }}"> <svg class="w-4 h-4" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="2"> <path stroke-linecap="round" stroke-linejoin="round" d="M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" /> </svg> </button> <button title="Toggle Log Colors" x-on:click="toggleColorLogs" :class="colorLogs ? '!text-warning' : ''" class="p-1 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"> <svg class="w-4 h-4" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="1.5"> <path stroke-linecap="round" stroke-linejoin="round" d="M9.53 16.122a3 3 0 0 0-5.78 1.128 2.25 2.25 0 0 1-2.4 2.245 4.5 4.5 0 0 0 8.4-2.245c0-.399-.078-.78-.22-1.128Zm0 0a15.998 15.998 0 0 0 3.388-1.62m-5.043-.025a15.994 15.994 0 0 1 1.622-3.395m3.42 3.42a15.995 15.995 0 0 0 4.764-4.648l3.876-5.814a1.151 1.151 0 0 0-1.597-1.597L14.146 6.32a15.996 15.996 0 0 0-4.649 4.763m3.42 3.42a6.776 6.776 0 0 0-3.42-3.42" /> </svg> </button> <button title="Follow Logs" :class="alwaysScroll ? '!text-warning' : ''" x-on:click="toggleScroll" class="p-1 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"> <svg class="w-4 h-4" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 5v14m4-4l-4 4m-4-4l4 4" /> </svg> </button> <button title="Fullscreen" x-show="!fullscreen" x-on:click="makeFullscreen" class="p-1 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"> <svg class="w-4 h-4" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <g fill="none"> <path d="M24 0v24H0V0h24ZM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018Zm.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022Zm-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01l-.184-.092Z" /> <path fill="currentColor" d="M9.793 12.793a1 1 0 0 1 1.497 1.32l-.083.094L6.414 19H9a1 1 0 0 1 .117 1.993L9 21H4a1 1 0 0 1-.993-.883L3 20v-5a1 1 0 0 1 1.993-.117L5 15v2.586l4.793-4.793ZM20 3a1 1 0 0 1 .993.883L21 4v5a1 1 0 0 1-1.993.117L19 9V6.414l-4.793 4.793a1 1 0 0 1-1.497-1.32l.083-.094L17.586 5H15a1 1 0 0 1-.117-1.993L15 3h5Z" /> </g> </svg> </button> <button title="Minimize" x-show="fullscreen" x-on:click="makeFullscreen" class="p-1 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"> <svg class="w-4 h-4" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 14h4m0 0v4m0-4l-6 6m14-10h-4m0 0V6m0 4l6-6" /> </svg> </button> </div> </div> <div id="logsContainer" @scroll="handleScroll" class="flex overflow-y-auto overflow-x-hidden flex-col px-4 py-2 w-full min-w-0 scrollbar" :class="fullscreen ? 'flex-1' : 'max-h-[40rem]'"> @if ($outputs) @php // Limit rendered lines to prevent memory exhaustion $maxDisplayLines = 2000; $allLines = collect(explode("\n", $outputs))->filter(fn($line) => trim($line) !== ''); $totalLines = $allLines->count(); $hasMoreLines = $totalLines > $maxDisplayLines; $displayLines = $hasMoreLines ? $allLines->slice(-$maxDisplayLines)->values() : $allLines; @endphp <div id="logs" class="font-mono max-w-full cursor-default"> @if ($hasMoreLines) <div class="text-center py-2 text-gray-500 dark:text-gray-400 text-sm border-b dark:border-coolgray-300 mb-2"> Showing last {{ number_format($maxDisplayLines) }} of {{ number_format($totalLines) }} lines </div> @endif <div x-show="searchQuery.trim() && matchCount === 0" class="text-gray-500 dark:text-gray-400 py-2"> No matches found. </div> @foreach ($displayLines as $index => $line) @php // Parse timestamp from log line (ISO 8601 format: 2025-12-04T11:48:39.136764033Z) $timestamp = ''; $logContent = $line; if (preg_match('/^(\d{4})-(\d{2})-(\d{2})T(\d{2}:\d{2}:\d{2})(?:\.(\d+))?Z?\s*(.*)$/', $line, $matches)) { $year = $matches[1]; $month = $matches[2]; $day = $matches[3]; $time = $matches[4]; $microseconds = isset($matches[5]) ? substr($matches[5], 0, 6) : '000000'; $logContent = $matches[6]; // Convert month number to abbreviated name $monthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; $monthName = $monthNames[(int)$month - 1] ?? $month; // Format for display: 2025-Dec-04 09:44:58 $timestamp = "{$year}-{$monthName}-{$day} {$time}"; // Include microseconds in key for uniqueness $lineKey = "{$timestamp}.{$microseconds}"; } @endphp <div wire:key="{{ $lineKey ?? 'line-' . $index }}" data-log-line data-log-content="{{ $line }}" class="flex gap-2 log-line"> @if ($timestamp && $showTimeStamps) <span class="shrink-0 text-gray-500">{{ $timestamp }}</span> @endif <span data-line-text="{{ $logContent }}" class="whitespace-pre-wrap break-all">{{ $logContent }}</span> </div> @endforeach </div> @else <pre id="logs" class="font-mono whitespace-pre-wrap break-all max-w-full text-neutral-400">No logs yet.</pre> @endif </div> </div> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/upload-config.blade.php
resources/views/livewire/project/shared/upload-config.blade.php
<form wire:submit="uploadConfig" class="flex flex-col gap-2 w-full"> <x-forms.textarea id="config" monacoEditorLanguage="json" useMonacoEditor /> <x-forms.button type="submit"> Upload </x-forms.button> </form>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/metrics.blade.php
resources/views/livewire/project/shared/metrics.blade.php
<div> <div class="flex items-center gap-2"> <h2>Metrics</h2> </div> <div class="pb-4">Basic metrics for your application container.</div> <div> @if ($resource->getMorphClass() === 'App\Models\Application' && $resource->build_pack === 'dockercompose') <div class="alert alert-warning">Metrics are not available for Docker Compose applications yet!</div> @elseif(!$resource->destination->server->isMetricsEnabled()) <div class="alert alert-warning pb-1">Metrics are only available for servers with Sentinel & Metrics enabled!</div> <div>Go to <a class="underline dark:text-white" href="{{ route('server.show', $resource->destination->server->uuid) }}/sentinel" {{ wireNavigate() }}>Server settings</a> to enable it.</div> @else @if (!str($resource->status)->contains('running')) <div class="alert alert-warning">Metrics are only available when the application container is running!</div> @else <div> <x-forms.select label="Interval" wire:change="setInterval" id="interval"> <option value="5">5 minutes (live)</option> <option value="10">10 minutes (live)</option> <option value="30">30 minutes</option> <option value="60">1 hour</option> <option value="720">12 hours</option> <option value="10080">1 week</option> <option value="43200">30 days</option> </x-forms.select> <div @if ($poll) wire:poll.5000ms='pollData' @endif x-init="$wire.loadData()" class="pt-5"> <h4>CPU Usage</h4> <div wire:ignore id="{!! $chartId !!}-cpu"></div> <script> checkTheme(); const optionsServerCpu = { stroke: { curve: 'straight', width: 2, }, chart: { height: '150px', id: '{!! $chartId !!}-cpu', type: 'area', toolbar: { show: true, tools: { download: false, selection: false, zoom: true, zoomin: false, zoomout: false, pan: false, reset: true }, }, animations: { enabled: true, }, }, fill: { type: 'gradient', }, dataLabels: { enabled: false, offsetY: -10, style: { colors: ['#FCD452'], }, background: { enabled: false, } }, grid: { show: true, borderColor: '', }, colors: [cpuColor], xaxis: { type: 'datetime', }, series: [{ name: "CPU %", data: [] }], noData: { text: 'Loading...', style: { color: textColor, } }, tooltip: { enabled: true, marker: { show: false, }, custom: function({ series, seriesIndex, dataPointIndex, w }) { const value = series[seriesIndex][dataPointIndex]; const timestamp = w.globals.seriesX[seriesIndex][dataPointIndex]; const date = new Date(timestamp); const timeString = String(date.getUTCHours()).padStart(2, '0') + ':' + String(date.getUTCMinutes()).padStart(2, '0') + ':' + String(date.getUTCSeconds()).padStart(2, '0') + ', ' + date.getUTCFullYear() + '-' + String(date.getUTCMonth() + 1).padStart(2, '0') + '-' + String(date.getUTCDate()).padStart(2, '0'); return '<div class="apexcharts-tooltip-custom">' + '<div class="apexcharts-tooltip-custom-value">CPU: <span class="apexcharts-tooltip-value-bold">' + value + '%</span></div>' + '<div class="apexcharts-tooltip-custom-title">' + timeString + '</div>' + '</div>'; } }, legend: { show: false } } const serverCpuChart = new ApexCharts(document.getElementById(`{!! $chartId !!}-cpu`), optionsServerCpu); serverCpuChart.render(); Livewire.on('refreshChartData-{!! $chartId !!}-cpu', (chartData) => { checkTheme(); serverCpuChart.updateOptions({ series: [{ data: chartData[0].seriesData, }], colors: [cpuColor], xaxis: { type: 'datetime', labels: { show: true, style: { colors: textColor, } } }, yaxis: { show: true, labels: { show: true, style: { colors: textColor, }, formatter: function(value) { return Math.round(value) + ' %'; } } }, noData: { text: 'Loading...', style: { color: textColor, } } }); }); </script> <h4>Memory Usage</h4> <div wire:ignore id="{!! $chartId !!}-memory"></div> <script> checkTheme(); const optionsServerMemory = { stroke: { curve: 'straight', width: 2, }, chart: { height: '150px', id: '{!! $chartId !!}-memory', type: 'area', toolbar: { show: true, tools: { download: false, selection: false, zoom: true, zoomin: false, zoomout: false, pan: false, reset: true }, }, animations: { enabled: true, }, }, fill: { type: 'gradient', }, dataLabels: { enabled: false, offsetY: -10, style: { colors: ['#FCD452'], }, background: { enabled: false, } }, grid: { show: true, borderColor: '', }, colors: [ramColor], xaxis: { type: 'datetime', labels: { show: true, style: { colors: textColor, } } }, series: [{ name: "Memory (MB)", data: [] }], noData: { text: 'Loading...', style: { color: textColor, } }, tooltip: { enabled: true, marker: { show: false, }, custom: function({ series, seriesIndex, dataPointIndex, w }) { const value = series[seriesIndex][dataPointIndex]; const timestamp = w.globals.seriesX[seriesIndex][dataPointIndex]; const date = new Date(timestamp); const timeString = String(date.getUTCHours()).padStart(2, '0') + ':' + String(date.getUTCMinutes()).padStart(2, '0') + ':' + String(date.getUTCSeconds()).padStart(2, '0') + ', ' + date.getUTCFullYear() + '-' + String(date.getUTCMonth() + 1).padStart(2, '0') + '-' + String(date.getUTCDate()).padStart(2, '0'); return '<div class="apexcharts-tooltip-custom">' + '<div class="apexcharts-tooltip-custom-value">Memory: <span class="apexcharts-tooltip-value-bold">' + value + ' MB</span></div>' + '<div class="apexcharts-tooltip-custom-title">' + timeString + '</div>' + '</div>'; } }, legend: { show: false } } const serverMemoryChart = new ApexCharts(document.getElementById(`{!! $chartId !!}-memory`), optionsServerMemory); serverMemoryChart.render(); Livewire.on('refreshChartData-{!! $chartId !!}-memory', (chartData) => { checkTheme(); serverMemoryChart.updateOptions({ series: [{ data: chartData[0].seriesData, }], colors: [ramColor], xaxis: { type: 'datetime', labels: { show: true, style: { colors: textColor, } } }, yaxis: { min: 0, show: true, labels: { show: true, style: { colors: textColor, }, formatter: function(value) { return Math.round(value) + ' MB'; } } }, noData: { text: 'Loading...', style: { color: textColor, } } }); }); </script> </div> </div> @endif @endif </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/danger.blade.php
resources/views/livewire/project/shared/danger.blade.php
<div> <h2>Danger Zone</h2> <div class="">Woah. I hope you know what are you doing.</div> <h4 class="pt-4">Delete Resource</h4> <div class="pb-4">This will stop your containers, delete all related data, etc. Beware! There is no coming back! </div> @if ($canDelete) <x-modal-confirmation title="Confirm Resource Deletion?" buttonTitle="Delete" isErrorButton submitAction="delete" buttonTitle="Delete" :checkboxes="$checkboxes" :actions="['Permanently delete all containers of this resource.']" confirmationText="{{ $resourceName }}" confirmationLabel="Please confirm the execution of the actions by entering the Resource Name below" shortConfirmationLabel="Resource Name" /> @else <x-callout type="danger" title="Insufficient Permissions"> You don't have permission to delete this resource. Contact your team administrator for access. </x-callout> @endif </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/logs.blade.php
resources/views/livewire/project/shared/logs.blade.php
<div> <x-slot:title> {{ data_get_str($resource, 'name')->limit(10) }} > Logs | Coolify </x-slot> <livewire:project.shared.configuration-checker :resource="$resource" /> @if ($type === 'application') <h1>Logs</h1> <livewire:project.application.heading :application="$resource" /> <div> <h2>Logs</h2> @if (str($status)->contains('exited')) <div class="pt-4">The resource is not running.</div> @else <div class="pt-2" wire:loading wire:target="loadAllContainers"> Loading containers... </div> <div x-init="$wire.loadAllContainers()" wire:loading.remove wire:target="loadAllContainers"> @forelse ($servers as $server) <div class="py-2"> <h4>Server: {{ $server->name }}</h4> @if ($server->isFunctional()) @if (isset($serverContainers[$server->id]) && count($serverContainers[$server->id]) > 0) @php $totalContainers = collect($serverContainers)->flatten(1)->count(); @endphp @foreach ($serverContainers[$server->id] as $container) <livewire:project.shared.get-logs wire:key="{{ data_get($container, 'ID', uniqid()) }}" :server="$server" :resource="$resource" :container="data_get($container, 'Names')" :expandByDefault="$totalContainers === 1" /> @endforeach @else <div class="pt-2">No containers are running on server: {{ $server->name }}</div> @endif @else <div class="pt-2">Server {{ $server->name }} is not functional.</div> @endif </div> @empty <div>No functional server found for the application.</div> @endforelse </div> @endif </div> @elseif ($type === 'database') <h1>Logs</h1> <livewire:project.database.heading :database="$resource" /> <div> <h2>Logs</h2> @if (str($status)->contains('exited')) <div class="pt-4">The resource is not running.</div> @else <div class="pt-2" wire:loading wire:target="loadAllContainers"> Loading containers... </div> <div x-init="$wire.loadAllContainers()" wire:loading.remove wire:target="loadAllContainers"> @forelse ($containers as $container) @if (data_get($servers, '0')) <livewire:project.shared.get-logs wire:key='{{ $container }}' :server="data_get($servers, '0')" :resource="$resource" :container="$container" :expandByDefault="count($containers) === 1" /> @else <div>No functional server found for the database.</div> @endif @empty <div class="pt-2">No containers are running.</div> @endforelse </div> @endif </div> @elseif ($type === 'service') <livewire:project.service.heading :service="$resource" :parameters="$parameters" :query="$query" title="Logs" /> <div> <h2>Logs</h2> @if (str($status)->contains('exited')) <div class="pt-4">The resource is not running.</div> @else <div class="pt-2" wire:loading wire:target="loadAllContainers"> Loading containers... </div> <div x-init="$wire.loadAllContainers()" wire:loading.remove wire:target="loadAllContainers"> @forelse ($containers as $container) @if (data_get($servers, '0')) <livewire:project.shared.get-logs wire:key='{{ $container }}' :server="data_get($servers, '0')" :resource="$resource" :container="$container" :expandByDefault="count($containers) === 1" /> @else <div>No functional server found for the service.</div> @endif @empty <div class="pt-2">No containers are running.</div> @endforelse </div> @endif </div> @endif </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/resource-operations.blade.php
resources/views/livewire/project/shared/resource-operations.blade.php
<div> <h2>Resource Operations</h2> <div>You can easily make different kind of operations on this resource.</div> <div x-data="{ selectedCloneServer: null, selectedCloneDestination: null, selectedMoveProject: null, selectedMoveEnvironment: null, currentProjectId: {{ $resource->environment->project->id }}, currentEnvironmentId: {{ $resource->environment->id }}, servers: @js( $servers->map( fn($s) => [ 'id' => $s->id, 'name' => $s->name, 'ip' => $s->ip, 'destinations' => $s->destinations()->map( fn($d) => [ 'id' => $d->id, 'name' => $d->name, 'server_id' => $s->id, ], ), ], ), ), projects: @js( $projects->map( fn($p) => [ 'id' => $p->id, 'name' => $p->name, 'environments' => $p->environments->map( fn($e) => [ 'id' => $e->id, 'name' => $e->name, 'project_id' => $p->id, ], ), ], ), ), get availableDestinations() { if (!this.selectedCloneServer) return []; const server = this.servers.find(s => s.id == this.selectedCloneServer); return server ? server.destinations : []; }, get availableEnvironments() { if (!this.selectedMoveProject) return []; const project = this.projects.find(p => p.id == this.selectedMoveProject); if (!project) return []; // Filter out the current environment if we're in the same project return project.environments.filter(e => { if (project.id === this.currentProjectId) { return e.id !== this.currentEnvironmentId; } return true; }); }, get isCurrentProjectSelected() { return this.selectedMoveProject == this.currentProjectId; } }"> <h3 class="pt-4">Clone Resource</h3> <div class="pb-2">Duplicate this resource to another server or network destination.</div> @can('update', $resource) <div class="space-y-4 pb-8"> <div class="flex flex-col lg:flex-row gap-4"> <div class="flex-1"> <label class="block text-sm font-medium mb-2">Select Server</label> <select x-model="selectedCloneServer" @change="selectedCloneDestination = null" class="select"> <option value="">Choose a server...</option> <template x-for="server in servers" :key="server.id"> <option :value="server.id" x-text="`${server.name} (${server.ip})`"></option> </template> </select> </div> <div class="flex-1"> <label class="block text-sm font-medium mb-2">Select Network Destination</label> <select x-model="selectedCloneDestination" :disabled="!selectedCloneServer" class="select"> <option value="">Choose a destination...</option> <template x-for="destination in availableDestinations" :key="destination.id"> <option :value="destination.id" x-text="destination.name"></option> </template> </select> </div> </div> <div x-show="selectedCloneDestination" x-cloak> <x-forms.button isHighlighted @click="$wire.cloneTo(selectedCloneDestination)" class="mt-2"> Clone Resource </x-forms.button> <div class="mt-2 text-sm text-neutral-600 dark:text-neutral-400"> All configurations will be duplicated to the selected destination. The running application won't be touched. </div> </div> </div> @else <x-callout type="warning" title="Access Restricted"> You don't have permission to clone resources. Contact your team administrator to request access. </x-callout> @endcan <h3 class="pt-4">Move Resource</h3> <div class="pb-4">Transfer this resource between projects and environments.</div> @can('update', $resource) @if ($projects->count() > 0) <div class="space-y-4"> <div class="flex flex-col lg:flex-row gap-4"> <div class="flex-1"> <label class="block text-sm font-medium mb-2">Select Target Project</label> <select x-model="selectedMoveProject" @change="selectedMoveEnvironment = null" class="select"> <option value="">Choose a project...</option> <template x-for="project in projects" :key="project.id"> <option :value="project.id" x-text="project.name + (project.id === currentProjectId ? ' (current)' : '')"> </option> </template> </select> </div> <div class="flex-1"> <label class="block text-sm font-medium mb-2 flex gap-2 items-center">Select Target Environment <x-helper helper="Current environment is excluded." /> </label> <select x-model="selectedMoveEnvironment" :disabled="!selectedMoveProject || availableEnvironments.length === 0" class="select"> <option value="" x-text="availableEnvironments.length === 0 && isCurrentProjectSelected ? 'No other environments available' : 'Choose an environment...'"> </option> <template x-for="environment in availableEnvironments" :key="environment.id"> <option :value="environment.id" x-text="environment.name + (environment.id === currentEnvironmentId ? ' (current)' : '')"> </option> </template> </select> </div> </div> <div x-show="selectedMoveEnvironment" x-cloak> <x-forms.button isHighlighted @click="$wire.moveTo(selectedMoveEnvironment)" class="mt-2"> Move Resource </x-forms.button> <div class="mt-2 text-sm text-neutral-600 dark:text-neutral-400"> All configurations will be moved to the selected environment. The running application won't be touched. </div> </div> </div> @else <div class="text-neutral-600 dark:text-neutral-400">No other projects available for moving this resource. </div> @endif @else <x-callout type="warning" title="Access Restricted"> You don't have permission to move resources between projects or environments. Contact your team administrator to request access. </x-callout> @endcan </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/destination.blade.php
resources/views/livewire/project/shared/destination.blade.php
<div> <h2>Servers</h2> <div class="">Server related configurations.</div> <div class="grid grid-cols-1 gap-4 py-4"> <div class="flex flex-col gap-2"> <h3>Primary Server</h3> <div class="relative flex flex-col bg-white border cursor-default dark:text-white box-without-bg dark:bg-coolgray-100 dark:border-coolgray-300"> @if (str($resource->realStatus())->startsWith('running')) <div title="{{ $resource->realStatus() }}" class="absolute bg-success -top-1 -left-1 badge "> </div> @elseif (str($resource->realStatus())->startsWith('exited')) <div title="{{ $resource->realStatus() }}" class="absolute bg-error -top-1 -left-1 badge "> </div> @endif <div class="box-title"> Server: {{ data_get($resource, 'destination.server.name') }} </div> <div class="box-description"> Network: {{ data_get($resource, 'destination.network') }} </div> </div> @if ($resource?->additional_networks?->count() > 0) <div class="flex gap-2"> <x-forms.button wire:click="redeploy('{{ data_get($resource, 'destination.id') }}','{{ data_get($resource, 'destination.server.id') }}')">Deploy</x-forms.button> @if (str($resource->realStatus())->startsWith('running')) <x-forms.button isError wire:click="stop('{{ data_get($resource, 'destination.server.id') }}')">Stop</x-forms.button> @endif </div> @endif </div> @if ($resource?->additional_networks?->count() > 0 && data_get($resource, 'build_pack') !== 'dockercompose') <h3>Additional Server(s)</h3> @foreach ($resource->additional_networks as $destination) <div class="flex flex-col gap-2" wire:key="destination-{{ $destination->id }}"> <div class="relative flex flex-col bg-white border cursor-default dark:text-white box-without-bg dark:bg-coolgray-100 dark:border-coolgray-300"> @if (str(data_get($destination, 'pivot.status'))->startsWith('running')) <div title="{{ data_get($destination, 'pivot.status') }}" class="absolute bg-success -top-1 -left-1 badge "></div> @elseif (str(data_get($destination, 'pivot.status'))->startsWith('exited')) <div title="{{ data_get($destination, 'pivot.status') }}" class="absolute bg-error -top-1 -left-1 badge "></div> @endif <div> <div class="box-title"> Server: {{ data_get($destination, 'server.name') }} </div> <div class="box-description"> Network: {{ data_get($destination, 'network') }} </div> </div> </div> <div class="flex gap-2"> <x-forms.button wire:click="redeploy('{{ data_get($destination, 'id') }}','{{ data_get($destination, 'server.id') }}')">Deploy</x-forms.button> <x-forms.button wire:click="promote('{{ data_get($destination, 'id') }}','{{ data_get($destination, 'server.id') }}')">Promote to Primary </x-forms.button> @if (data_get_str($destination, 'pivot.status')->startsWith('running')) <x-forms.button isError wire:click="stop('{{ data_get($destination, 'server.id') }}')">Stop</x-forms.button> @endif <x-modal-confirmation title="Confirm removing application from server?" isErrorButton buttonTitle="Remove from server" submitAction="removeServer({{ data_get($destination, 'id') }},{{ data_get($destination, 'server.id') }})" :actions="[ 'This will stop the all running applications on this server and remove it as a deployment destination.', ]" confirmationText="{{ data_get($destination, 'server.name') }}" confirmationLabel="Please confirm the execution of the actions by entering the Server Name below" shortConfirmationLabel="Server Name" /> </div> </div> @endforeach @endif </div> @if ($resource->getMorphClass() === 'App\Models\Application' && data_get($resource, 'build_pack') !== 'dockercompose') <div class="flex flex-col gap-2"> @if ($resource->persistentStorages()->count() > 0) <h3>Add another server</h3> <x-callout type="warning" title="Cannot add additional servers"> This application has persistent storage volumes configured. Applications with persistent storage cannot be deployed to multiple servers as the storage would not be accessible across different servers. </x-callout> @elseif (count($networks) > 0) <h3>Add another server</h3> <div class="grid grid-cols-1 gap-4"> @foreach ($networks as $network) <div wire:click="addServer('{{ $network->id }}','{{ data_get($network, 'server.id') }}')" class="relative flex flex-col dark:text-white coolbox group"> <div> <div class="box-title"> Server: {{ data_get($network, 'server.name') }} </div> <div class="box-description"> Network: {{ data_get($network, 'name') }} </div> </div> </div> @endforeach </div> @else <div>No additional servers available to attach.</div> @endif </div> @endif </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/execute-container-command.blade.php
resources/views/livewire/project/shared/execute-container-command.blade.php
<div> <x-slot:title> {{ data_get_str($resource, 'name')->limit(10) }} > Commands | Coolify </x-slot> @if ($type === 'application') <livewire:project.shared.configuration-checker :resource="$resource" /> <h1>Terminal</h1> <livewire:project.application.heading :application="$resource" /> @elseif ($type === 'database') <livewire:project.shared.configuration-checker :resource="$resource" /> <h1>Terminal</h1> <livewire:project.database.heading :database="$resource" /> @elseif ($type === 'service') <livewire:project.shared.configuration-checker :resource="$resource" /> <livewire:project.service.heading :service="$resource" :parameters="$parameters" title="Terminal" /> @endif @if ($type === 'application' || $type === 'database' || $type === 'service') <h2 class="pb-4">Terminal</h2> @if (count($containers) === 0) <div>No containers are running or terminal access is disabled on this server.</div> @else <form class="w-96 min-w-fit flex gap-2 items-end" wire:submit="$dispatchSelf('connectToContainer')" x-data="{ autoConnected: false }" x-init="if ({{ count($containers) }} === 1 && !autoConnected) { autoConnected = true; $nextTick(() => $wire.dispatchSelf('connectToContainer')); }"> <x-forms.select label="Container" id="container" required wire:model.live="selected_container"> @foreach ($containers as $container) @if ($loop->first) <option disabled value="default">Select a container</option> @endif <option value="{{ data_get($container, 'container.Names') }}"> {{ data_get($container, 'container.Names') }} ({{ data_get($container, 'server.name') }}) </option> @endforeach </x-forms.select> <x-forms.button :disabled="$isConnecting" type="submit">{{ $isConnecting ? 'Connecting...' : 'Connect' }}</x-forms.button> </form> <div class="mx-auto w-full"> <livewire:project.shared.terminal /> </div> @endif @endif @if ($type === 'server') <livewire:server.navbar :server="$servers->first()" /> @if ($servers->first()->isTerminalEnabled() && $servers->first()->isFunctional()) <form class="w-full flex gap-2 items-start" wire:submit="$dispatchSelf('connectToServer')" x-data="{ autoConnected: false }" x-on:terminal-websocket-ready.window="if (!autoConnected) { autoConnected = true; $wire.dispatchSelf('connectToServer'); }"> <h2 class="pb-4">Terminal</h2> <x-forms.button :disabled="$isConnecting" type="submit">{{ $isConnecting ? 'Connecting...' : 'Connect' }}</x-forms.button> </form> <div class="mx-auto w-full"> <livewire:project.shared.terminal /> </div> @else <div>Server is not functional or terminal access is disabled.</div> @endif @endif </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/terminal.blade.php
resources/views/livewire/project/shared/terminal.blade.php
<div id="terminal-container" x-data="terminalData()"> @if (!$hasShell) <div class="flex pt-4 items-center justify-center w-full py-4 mx-auto"> <div class="p-4 w-full rounded-sm border dark:bg-coolgray-100 dark:border-coolgray-300"> <div class="flex flex-col items-center justify-center space-y-4"> <svg class="w-12 h-12 text-red-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" /> </svg> <div class="text-center"> <h3 class="text-lg font-medium">Terminal Not Available</h3> <p class="mt-2 text-sm text-neutral-300">No shell (bash/sh) is available in this container. Please ensure either bash or sh is installed to use the terminal.</p> </div> </div> </div> </div> @endif <div x-ref="terminalWrapper" :class="fullscreen ? 'fullscreen !bg-black' : 'relative w-full h-full py-4 mx-auto max-h-[510px]'"> <!-- Terminal container --> <div id="terminal" wire:ignore :class="fullscreen ? 'px-2 py-1 h-full bg-black' : 'px-2 py-1 rounded-sm bg-black'" x-show="terminalActive"> </div> <button title="Minimize" x-show="fullscreen" class="fixed bg-black/40 top-4 right-6 text-white" x-on:click="makeFullscreen"><svg class="w-5 h-5 text-gray-500 hover:text-white bg-black/80" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 14h4m0 0v4m0-4l-6 6m14-10h-4m0 0V6m0 4l6-6" /> </svg></button> <button title="Fullscreen" x-show="!fullscreen && terminalActive" class="absolute right-5 top-6 text-white " x-on:click="makeFullscreen"> <svg class="w-5 h-5 text-gray-500 hover:text-white bg-black/80" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <g fill="none"> <path d="M24 0v24H0V0h24ZM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018Zm.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022Zm-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01l-.184-.092Z" /> <path fill="currentColor" d="M9.793 12.793a1 1 0 0 1 1.497 1.32l-.083.094L6.414 19H9a1 1 0 0 1 .117 1.993L9 21H4a1 1 0 0 1-.993-.883L3 20v-5a1 1 0 0 1 1.993-.117L5 15v2.586l4.793-4.793ZM20 3a1 1 0 0 1 .993.883L21 4v5a1 1 0 0 1-1.993.117L19 9V6.414l-4.793 4.793a1 1 0 0 1-1.497-1.32l.083-.094L17.586 5H15a1 1 0 0 1-.117-1.993L15 3h5Z" /> </g> </svg></button> </div> @script <script> // expose terminal config to the terminal.js file window.terminalConfig = { protocol: "{{ config('constants.terminal.protocol') }}", host: "{{ config('constants.terminal.host') }}", port: "{{ config('constants.terminal.port') }}" } </script> @endscript </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/environment-variable/add.blade.php
resources/views/livewire/project/shared/environment-variable/add.blade.php
<form class="flex flex-col w-full gap-2 rounded-sm" wire:submit='submit'> <x-forms.input placeholder="NODE_ENV" id="key" label="Name" required /> @if ($is_multiline) <x-forms.textarea id="value" label="Value" required /> @else <x-forms.env-var-input placeholder="production" id="value" label="Value" required :availableVars="$shared ? [] : $this->availableSharedVariables" :projectUuid="data_get($parameters, 'project_uuid')" :environmentUuid="data_get($parameters, 'environment_uuid')" /> @endif @if (!$shared && !$is_multiline) <div class="text-xs text-neutral-500 dark:text-neutral-400 -mt-1"> Tip: Type <span class="font-mono dark:text-warning text-coollabs">{{</span> to reference a shared environment variable </div> @endif @if (!$shared) <x-forms.checkbox id="is_buildtime" helper="Make this variable available during Docker build process. Useful for build secrets and dependencies." label="Available at Buildtime" /> <x-environment-variable-warning :problematic-variables="$problematicVariables" /> <x-forms.checkbox id="is_runtime" helper="Make this variable available in the running container at runtime." label="Available at Runtime" /> <x-forms.checkbox id="is_literal" helper="This means that when you use $VARIABLES in a value, it should be interpreted as the actual characters '$VARIABLES' and not as the value of a variable named VARIABLE.<br><br>Useful if you have $ sign in your value and there are some characters after it, but you would not like to interpolate it from another value. In this case, you should set this to true." label="Is Literal?" /> @endif <x-forms.checkbox id="is_multiline" label="Is Multiline?" /> <x-forms.button type="submit" @click="slideOverOpen=false"> Save </x-forms.button> </form>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/environment-variable/all.blade.php
resources/views/livewire/project/shared/environment-variable/all.blade.php
<div class="flex flex-col gap-4"> <div> <div class="flex items-center gap-2"> <h2>Environment Variables</h2> @can('manageEnvironment', $resource) <div class="flex flex-col items-center"> <x-modal-input buttonTitle="+ Add" title="New Environment Variable" :closeOutside="false"> <livewire:project.shared.environment-variable.add /> </x-modal-input> </div> <x-forms.button wire:click='switch'>{{ $view === 'normal' ? 'Developer view' : 'Normal view' }}</x-forms.button> @endcan </div> <div>Environment variables (secrets) for this resource. </div> @if ($resourceClass === 'App\Models\Application') <div class="flex flex-col gap-2 pt-2"> @if (data_get($resource, 'build_pack') !== 'dockercompose') <div class="w-64"> @can('manageEnvironment', $resource) <x-forms.checkbox id="is_env_sorting_enabled" label="Sort alphabetically" helper="Turn this off if one environment is dependent on another. It will be sorted by creation order (like you pasted them or in the order you created them)." instantSave></x-forms.checkbox> @else <x-forms.checkbox id="is_env_sorting_enabled" label="Sort alphabetically" helper="Turn this off if one environment is dependent on another. It will be sorted by creation order (like you pasted them or in the order you created them)." disabled></x-forms.checkbox> @endcan </div> @endif <div class="w-64"> @can('manageEnvironment', $resource) <x-forms.checkbox id="use_build_secrets" label="Use Docker Build Secrets" helper="Enable Docker BuildKit secrets for enhanced security during builds. Secrets won't be exposed in the final image. Requires Docker 18.09+ with BuildKit support." instantSave></x-forms.checkbox> @else <x-forms.checkbox id="use_build_secrets" label="Use Docker Build Secrets" helper="Enable Docker BuildKit secrets for enhanced security during builds. Secrets won't be exposed in the final image. Requires Docker 18.09+ with BuildKit support." disabled></x-forms.checkbox> @endcan </div> </div> @endif @if ($resource->type() === 'service' || $resource?->build_pack === 'dockercompose') <div class="flex items-center gap-1 pt-4 dark:text-warning text-coollabs"> <svg class="hidden w-4 h-4 dark:text-warning lg:block" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="M240.26 186.1L152.81 34.23a28.74 28.74 0 0 0-49.62 0L15.74 186.1a27.45 27.45 0 0 0 0 27.71A28.31 28.31 0 0 0 40.55 228h174.9a28.31 28.31 0 0 0 24.79-14.19a27.45 27.45 0 0 0 .02-27.71m-20.8 15.7a4.46 4.46 0 0 1-4 2.2H40.55a4.46 4.46 0 0 1-4-2.2a3.56 3.56 0 0 1 0-3.73L124 46.2a4.77 4.77 0 0 1 8 0l87.44 151.87a3.56 3.56 0 0 1 .02 3.73M116 136v-32a12 12 0 0 1 24 0v32a12 12 0 0 1-24 0m28 40a16 16 0 1 1-16-16a16 16 0 0 1 16 16"> </path> </svg> Hardcoded variables are not shown here. </div> {{-- <div class="pb-4 dark:text-warning text-coollabs">If you would like to add a variable, you must add it to your compose file.</div> --}} @endif </div> @if ($view === 'normal') <div> <h3>Production Environment Variables</h3> <div>Environment (secrets) variables for Production.</div> </div> @forelse ($this->environmentVariables as $env) <livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}" :env="$env" :type="$resource->type()" /> @empty <div>No environment variables found.</div> @endforelse @if ($resource->type() === 'application' && $resource->environment_variables_preview->count() > 0 && $showPreview) <div> <h3>Preview Deployments Environment Variables</h3> <div>Environment (secrets) variables for Preview Deployments.</div> </div> @foreach ($this->environmentVariablesPreview as $env) <livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}" :env="$env" :type="$resource->type()" /> @endforeach @endif @else <form wire:submit.prevent='submit' class="flex flex-col gap-2"> @can('manageEnvironment', $resource) <x-forms.textarea rows="10" class="whitespace-pre-wrap" id="variables" wire:model="variables" label="Production Environment Variables"></x-forms.textarea> @if ($showPreview) <x-forms.textarea rows="10" class="whitespace-pre-wrap" label="Preview Deployments Environment Variables" id="variablesPreview" wire:model="variablesPreview"></x-forms.textarea> @endif <x-forms.button type="submit" class="btn btn-primary">Save All Environment Variables</x-forms.button> @else <x-forms.textarea rows="10" class="whitespace-pre-wrap" id="variables" wire:model="variables" label="Production Environment Variables" disabled></x-forms.textarea> @if ($showPreview) <x-forms.textarea rows="10" class="whitespace-pre-wrap" label="Preview Deployments Environment Variables" id="variablesPreview" wire:model="variablesPreview" disabled></x-forms.textarea> @endif @endcan </form> @endif </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/environment-variable/show.blade.php
resources/views/livewire/project/shared/environment-variable/show.blade.php
<div> <form wire:submit='submit' @class([ 'flex flex-col items-center gap-4 p-4 bg-white border lg:items-start dark:bg-base', 'border-error' => $is_really_required, 'dark:border-coolgray-300 border-neutral-200' => !$is_really_required, ])> @if ($isLocked) <div class="flex flex-1 w-full gap-2"> <x-forms.input disabled id="key" /> <svg class="icon my-1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"> <path d="M5 13a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-6z" /> <path d="M11 16a1 1 0 1 0 2 0a1 1 0 0 0-2 0m-3-5V7a4 4 0 1 1 8 0v4" /> </g> </svg> @can('delete', $this->env) <x-modal-confirmation title="Confirm Environment Variable Deletion?" isErrorButton buttonTitle="Delete" submitAction="delete" :actions="['The selected environment variable will be permanently deleted.']" confirmationText="{{ $env->key }}" confirmationLabel="Please confirm the execution of the actions by entering the Environment Variable Name below" shortConfirmationLabel="Environment Variable Name" :confirmWithPassword="false" step2ButtonText="Permanently Delete" /> @endcan </div> @can('update', $this->env) <div class="flex flex-col w-full gap-3"> <div class="flex flex-wrap w-full items-center gap-4"> @if (!$is_redis_credential) @if ($type === 'service') <x-forms.checkbox instantSave id="is_buildtime" helper="Make this variable available during Docker build process. Useful for build secrets and dependencies." label="Available at Buildtime" /> <x-forms.checkbox instantSave id="is_runtime" helper="Make this variable available in the running container at runtime." label="Available at Runtime" /> <x-forms.checkbox instantSave id="is_multiline" label="Is Multiline?" /> <x-forms.checkbox instantSave id="is_literal" helper="This means that when you use $VARIABLES in a value, it should be interpreted as the actual characters '$VARIABLES' and not as the value of a variable named VARIABLE.<br><br>Useful if you have $ sign in your value and there are some characters after it, but you would not like to interpolate it from another value. In this case, you should set this to true." label="Is Literal?" /> @else @if ($isSharedVariable) <x-forms.checkbox instantSave id="is_multiline" label="Is Multiline?" /> @else @if (!$env->is_nixpacks) <x-forms.checkbox instantSave id="is_buildtime" helper="Make this variable available during Docker build process. Useful for build secrets and dependencies." label="Available at Buildtime" /> @endif <x-forms.checkbox instantSave id="is_runtime" helper="Make this variable available in the running container at runtime." label="Available at Runtime" /> @if (!$env->is_nixpacks) <x-forms.checkbox instantSave id="is_multiline" label="Is Multiline?" /> @if ($is_multiline === false) <x-forms.checkbox instantSave id="is_literal" helper="This means that when you use $VARIABLES in a value, it should be interpreted as the actual characters '$VARIABLES' and not as the value of a variable named VARIABLE.<br><br>Useful if you have $ sign in your value and there are some characters after it, but you would not like to interpolate it from another value. In this case, you should set this to true." label="Is Literal?" /> @endif @endif @endif @endif @endif </div> </div> @else <div class="flex flex-col w-full gap-3"> <div class="flex flex-wrap w-full items-center gap-4"> @if (!$is_redis_credential) @if ($type === 'service') <x-forms.checkbox disabled id="is_buildtime" helper="Make this variable available during Docker build process. Useful for build secrets and dependencies." label="Available at Buildtime" /> <x-forms.checkbox disabled id="is_runtime" helper="Make this variable available in the running container at runtime." label="Available at Runtime" /> <x-forms.checkbox disabled id="is_multiline" label="Is Multiline?" /> <x-forms.checkbox disabled id="is_literal" helper="This means that when you use $VARIABLES in a value, it should be interpreted as the actual characters '$VARIABLES' and not as the value of a variable named VARIABLE.<br><br>Useful if you have $ sign in your value and there are some characters after it, but you would not like to interpolate it from another value. In this case, you should set this to true." label="Is Literal?" /> @else @if ($isSharedVariable) <x-forms.checkbox disabled id="is_multiline" label="Is Multiline?" /> @else @if (!$env->is_nixpacks) <x-forms.checkbox disabled id="is_buildtime" helper="Make this variable available during Docker build process. Useful for build secrets and dependencies." label="Available at Buildtime" /> @endif <x-forms.checkbox disabled id="is_runtime" helper="Make this variable available in the running container at runtime." label="Available at Runtime" /> <x-forms.checkbox disabled id="is_multiline" label="Is Multiline?" /> @if ($is_multiline === false) <x-forms.checkbox disabled id="is_literal" helper="This means that when you use $VARIABLES in a value, it should be interpreted as the actual characters '$VARIABLES' and not as the value of a variable named VARIABLE.<br><br>Useful if you have $ sign in your value and there are some characters after it, but you would not like to interpolate it from another value. In this case, you should set this to true." label="Is Literal?" /> @endif @endif @endif @endif </div> </div> @endcan @else @can('update', $this->env) @if ($isDisabled) <div class="flex flex-col w-full gap-2 lg:flex-row"> <x-forms.input disabled id="key" /> <x-forms.env-var-input disabled type="password" id="value" :availableVars="$this->availableSharedVariables" :projectUuid="data_get($parameters, 'project_uuid')" :environmentUuid="data_get($parameters, 'environment_uuid')" /> @if ($is_shared) <x-forms.input disabled type="password" id="real_value" /> @endif </div> @else <div class="flex flex-col w-full gap-2 lg:flex-row"> @if ($is_multiline) <x-forms.input :required="$is_redis_credential" isMultiline="{{ $is_multiline }}" id="key" /> <x-forms.textarea :required="$is_redis_credential" type="password" id="value" /> @else <x-forms.input :disabled="$is_redis_credential" :required="$is_redis_credential" id="key" /> <x-forms.env-var-input :required="$is_redis_credential" type="password" id="value" :availableVars="$this->availableSharedVariables" :projectUuid="data_get($parameters, 'project_uuid')" :environmentUuid="data_get($parameters, 'environment_uuid')" /> @endif @if ($is_shared) <x-forms.input :disabled="$is_redis_credential" :required="$is_redis_credential" disabled type="password" id="real_value" /> @endif </div> @endif @else <div class="flex flex-col w-full gap-2 lg:flex-row"> <x-forms.input disabled id="key" /> <x-forms.env-var-input disabled type="password" id="value" :availableVars="$this->availableSharedVariables" :projectUuid="data_get($parameters, 'project_uuid')" :environmentUuid="data_get($parameters, 'environment_uuid')" /> @if ($is_shared) <x-forms.input disabled type="password" id="real_value" /> @endif </div> @endcan @can('update', $this->env) <div class="flex flex-col w-full gap-3"> <div class="flex flex-wrap w-full items-center gap-4"> @if (!$is_redis_credential) @if ($type === 'service') <x-forms.checkbox instantSave id="is_buildtime" helper="Make this variable available during Docker build process. Useful for build secrets and dependencies." label="Available at Buildtime" /> <x-forms.checkbox instantSave id="is_runtime" helper="Make this variable available in the running container at runtime." label="Available at Runtime" /> <x-forms.checkbox instantSave id="is_multiline" label="Is Multiline?" /> <x-forms.checkbox instantSave id="is_literal" helper="This means that when you use $VARIABLES in a value, it should be interpreted as the actual characters '$VARIABLES' and not as the value of a variable named VARIABLE.<br><br>Useful if you have $ sign in your value and there are some characters after it, but you would not like to interpolate it from another value. In this case, you should set this to true." label="Is Literal?" /> @else @if ($isSharedVariable) <x-forms.checkbox instantSave id="is_multiline" label="Is Multiline?" /> @else @if (!$env->is_nixpacks) <x-forms.checkbox instantSave id="is_buildtime" helper="Make this variable available during Docker build process. Useful for build secrets and dependencies." label="Available at Buildtime" /> @endif <x-forms.checkbox instantSave id="is_runtime" helper="Make this variable available in the running container at runtime." label="Available at Runtime" /> @if (!$env->is_nixpacks) <x-forms.checkbox instantSave id="is_multiline" label="Is Multiline?" /> @if ($is_multiline === false) <x-forms.checkbox instantSave id="is_literal" helper="This means that when you use $VARIABLES in a value, it should be interpreted as the actual characters '$VARIABLES' and not as the value of a variable named VARIABLE.<br><br>Useful if you have $ sign in your value and there are some characters after it, but you would not like to interpolate it from another value. In this case, you should set this to true." label="Is Literal?" /> @endif @endif @endif @endif @endif </div> <x-environment-variable-warning :problematic-variables="$problematicVariables" /> <div class="flex w-full justify-end gap-2"> @if ($isDisabled) <x-forms.button disabled type="submit">Update</x-forms.button> <x-forms.button wire:click='lock'>Lock</x-forms.button> <x-modal-confirmation title="Confirm Environment Variable Deletion?" isErrorButton buttonTitle="Delete" submitAction="delete" :actions="['The selected environment variable will be permanently deleted.']" confirmationText="{{ $key }}" buttonFullWidth="true" confirmationLabel="Please confirm the execution of the actions by entering the Environment Variable Name below" shortConfirmationLabel="Environment Variable Name" :confirmWithPassword="false" step2ButtonText="Permanently Delete" /> @else <x-forms.button type="submit">Update</x-forms.button> <x-forms.button wire:click='lock'>Lock</x-forms.button> <x-modal-confirmation title="Confirm Environment Variable Deletion?" isErrorButton buttonTitle="Delete" submitAction="delete" :actions="['The selected environment variable will be permanently deleted.']" confirmationText="{{ $key }}" buttonFullWidth="true" confirmationLabel="Please confirm the execution of the actions by entering the Environment Variable Name below" shortConfirmationLabel="Environment Variable Name" :confirmWithPassword="false" step2ButtonText="Permanently Delete" /> @endif </div> </div> @else <div class="flex flex-col w-full gap-3"> <div class="flex flex-wrap w-full items-center gap-4"> @if (!$is_redis_credential) @if ($type === 'service') <x-forms.checkbox disabled id="is_buildtime" helper="Make this variable available during Docker build process. Useful for build secrets and dependencies." label="Available at Buildtime" /> <x-forms.checkbox disabled id="is_runtime" helper="Make this variable available in the running container at runtime." label="Available at Runtime" /> <x-forms.checkbox disabled id="is_multiline" label="Is Multiline?" /> <x-forms.checkbox disabled id="is_literal" helper="This means that when you use $VARIABLES in a value, it should be interpreted as the actual characters '$VARIABLES' and not as the value of a variable named VARIABLE.<br><br>Useful if you have $ sign in your value and there are some characters after it, but you would not like to interpolate it from another value. In this case, you should set this to true." label="Is Literal?" /> @else @if ($isSharedVariable) <x-forms.checkbox disabled id="is_multiline" label="Is Multiline?" /> @else @if (!$env->is_nixpacks) <x-forms.checkbox disabled id="is_buildtime" helper="Make this variable available during Docker build process. Useful for build secrets and dependencies." label="Available at Buildtime" /> @endif <x-forms.checkbox disabled id="is_runtime" helper="Make this variable available in the running container at runtime." label="Available at Runtime" /> <x-forms.checkbox disabled id="is_multiline" label="Is Multiline?" /> @if ($is_multiline === false) <x-forms.checkbox disabled id="is_literal" helper="This means that when you use $VARIABLES in a value, it should be interpreted as the actual characters '$VARIABLES' and not as the value of a variable named VARIABLE.<br><br>Useful if you have $ sign in your value and there are some characters after it, but you would not like to interpolate it from another value. In this case, you should set this to true." label="Is Literal?" /> @endif @endif @endif @endif </div> </div> @endcan @endif </form> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/scheduled-task/add.blade.php
resources/views/livewire/project/shared/scheduled-task/add.blade.php
<form class="flex flex-col w-full gap-2 rounded-sm" wire:submit='submit'> <x-forms.input placeholder="Run cron" id="name" label="Name" /> <x-forms.input placeholder="php artisan schedule:run" id="command" label="Command" /> <x-forms.input placeholder="0 0 * * * or daily" helper="You can use every_minute, hourly, daily, weekly, monthly, yearly or a cron expression." id="frequency" label="Frequency" /> <x-forms.input type="number" placeholder="300" id="timeout" helper="Maximum execution time in seconds (60-36000). Default is 300 seconds (5 minutes)." label="Timeout (seconds)" /> @if ($type === 'application') @if ($containerNames->count() > 1) <x-forms.select id="container" label="Container name"> @foreach ($containerNames as $containerName) <option value="{{ $containerName }}">{{ $containerName }}</option> @endforeach </x-forms.select> @else <x-forms.input placeholder="php" id="container" helper="You can leave this empty if your resource only has one container." label="Container name" /> @endif @elseif ($type === 'service') <x-forms.select id="container" label="Container name"> @foreach ($containerNames as $containerName) <option value="{{ $containerName }}">{{ $containerName }}</option> @endforeach </x-forms.select> @endif <x-forms.button @click="modalOpen=false" type="submit"> Save </x-forms.button> </form>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/scheduled-task/all.blade.php
resources/views/livewire/project/shared/scheduled-task/all.blade.php
<div> <div class="flex gap-2"> <h2>Scheduled Tasks</h2> @can('update', $resource) <x-modal-input buttonTitle="+ Add" title="New Scheduled Task" :closeOutside="false"> @if ($resource->type() == 'application') <livewire:project.shared.scheduled-task.add :type="$resource->type()" :id="$resource->id" :containerNames="$containerNames" /> @elseif ($resource->type() == 'service') <livewire:project.shared.scheduled-task.add :type="$resource->type()" :id="$resource->id" :containerNames="$containerNames" /> @endif </x-modal-input> @endcan </div> <div class="flex flex-col flex-wrap gap-2 pt-4"> @forelse($resource->scheduled_tasks as $task) @if ($resource->type() == 'application') <a class="coolbox" {{ wireNavigate() }} href="{{ route('project.application.scheduled-tasks', [...$parameters, 'task_uuid' => $task->uuid]) }}"> <span class="flex flex-col"> <span class="text-lg font-bold">{{ $task->name }} @if ($task->container) <span class="text-xs font-normal">({{ $task->container }})</span> @endif </span> <span>Frequency: {{ $task->frequency }}</span> <span>Last run: {{ data_get($task->latest_log, 'status', 'No runs yet') }} </span> </span> </a> @elseif ($resource->type() == 'service') <a class="coolbox" {{ wireNavigate() }} href="{{ route('project.service.scheduled-tasks', [...$parameters, 'task_uuid' => $task->uuid]) }}"> <span class="flex flex-col"> <span class="text-lg font-bold">{{ $task->name }} @if ($task->container) <span class="text-xs font-normal">({{ $task->container }})</span> @endif </span> <span>Frequency: {{ $task->frequency }}</span> <span>Last run: {{ data_get($task->latest_log, 'status', 'No runs yet') }} </span> </span> </a> @endif @empty <div>No scheduled tasks configured.</div> @endforelse </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/scheduled-task/show.blade.php
resources/views/livewire/project/shared/scheduled-task/show.blade.php
<div> <x-slot:title> {{ data_get_str($resource, 'name')->limit(10) }} > Scheduled Tasks | Coolify </x-slot> @if ($type === 'application') <h1>Scheduled Task</h1> <livewire:project.application.heading :application="$resource" /> @elseif ($type === 'service') <livewire:project.service.heading :service="$resource" :parameters="$parameters" /> @endif <form wire:submit="submit" class="w-full"> <div class="flex flex-col gap-2 pb-2"> <div class="flex gap-2 items-end"> <h2>Scheduled Task</h2> <x-forms.button type="submit"> Save </x-forms.button> @if ($resource->isRunning()) <x-forms.button type="button" wire:click="executeNow"> Execute Now </x-forms.button> @endif <x-modal-confirmation title="Confirm Scheduled Task Deletion?" isErrorButton buttonTitle="Delete" submitAction="delete({{ $task->id }})" :actions="['The selected scheduled task will be permanently deleted.']" confirmationText="{{ $task->name }}" confirmationLabel="Please confirm the execution of the actions by entering the Scheduled Task Name below" shortConfirmationLabel="Scheduled Task Name" :confirmWithPassword="false" step2ButtonText="Permanently Delete" /> </div> <div class="w-48"> <x-forms.checkbox instantSave id="isEnabled" label="Enabled" /> </div> <div class="flex gap-2 w-full"> <x-forms.input placeholder="Name" id="name" label="Name" required /> <x-forms.input placeholder="php artisan schedule:run" id="command" label="Command" required /> <x-forms.input placeholder="0 0 * * * or daily" id="frequency" label="Frequency" required /> <x-forms.input type="number" placeholder="300" id="timeout" helper="Maximum execution time in seconds (60-36000)." label="Timeout (seconds)" required /> @if ($type === 'application') <x-forms.input placeholder="php" helper="You can leave this empty if your resource only has one container." id="container" label="Container name" /> @elseif ($type === 'service') <x-forms.input placeholder="php" helper="You can leave this empty if your resource only has one service in your stack. Otherwise use the stack name, without the random generated ID. So if you have a mysql service in your stack, use mysql." id="container" label="Service name" /> @endif </div> </form> <div class="pt-4"> <h3 class="py-4">Recent executions <span class="text-xs text-neutral-500">(click to check output)</span></h3> <livewire:project.shared.scheduled-task.executions :taskId="$task->id" /> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/scheduled-task/executions.blade.php
resources/views/livewire/project/shared/scheduled-task/executions.blade.php
<div class="flex flex-col gap-2" wire:poll.5000ms="refreshExecutions" x-data="{ init() { let interval; $wire.$watch('isPollingActive', value => { if (value) { interval = setInterval(() => { $wire.polling(); }, 1000); } else { if (interval) clearInterval(interval); } }); } }"> @forelse($executions as $execution) <a wire:click="selectTask({{ data_get($execution, 'id') }})" @class([ 'relative flex flex-col border-l-2 transition-colors p-4 cursor-pointer bg-white hover:bg-gray-100 dark:bg-coolgray-100 dark:hover:bg-coolgray-200 text-black dark:text-white', 'bg-gray-200 dark:bg-coolgray-200' => data_get($execution, 'id') == $selectedKey, 'border-blue-500/50 border-dashed' => data_get($execution, 'status') === 'running', 'border-error' => data_get($execution, 'status') === 'failed', 'border-success' => data_get($execution, 'status') === 'success', ])> @if (data_get($execution, 'status') === 'running') <div class="absolute top-2 right-2"> <x-loading /> </div> @endif <div class="flex items-center gap-2 mb-2"> <span @class([ 'px-3 py-1 rounded-md text-xs font-medium tracking-wide shadow-xs', 'bg-blue-100/80 text-blue-700 dark:bg-blue-500/20 dark:text-blue-300 dark:shadow-blue-900/5' => data_get($execution, 'status') === 'running', 'bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-200 dark:shadow-red-900/5' => data_get($execution, 'status') === 'failed', 'bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-200 dark:shadow-green-900/5' => data_get($execution, 'status') === 'success', ])> @php $statusText = match(data_get($execution, 'status')) { 'success' => 'Success', 'running' => 'In Progress', 'failed' => 'Failed', default => ucfirst(data_get($execution, 'status')) }; @endphp {{ $statusText }} </span> </div> <div class="text-gray-600 dark:text-gray-400 text-sm"> Started: {{ formatDateInServerTimezone(data_get($execution, 'created_at', now()), data_get($task, 'application.destination.server') ?? data_get($task, 'service.destination.server')) }} @if(data_get($execution, 'status') !== 'running') <br>Ended: {{ formatDateInServerTimezone(data_get($execution, 'finished_at'), data_get($task, 'application.destination.server') ?? data_get($task, 'service.destination.server')) }} <br>Duration: {{ calculateDuration(data_get($execution, 'created_at'), data_get($execution, 'finished_at')) }} <br>Finished {{ \Carbon\Carbon::parse(data_get($execution, 'finished_at'))->diffForHumans() }} @endif </div> </a> @if (strlen($execution->message) > 0) <x-forms.button wire:click.prevent="downloadLogs({{ data_get($execution, 'id') }})"> Download Logs </x-forms.button> @endif @if (data_get($execution, 'id') == $selectedKey) <div class="p-4 mb-2 bg-gray-100 dark:bg-coolgray-200 rounded-sm"> @if (data_get($execution, 'status') === 'running') <div class="flex items-center gap-2 mb-2"> <span>Task is running...</span> <x-loading class="w-4 h-4" /> </div> @endif @if ($this->logLines->isNotEmpty()) <div> <div class="max-h-[600px] overflow-y-auto border border-gray-200 dark:border-coolgray-300 rounded p-4 bg-gray-50 dark:bg-coolgray-100 scrollbar"> <pre class="whitespace-pre-wrap"> @foreach ($this->logLines as $line) {{ $line }} @endforeach </pre> </div> <div class="flex gap-2 mt-4"> @if ($this->hasMoreLogs()) <x-forms.button wire:click.prevent="loadMoreLogs" isHighlighted> Load More </x-forms.button> <x-forms.button wire:click.prevent="loadAllLogs"> Load All </x-forms.button> @endif </div> </div> @else <div>No output was recorded for this execution.</div> @endif </div> @endif @empty <div class="p-4 bg-gray-100 dark:bg-coolgray-100 rounded-sm">No executions found.</div> @endforelse </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/storages/all.blade.php
resources/views/livewire/project/shared/storages/all.blade.php
<div> <div class="flex flex-col gap-4"> @if ($resource->type() === 'service' || data_get($resource, 'build_pack') === 'dockercompose') <div class="w-full p-2 text-sm rounded bg-warning/10 text-warning"> Volume mounts are read-only. If you would like to add or modify a volume, you must edit your Docker Compose file and reload the compose file. </div> @endif @foreach ($resource->persistentStorages as $storage) @if ($resource->type() === 'service') <livewire:project.shared.storages.show wire:key="storage-{{ $storage->id }}" :storage="$storage" :resource="$resource" :isFirst="$storage->id === $this->firstStorageId" isService='true' /> @else <livewire:project.shared.storages.show wire:key="storage-{{ $storage->id }}" :storage="$storage" :resource="$resource" :isFirst="$storage->id === $this->firstStorageId" startedAt="{{ data_get($resource, 'started_at') }}" /> @endif @endforeach </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/project/shared/storages/show.blade.php
resources/views/livewire/project/shared/storages/show.blade.php
<div> <form wire:submit='submit' class="flex flex-col items-center gap-4 p-4 bg-white border lg:items-start dark:bg-base dark:border-coolgray-300 border-neutral-200"> @if ($isReadOnly) @if (!$storage->isServiceResource() && !$storage->isDockerComposeResource()) <div class="w-full p-2 text-sm rounded bg-warning/10 text-warning"> This volume is mounted as read-only and cannot be modified from the UI. </div> @endif @if ($isFirst) <div class="flex gap-2 items-end w-full md:flex-row flex-col"> @if ( $storage->resource_type === 'App\Models\ServiceApplication' || $storage->resource_type === 'App\Models\ServiceDatabase') <x-forms.input id="name" label="Volume Name" required readonly helper="Warning: Changing the volume name after the initial start could cause problems. Only use it when you know what are you doing." /> @else <x-forms.input id="name" label="Volume Name" required readonly helper="Warning: Changing the volume name after the initial start could cause problems. Only use it when you know what are you doing." /> @endif @if ($isService || $startedAt) <x-forms.input id="hostPath" readonly helper="Directory on the host system." label="Source Path" helper="Warning: Changing the source path after the initial start could cause problems. Only use it when you know what are you doing." /> <x-forms.input id="mountPath" label="Destination Path" helper="Directory inside the container." required readonly /> @else <x-forms.input id="hostPath" readonly helper="Directory on the host system." label="Source Path" helper="Warning: Changing the source path after the initial start could cause problems. Only use it when you know what are you doing." /> <x-forms.input id="mountPath" label="Destination Path" helper="Directory inside the container." required readonly /> @endif </div> @else <div class="flex gap-2 items-end w-full"> <x-forms.input id="name" required readonly /> <x-forms.input id="hostPath" readonly /> <x-forms.input id="mountPath" required readonly /> </div> @endif @else @can('update', $resource) @if ($isFirst) <div class="flex gap-2 items-end w-full"> <x-forms.input id="name" label="Volume Name" required /> <x-forms.input id="hostPath" helper="Directory on the host system." label="Source Path" /> <x-forms.input id="mountPath" label="Destination Path" helper="Directory inside the container." required /> </div> @else <div class="flex gap-2 items-end w-full"> <x-forms.input id="name" required /> <x-forms.input id="hostPath" /> <x-forms.input id="mountPath" required /> </div> @endif <div class="flex gap-2"> <x-forms.button type="submit"> Update </x-forms.button> <x-modal-confirmation title="Confirm persistent storage deletion?" isErrorButton buttonTitle="Delete" submitAction="delete" :actions="[ 'The selected persistent storage/volume will be permanently deleted.', 'If the persistent storage/volume is actvily used by a resource data will be lost.', ]" confirmationText="{{ $storage->name }}" confirmationLabel="Please confirm the execution of the actions by entering the Storage Name below" shortConfirmationLabel="Storage Name" /> </div> @else @if ($isFirst) <div class="flex gap-2 items-end w-full"> <x-forms.input id="name" label="Volume Name" required disabled /> <x-forms.input id="hostPath" helper="Directory on the host system." label="Source Path" disabled /> <x-forms.input id="mountPath" label="Destination Path" helper="Directory inside the container." required disabled /> </div> @else <div class="flex gap-2 items-end w-full"> <x-forms.input id="name" required disabled /> <x-forms.input id="hostPath" disabled /> <x-forms.input id="mountPath" required disabled /> </div> @endif @endcan @endif </form> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/team/invite-link.blade.php
resources/views/livewire/team/invite-link.blade.php
@can('manageInvitations', currentTeam()) <form wire:submit='viaLink' class="flex gap-2 flex-col lg:flex-row items-end"> <div class="flex flex-1 lg:w-fit w-full gap-2"> <x-forms.input id="email" type="email" label="Email" name="email" placeholder="Email" required /> <x-forms.select id="role" name="role" label="Role"> @if (auth()->user()->role() === 'owner') <option value="owner">Owner</option> @endif <option value="admin">Admin</option> <option value="member">Member</option> </x-forms.select> </div> <div class="flex gap-2 lg:w-fit w-full"> <x-forms.button type="submit">Generate Invitation Link</x-forms.button> @if (is_transactional_emails_enabled()) <x-forms.button wire:click.prevent='viaEmail'>Send Invitation via Email</x-forms.button> @endif </div> </form> @endcan
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/team/member.blade.php
resources/views/livewire/team/member.blade.php
<tr @class([ 'dark:text-white text-black dark:bg-coolblack dark:hover:bg-coolgray-100', 'dark:bg-coolgray-100 bg-neutral-200' => $member->id == Auth::id(), ])> <td class="px-5 py-4 text-sm whitespace-nowrap"> {{ $member->name }} </td> <td class="px-5 py-4 text-sm whitespace-nowrap"> {{ $member->email }} </td> <td class="px-5 py-4 text-sm whitespace-nowrap"> {{ data_get($member, 'pivot.role') }} </td> <td class="flex gap-2 px-5 py-4 text-sm whitespace-nowrap"> @can('manageMembers', currentTeam()) @if ($member->id !== Auth::id()) @if (Auth::user()->isOwner()) @if (data_get($member, 'pivot.role') === 'owner') <x-forms.button wire:click="makeAdmin">To Admin</x-forms.button> <x-forms.button wire:click="makeReadonly">To Member</x-forms.button> <x-forms.button isError wire:click="remove">Remove</x-forms.button> @endif @if (data_get($member, 'pivot.role') === 'admin') <x-forms.button wire:click="makeOwner">To Owner</x-forms.button> <x-forms.button wire:click="makeReadonly">To Member</x-forms.button> <x-forms.button isError wire:click="remove">Remove</x-forms.button> @endif @if (data_get($member, 'pivot.role') === 'member') <x-forms.button wire:click="makeOwner">To Owner</x-forms.button> <x-forms.button wire:click="makeAdmin">To Admin</x-forms.button> <x-forms.button isError wire:click="remove">Remove</x-forms.button> @endif @elseif (Auth::user()->isAdmin()) @if (data_get($member, 'pivot.role') === 'admin') <x-forms.button wire:click="makeReadonly">To Member</x-forms.button> <x-forms.button isError wire:click="remove">Remove</x-forms.button> @endif @if (data_get($member, 'pivot.role') === 'member') <x-forms.button wire:click="makeAdmin">To Admin</x-forms.button> <x-forms.button isError wire:click="remove">Remove</x-forms.button> @endif @endif @else <div>(This is you)</div> @endif @else @if ($member->id === Auth::id()) <div>(This is you)</div> @endif @endcan </td> </tr>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/team/index.blade.php
resources/views/livewire/team/index.blade.php
<div> <x-slot:title> Teams | Coolify </x-slot> <x-team.navbar /> <form class="flex flex-col" wire:submit='submit'> <h2>General</h2> <div class="subtitle"> Manage the general settings of this team. </div> <div class="flex items-end gap-2 pb-6"> <x-forms.input id="name" label="Name" required canGate="update" :canResource="$team" /> <x-forms.input id="description" label="Description" canGate="update" :canResource="$team" /> @can('update', $team) <x-forms.button type="submit"> Save </x-forms.button> @endcan </div> </form> @can('delete', $team) <div> <h2>Danger Zone</h2> <div class="pb-4">Woah. I hope you know what are you doing.</div> <h4 class="pb-4">Delete Team</h4> @if (session('currentTeam.id') === 0) <div>This is the default team. You can't delete it.</div> @elseif(auth()->user()->teams()->get()->count() === 1 || auth()->user()->currentTeam()->personal_team) <div>You can't delete your last / personal team.</div> @elseif(currentTeam()->subscription) <div>Please cancel your subscription <a class="underline dark:text-white" {{ wireNavigate() }} href="{{ route('subscription.show') }}">here</a> before deleting this team.</div> @else @if (currentTeam()->isEmpty()) <div class="pb-4">This will delete your team. Beware! There is no coming back!</div> <x-modal-confirmation title="Confirm Team Deletion?" buttonTitle="Delete" isErrorButton submitAction="delete({{ currentTeam()->id }})" :actions="['The current team will be permanently deleted from Coolify and the database.']" confirmationText="{{ currentTeam()->name }}" confirmationLabel="Please confirm the execution of the actions by entering the Team Name below" shortConfirmationLabel="Team Name" :confirmWithPassword="false" step2ButtonText="Permanently Delete" /> @else <div> <div class="pb-4">You need to delete the following resources to be able to delete the team:</div> @if (currentTeam()->projects()->count() > 0) <h4 class="pb-4">Projects:</h4> <ul class="pl-8 list-disc"> @foreach (currentTeam()->projects as $resource) <li>{{ $resource->name }}</li> @endforeach </ul> @endif @if (currentTeam()->servers()->count() > 0) <h4 class="py-4">Servers:</h4> <ul class="pl-8 list-disc"> @foreach (currentTeam()->servers as $resource) <li>{{ $resource->name }}</li> @endforeach </ul> @endif @if (currentTeam()->privateKeys()->count() > 0) <h4 class="py-4">Private Keys:</h4> <ul class="pl-8 list-disc"> @foreach (currentTeam()->privateKeys as $resource) <li>{{ $resource->name }}</li> @endforeach </ul> @endif @if (currentTeam()->sources()->count() > 0) <h4 class="py-4">Sources:</h4> <ul class="pl-8 list-disc"> @foreach (currentTeam()->sources() as $resource) <li>{{ $resource->name }}</li> @endforeach </ul> @endif @endif @endif </div> @endcan </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/team/create.blade.php
resources/views/livewire/team/create.blade.php
<form class="flex flex-col w-full gap-2" wire:submit='submit'> <x-forms.input id="name" label="Name" required /> <x-forms.input id="description" label="Description" /> <x-forms.button type="submit"> Continue </x-forms.button> </form>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/team/admin-view.blade.php
resources/views/livewire/team/admin-view.blade.php
<div> <x-slot:title> Team Admin | Coolify </x-slot> <x-team.navbar /> <h2>Admin View</h2> <div class="subtitle"> Manage users of this instance. </div> <form wire:submit="submitSearch" class="flex flex-col gap-2 lg:flex-row"> <x-forms.input wire:model="search" placeholder="Search for a user" /> <x-forms.button type="submit">Search</x-forms.button> </form> <h3 class="py-4">Users</h3> <div class="grid grid-cols-1 gap-2 lg:grid-cols-2"> @forelse ($users as $user) <div wire:key="user-{{ $user->id }}" class="flex items-center justify-center gap-2 bg-white box-without-bg dark:bg-coolgray-100"> <div>{{ $user->name }}</div> <div>{{ $user->email }}</div> <div class="flex-1"></div> <div class="flex items-center justify-center gap-2 mx-4 text-xs font-bold "> <x-modal-confirmation title="Confirm User Deletion?" buttonTitle="Delete" isErrorButton submitAction="delete({{ $user->id }})" :actions="[ 'The selected user will be permanently deleted from Coolify\'s database.', 'All resources (application, databases, services, configurations, servers, private keys, tags, etc.) related to this user\'s default team will be deleted from Coolify\'s database.', ]" confirmationText="{{ $user->name }}" confirmationLabel="Please confirm the execution of the actions by entering the User Name below" shortConfirmationLabel="User Name" /> </div> </div> @empty <div>No users found other than the root.</div> @endforelse @if ($lots_of_users) <div>There are more users than shown. Please use the search bar to find the user you are looking for.</div> @endif </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/team/invitations.blade.php
resources/views/livewire/team/invitations.blade.php
@can('manageInvitations', currentTeam()) <div> @if ($invitations->count() > 0) <h2 class="pb-2">Pending Invitations</h2> <div class="flex flex-col"> <div class="flex flex-col"> <div class="overflow-x-auto"> <div class="inline-block min-w-full"> <div class="overflow-hidden"> <table class="min-w-full"> <thead> <tr> <th class="px-5 py-3 text-xs font-medium text-left uppercase">Email </th> <th class="px-5 py-3 text-xs font-medium text-left uppercase"> Via</th> <th class="px-5 py-3 text-xs font-medium text-left uppercase">Role</th> <th class="px-5 py-3 text-xs font-medium text-left uppercase">Invitation Link </th> <th class="px-5 py-3 text-xs font-medium text-left uppercase">Actions </th> </tr> </thead> <tbody> @foreach ($invitations as $invite) <tr> <td class="px-5 py-4 text-sm whitespace-nowrap">{{ $invite->email }}</td> <td class="px-5 py-4 text-sm whitespace-nowrap">{{ $invite->via }}</td> <td class="px-5 py-4 text-sm whitespace-nowrap">{{ $invite->role }}</td> <td class="px-5 py-4 text-sm whitespace-nowrap" x-data="checkProtocol"> <template x-if="isHttps"> <div class="flex gap-2"> <x-forms.input id="null" type="password" value="{{ $invite->link }}" /> <x-forms.button x-on:click="copyToClipboard('{{ $invite->link }}')">Copy Invitation Link</x-forms.button> </div> </template> <template x-if="!isHttps"> <x-forms.input id="null" type="password" value="{{ $invite->link }}" /> </template> </td> <td class="px-5 py-4 text-sm whitespace-nowrap"> <x-forms.button wire:click.prevent='deleteInvitation({{ $invite->id }})'>Revoke Invitation </x-forms.button> </td> </tr> @endforeach </tbody> </table> </div> </div> </div> </div> </div> @endif </div> @endcan @script <script> Alpine.data('checkProtocol', () => { return { isHttps: window.location.protocol === 'https:' } }) </script> @endscript
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/team/member/index.blade.php
resources/views/livewire/team/member/index.blade.php
<div> <x-slot:title> Team Members | Coolify </x-slot> <x-team.navbar /> <h2>Members</h2> <div class="subtitle"> Manage or invite members of this team. </div> <div class="flex flex-col"> <div class="flex flex-col"> <div class="overflow-x-auto"> <div class="inline-block min-w-full"> <div class="overflow-hidden"> <table class="min-w-full"> <thead> <tr> <th class="px-5 py-3 text-xs font-medium text-left uppercase">Name </th> <th class="px-5 py-3 text-xs font-medium text-left uppercase">Email</th> <th class="px-5 py-3 text-xs font-medium text-left uppercase">Role</th> <th class="px-5 py-3 text-xs font-medium text-left uppercase">Actions</th> </tr> </thead> <tbody> @foreach (currentTeam()->members as $member) <livewire:team.member :member="$member" :wire:key="$member->id" /> @endforeach </tbody> </table> </div> </div> </div> </div> </div> @can('manageInvitations', currentTeam()) <div class="py-4"> @if (is_transactional_emails_enabled()) <h2 class="pb-4">Invite New Member</h2> @else <h2>Invite New Member</h2> @if (isInstanceAdmin()) <div class="pb-4 text-xs dark:text-warning">You need to configure (as root team) <a {{ wireNavigate() }} href="/settings/email" class="underline dark:text-warning">Transactional Emails</a> before you can invite a new member via email. </div> @endif @endif <livewire:team.invite-link /> </div> <livewire:team.invitations :invitations="$invitations" /> @endcan </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/terminal/index.blade.php
resources/views/livewire/terminal/index.blade.php
<div> <x-slot:title> Terminal | Coolify </x-slot> <h1>Terminal</h1> <div class="flex gap-2 items-end subtitle"> <div>Execute commands on your servers and containers without leaving the browser.</div> <x-helper helper="If you're having trouble connecting to your server, make sure that the port is open.<br><br><a class='underline' href='https://coolify.io/docs/knowledge-base/server/firewall/#terminal' target='_blank'>Documentation</a>"></x-helper> </div> <div x-init="$wire.loadContainers()"> @if ($isLoadingContainers) <div class="pt-1"> <x-loading text="Loading servers and containers..." /> </div> @else @if ($servers->count() > 0) <form class="flex flex-col gap-2 justify-center xl:items-end xl:flex-row" wire:submit="$dispatchSelf('connectToContainer')"> <x-forms.select id="selected_uuid" required wire:model.live="selected_uuid"> <option value="default">Select a server or container</option> @foreach ($servers as $server) <option value="{{ $server->uuid }}">{{ $server->name }}</option> @foreach ($containers as $container) @if ($container['server_uuid'] == $server->uuid) <option value="{{ $container['uuid'] }}"> {{ $server->name }} -> {{ $container['name'] }} </option> @endif @endforeach @endforeach </x-forms.select> <x-forms.button type="submit">Connect</x-forms.button> </form> @else <div>No servers with terminal access found.</div> @endif @endif <livewire:project.shared.terminal /> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/profile/index.blade.php
resources/views/livewire/profile/index.blade.php
<div> <x-slot:title> Profile | Coolify </x-slot> <h1>Profile</h1> <div class="subtitle -mt-2">Your user profile settings.</div> <form wire:submit='submit' class="flex flex-col"> <div class="flex items-center gap-2"> <h2>General</h2> <x-forms.button type="submit" label="Save">Save</x-forms.button> </div> <div class="flex flex-col gap-2 lg:flex-row items-end"> <x-forms.input id="name" label="Name" required /> <x-forms.input id="email" label="Email" readonly /> @if (!$show_email_change && !$show_verification) <x-forms.button wire:click="showEmailChangeForm" type="button">Change Email</x-forms.button> @else <x-forms.button wire:click="showEmailChangeForm" type="button" disabled>Change Email</x-forms.button> @endif </div> </form> <div class="flex flex-col pt-4"> @if ($show_email_change) <form wire:submit='requestEmailChange'> <div class="flex gap-2 items-end"> <x-forms.input id="new_email" label="New Email Address" required type="email" /> <x-forms.button type="submit">Send Verification Code</x-forms.button> <x-forms.button wire:click="$set('show_email_change', false)" type="button" isError>Cancel</x-forms.button> </div> <div class="text-xs font-bold dark:text-warning pt-2">A verification code will be sent to your new email address.</div> </form> @endif @if ($show_verification) <form wire:submit='verifyEmailChange'> <div class="flex gap-2 items-end"> <x-forms.input id="email_verification_code" label="Verification Code (6 digits)" required maxlength="6" /> <x-forms.button type="submit">Verify & Update Email</x-forms.button> <x-forms.button wire:click="resendVerificationCode" type="button" isWarning>Resend Code</x-forms.button> <x-forms.button wire:click="cancelEmailChange" type="button" isError>Cancel</x-forms.button> </div> <div class="text-xs font-bold dark:text-warning pt-2"> Verification code sent to {{ $new_email ?? auth()->user()->pending_email }}. The code is valid for {{ config('constants.email_change.verification_code_expiry_minutes', 10) }} minutes. </div> </form> @endif </div> <form wire:submit='resetPassword' class="flex flex-col pt-4"> <div class="flex items-center gap-2 pb-2"> <h2>Change Password</h2> <x-forms.button type="submit" label="Save">Save</x-forms.button> </div> <div class="text-xs font-bold dark:text-warning pb-2">Resetting the password will logout all sessions.</div> <div class="flex flex-col gap-2"> <x-forms.input id="current_password" label="Current Password" required type="password" /> <div class="flex gap-2"> <x-forms.input id="new_password" label="New Password" required type="password" /> <x-forms.input id="new_password_confirmation" label="New Password Again" required type="password" /> </div> </div> </form> <h2 class="py-4">Two-factor Authentication</h2> @if (session('status') == 'two-factor-authentication-enabled') <div class="mb-4 font-medium"> Please finish configuring two factor authentication below. Read the QR code or enter the secret key manually. </div> <div class="flex flex-col gap-4"> <form action="/user/confirmed-two-factor-authentication" method="POST" class="flex items-end gap-2"> @csrf <x-forms.input type="text" inputmode="numeric" pattern="[0-9]*" id="code" label="One time (OTP) code" required /> <x-forms.button type="submit">Validate 2FA</x-forms.button> </form> <div class="flex flex-col items-start"> <div class="flex items-center justify-center w-80 h-80 bg-white p-4 border-4 border-gray-300 rounded-lg shadow-lg"> {!! request()->user()->twoFactorQrCodeSvg() !!} </div> <div x-data="{ showCode: false, }" class="py-4 w-full"> <div class="flex flex-col gap-2 pb-2" x-show="showCode"> <x-forms.copy-button text="{{ decrypt(request()->user()->two_factor_secret) }}" /> <x-forms.copy-button text="{{ request()->user()->twoFactorQrCodeUrl() }}" /> </div> <x-forms.button x-on:click="showCode = !showCode" class="mt-2"> <span x-text="showCode ? 'Hide Secret Key and OTP URL' : 'Show Secret Key and OTP URL'"></span> </x-forms.button> </div> </div> </div> @elseif(session('status') == 'two-factor-authentication-confirmed') <div class="mb-4 "> Two factor authentication confirmed and enabled successfully. </div> <div> <div class="pb-6 ">Here are the recovery codes for your account. Please store them in a secure location. </div> <div class="dark:text-white"> @foreach (request()->user()->recoveryCodes() as $code) <div>{{ $code }}</div> @endforeach </div> </div> @else @if (request()->user()->two_factor_confirmed_at) <div class="pb-4 "> Two factor authentication is <span class="text-helper">enabled</span>.</div> <div class="flex gap-2"> <form action="/user/two-factor-authentication" method="POST"> @csrf @method ('DELETE') <x-forms.button type="submit">Disable</x-forms.button> </form> <form action="/user/two-factor-recovery-codes" method="POST"> @csrf <x-forms.button type="submit">Regenerate Recovery Codes</x-forms.button> </form> </div> @if (session('status') == 'recovery-codes-generated') <div> <div class="py-6 ">Here are the recovery codes for your account. Please store them in a secure location. </div> <div class="dark:text-white"> @foreach (request()->user()->recoveryCodes() as $code) <div>{{ $code }}</div> @endforeach </div> </div> @endif @else <form action="/user/two-factor-authentication" method="POST"> @csrf <x-forms.button type="submit">Configure</x-forms.button> </form> @endif @endif @if (session()->has('errors')) <div class="text-error"> Something went wrong. Please try again. </div> @endif </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/shared-variables/index.blade.php
resources/views/livewire/shared-variables/index.blade.php
<div> <x-slot:title> Shared Variables | Coolify </x-slot> <div class="flex items-start gap-2"> <h1>Shared Variables</h1> </div> <div class="subtitle">Set Team / Project / Environment wide variables.</div> <div class="flex flex-col gap-2 -mt-1"> <a class="coolbox group" href="{{ route('shared-variables.team.index') }}" {{ wireNavigate() }}> <div class="flex flex-col justify-center mx-6"> <div class="box-title">Team wide</div> <div class="box-description">Usable for all resources in a team.</div> </div> </a> <a class="coolbox group" href="{{ route('shared-variables.project.index') }}" {{ wireNavigate() }}> <div class="flex flex-col justify-center mx-6"> <div class="box-title">Project wide</div> <div class="box-description">Usable for all resources in a project.</div> </div> </a> <a class="coolbox group" href="{{ route('shared-variables.environment.index') }}" {{ wireNavigate() }}> <div class="flex flex-col justify-center mx-6"> <div class="box-title">Environment wide</div> <div class="box-description">Usable for all resources in an environment.</div> </div> </a> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/shared-variables/project/index.blade.php
resources/views/livewire/shared-variables/project/index.blade.php
<div> <x-slot:title> Project Variables | Coolify </x-slot> <div class="flex gap-2"> <h1>Projects</h1> </div> <div class="subtitle">List of your projects.</div> <div class="flex flex-col gap-2"> @forelse ($projects as $project) <a class="coolbox group" href="{{ route('shared-variables.project.show', ['project_uuid' => data_get($project, 'uuid')]) }}" {{ wireNavigate() }}> <div class="flex flex-col justify-center mx-6 "> <div class="box-title">{{ $project->name }}</div> <div class="box-description "> {{ $project->description }}</div> </div> </a> @empty <div> <div>No project found.</div> </div> @endforelse </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/shared-variables/project/show.blade.php
resources/views/livewire/shared-variables/project/show.blade.php
<div> <x-slot:title> Project Variable | Coolify </x-slot> <div class="flex gap-2 items-center"> <h1>Shared Variables for {{ data_get($project, 'name') }}</h1> @can('update', $project) <x-modal-input buttonTitle="+ Add" title="New Shared Variable"> <livewire:project.shared.environment-variable.add :shared="true" /> </x-modal-input> @endcan <x-forms.button canGate="update" :canResource="$project" wire:click='switch'>{{ $view === 'normal' ? 'Developer view' : 'Normal view' }}</x-forms.button> </div> <div class="flex flex-wrap gap-1 subtitle"> <div>You can use these variables anywhere with</div> <div class="dark:text-warning text-coollabs">@{{ project.VARIABLENAME }} </div> <x-helper helper="More info <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper> </div> @if ($view === 'normal') <div class="flex flex-col gap-2"> @forelse ($project->environment_variables->sort()->sortBy('key') as $env) <livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}" :env="$env" type="project" /> @empty <div>No environment variables found.</div> @endforelse </div> @else <form wire:submit='submit' class="flex flex-col gap-2"> <x-forms.textarea canGate="update" :canResource="$project" rows="20" class="whitespace-pre-wrap" id="variables" wire:model="variables" label="Project Shared Variables"></x-forms.textarea> <x-forms.button canGate="update" :canResource="$project" type="submit" class="btn btn-primary">Save All Environment Variables</x-forms.button> </form> @endif </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/shared-variables/team/index.blade.php
resources/views/livewire/shared-variables/team/index.blade.php
<div> <x-slot:title> Team Variables | Coolify </x-slot> <div class="flex gap-2 items-center"> <h1>Team Shared Variables</h1> @can('create', App\Models\SharedEnvironmentVariable::class) <x-modal-input buttonTitle="+ Add" title="New Shared Variable"> <livewire:project.shared.environment-variable.add :shared="true" /> </x-modal-input> @endcan <x-forms.button canGate="update" :canResource="$team" wire:click='switch'>{{ $view === 'normal' ? 'Developer view' : 'Normal view' }}</x-forms.button> </div> <div class="flex items-center gap-1 subtitle">You can use these variables anywhere with <span class="dark:text-warning text-coollabs">@{{ team.VARIABLENAME }}</span> <x-helper helper="More info <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper> </div> @if ($view === 'normal') <div class="flex flex-col gap-2"> @forelse ($team->environment_variables->sort()->sortBy('key') as $env) <livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}" :env="$env" type="team" /> @empty <div>No environment variables found.</div> @endforelse </div> @else <form wire:submit='submit' class="flex flex-col gap-2"> <x-forms.textarea canGate="update" :canResource="$team" rows="20" class="whitespace-pre-wrap" id="variables" wire:model="variables" label="Team Shared Variables"></x-forms.textarea> <x-forms.button canGate="update" :canResource="$team" type="submit" class="btn btn-primary">Save All Environment Variables</x-forms.button> </form> @endif </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/shared-variables/environment/index.blade.php
resources/views/livewire/shared-variables/environment/index.blade.php
<div> <x-slot:title> Environment Variables | Coolify </x-slot> <div class="flex gap-2"> <h1>Environments</h1> </div> <div class="subtitle">List of your environments by projects.</div> <div class="flex flex-col gap-2"> @forelse ($projects as $project) <h2>Project: {{ data_get($project, 'name') }}</h2> <div class="pt-0 pb-3">{{ data_get($project, 'description') }}</div> @forelse ($project->environments as $environment) <a class="coolbox group" href="{{ route('shared-variables.environment.show', [ 'project_uuid' => $project->uuid, 'environment_uuid' => $environment->uuid, ]) }}" {{ wireNavigate() }}> <div class="flex flex-col justify-center flex-1 mx-6 "> <div class="box-title"> {{ $environment->name }}</div> <div class="box-description"> {{ $environment->description }}</div> </div> </a> @empty <p class="pb-4">No environments found.</p> @endforelse @empty <div> <div>No project found.</div> </div> @endforelse </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/shared-variables/environment/show.blade.php
resources/views/livewire/shared-variables/environment/show.blade.php
<div> <x-slot:title> Environment Variable | Coolify </x-slot> <div class="flex gap-2"> <h1>Shared Variables for {{ $project->name }}/{{ $environment->name }}</h1> @can('update', $environment) <x-modal-input buttonTitle="+ Add" title="New Shared Variable"> <livewire:project.shared.environment-variable.add :shared="true" /> </x-modal-input> @endcan <x-forms.button canGate="update" :canResource="$environment" wire:click='switch'>{{ $view === 'normal' ? 'Developer view' : 'Normal view' }}</x-forms.button> </div> <div class="flex items-center gap-1 subtitle">You can use these variables anywhere with <span class="dark:text-warning text-coollabs">@{{ environment.VARIABLENAME }}</span><x-helper helper="More info <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper> </div> @if ($view === 'normal') <div class="flex flex-col gap-2"> @forelse ($environment->environment_variables->sort()->sortBy('key') as $env) <livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}" :env="$env" type="environment" /> @empty <div>No environment variables found.</div> @endforelse </div> @else <form wire:submit='submit' class="flex flex-col gap-2"> <x-forms.textarea canGate="update" :canResource="$environment" rows="20" class="whitespace-pre-wrap" id="variables" wire:model="variables" label="Environment Shared Variables"></x-forms.textarea> <x-forms.button canGate="update" :canResource="$environment" type="submit" class="btn btn-primary">Save All Environment Variables</x-forms.button> </form> @endif </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/notifications/email.blade.php
resources/views/livewire/notifications/email.blade.php
<div> <x-slot:title> Notifications | Coolify </x-slot> <x-notification.navbar /> <form wire:submit='submit' class="flex flex-col gap-4 pb-4"> <div class="flex items-center gap-2"> <h2>Email</h2> <x-forms.button canGate="update" :canResource="$settings" type="submit"> Save </x-forms.button> @if (auth()->user()->isAdminFromSession()) @can('sendTest', $settings) @if ($team->isNotificationEnabled('email')) <x-modal-input buttonTitle="Send Test Email" title="Send Test Email"> <form wire:submit.prevent="sendTestEmail" class="flex flex-col w-full gap-2"> <x-forms.input wire:model="testEmailAddress" placeholder="test@example.com" id="testEmailAddress" label="Recipient" required /> <x-forms.button type="submit" @click="modalOpen=false"> Send Email </x-forms.button> </form> </x-modal-input> @else <x-forms.button disabled class="normal-case dark:text-white btn btn-xs no-animation btn-primary"> Send Test Email </x-forms.button> @endif @endcan @endif </div> @if (!isCloud()) <div class="w-96"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="instantSave()" id="useInstanceEmailSettings" label="Use system wide (transactional) email settings" /> </div> @endif @if (!$useInstanceEmailSettings) <div class="flex gap-2"> <x-forms.input canGate="update" :canResource="$settings" required id="smtpFromName" helper="Name used in emails." label="From Name" /> <x-forms.input canGate="update" :canResource="$settings" required id="smtpFromAddress" helper="Email address used in emails." label="From Address" /> </div> @if (isInstanceAdmin() && !$useInstanceEmailSettings) <x-forms.button canGate="update" :canResource="$settings" wire:click='copyFromInstanceSettings'> Copy from Instance Settings </x-forms.button> @endif @endif </form> @if (isCloud()) <div class="w-64 py-4"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="instantSave()" id="useInstanceEmailSettings" label="Use Hosted Email Service" /> </div> @endif @if (!$useInstanceEmailSettings) <div class="flex flex-col gap-4"> <form wire:submit='submitSmtp' class="p-4 border dark:border-coolgray-300 border-neutral-200 rounded-lg flex flex-col gap-2"> <div class="flex items-center gap-2"> <h3>SMTP Server</h3> <x-forms.button canGate="update" :canResource="$settings" type="submit"> Save </x-forms.button> </div> <div class="w-32"> <x-forms.checkbox canGate="update" :canResource="$settings" wire:model="smtpEnabled" instantSave="instantSave('SMTP')" id="smtpEnabled" label="Enabled" /> </div> <div class="flex flex-col"> <div class="flex flex-col gap-4"> <div class="flex flex-col w-full gap-2 xl:flex-row"> <x-forms.input canGate="update" :canResource="$settings" required id="smtpHost" placeholder="smtp.mailgun.org" label="Host" /> <x-forms.input canGate="update" :canResource="$settings" required id="smtpPort" placeholder="587" label="Port" /> <x-forms.select canGate="update" :canResource="$settings" required id="smtpEncryption" label="Encryption"> <option value="starttls">StartTLS</option> <option value="tls">TLS/SSL</option> <option value="none">None</option> </x-forms.select> </div> <div class="flex flex-col w-full gap-2 xl:flex-row"> <x-forms.input canGate="update" :canResource="$settings" id="smtpUsername" label="SMTP Username" /> <x-forms.input canGate="update" :canResource="$settings" id="smtpPassword" type="password" label="SMTP Password" /> <x-forms.input canGate="update" :canResource="$settings" id="smtpTimeout" helper="Timeout value for sending emails." label="Timeout" /> </div> </div> </div> </form> <form wire:submit='submitResend' class="p-4 border dark:border-coolgray-300 border-neutral-200 rounded-lg flex flex-col gap-2"> <div class="flex items-center gap-2"> <h3>Resend</h3> <x-forms.button canGate="update" :canResource="$settings" type="submit"> Save </x-forms.button> </div> <div class="w-32"> <x-forms.checkbox canGate="update" :canResource="$settings" wire:model="resendEnabled" instantSave="instantSave('Resend')" id="resendEnabled" label="Enabled" /> </div> <div class="flex flex-col"> <div class="flex flex-col gap-4"> <div class="flex flex-col w-full gap-2 xl:flex-row"> <x-forms.input canGate="update" :canResource="$settings" required type="password" id="resendApiKey" placeholder="API key" label="API Key" /> </div> </div> </div> </form> </div> @endif <h2 class="mt-4">Notification Settings</h2> <p class="mb-4"> Select events for which you would like to receive email notifications. </p> <div class="flex flex-col gap-4 max-w-2xl"> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Deployments</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="deploymentSuccessEmailNotifications" label="Deployment Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="deploymentFailureEmailNotifications" label="Deployment Failure" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" helper="Send an email when a container status changes. It will send and email for Stopped and Restarted events of a container." id="statusChangeEmailNotifications" label="Container Status Changes" /> </div> </div> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Backups</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="backupSuccessEmailNotifications" label="Backup Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="backupFailureEmailNotifications" label="Backup Failure" /> </div> </div> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Scheduled Tasks</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="scheduledTaskSuccessEmailNotifications" label="Scheduled Task Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="scheduledTaskFailureEmailNotifications" label="Scheduled Task Failure" /> </div> </div> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Server</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="dockerCleanupSuccessEmailNotifications" label="Docker Cleanup Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="dockerCleanupFailureEmailNotifications" label="Docker Cleanup Failure" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverDiskUsageEmailNotifications" label="Server Disk Usage" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverReachableEmailNotifications" label="Server Reachable" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverUnreachableEmailNotifications" label="Server Unreachable" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverPatchEmailNotifications" label="Server Patching" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="traefikOutdatedEmailNotifications" label="Traefik Proxy Outdated" /> </div> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/notifications/pushover.blade.php
resources/views/livewire/notifications/pushover.blade.php
<div> <x-slot:title> Notifications | Coolify </x-slot> <x-notification.navbar /> <form wire:submit='submit' class="flex flex-col gap-4 pb-4"> <div class="flex items-center gap-2"> <h2>Pushover</h2> <x-forms.button canGate="update" :canResource="$settings" type="submit"> Save </x-forms.button> @if ($pushoverEnabled) <x-forms.button canGate="sendTest" :canResource="$settings" class="normal-case dark:text-white btn btn-xs no-animation btn-primary" wire:click="sendTestNotification"> Send Test Notification </x-forms.button> @else <x-forms.button canGate="sendTest" :canResource="$settings" disabled class="normal-case dark:text-white btn btn-xs no-animation btn-primary"> Send Test Notification </x-forms.button> @endif </div> <div class="w-32"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="instantSavePushoverEnabled" id="pushoverEnabled" label="Enabled" /> </div> <div class="flex gap-2"> <x-forms.input canGate="update" :canResource="$settings" type="password" helper="Get your User Key in Pushover. You need to be logged in to Pushover to see your user key in the top right corner. <br><a class='inline-block underline dark:text-white' href='https://pushover.net/' target='_blank'>Pushover Dashboard</a>" required id="pushoverUserKey" label="User Key" /> <x-forms.input canGate="update" :canResource="$settings" type="password" helper="Generate an API Token/Key in Pushover by creating a new application. <br><a class='inline-block underline dark:text-white' href='https://pushover.net/apps/build' target='_blank'>Create Pushover Application</a>" required id="pushoverApiToken" label="API Token" /> </div> </form> <h2 class="mt-4">Notification Settings</h2> <p class="mb-4"> Select events for which you would like to receive Pushover notifications. </p> <div class="flex flex-col gap-4 max-w-2xl"> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Deployments</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="deploymentSuccessPushoverNotifications" label="Deployment Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="deploymentFailurePushoverNotifications" label="Deployment Failure" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" helper="Send a notification when a container status changes. It will notify for Stopped and Restarted events of a container." id="statusChangePushoverNotifications" label="Container Status Changes" /> </div> </div> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Backups</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="backupSuccessPushoverNotifications" label="Backup Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="backupFailurePushoverNotifications" label="Backup Failure" /> </div> </div> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Scheduled Tasks</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="scheduledTaskSuccessPushoverNotifications" label="Scheduled Task Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="scheduledTaskFailurePushoverNotifications" label="Scheduled Task Failure" /> </div> </div> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Server</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="dockerCleanupSuccessPushoverNotifications" label="Docker Cleanup Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="dockerCleanupFailurePushoverNotifications" label="Docker Cleanup Failure" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverDiskUsagePushoverNotifications" label="Server Disk Usage" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverReachablePushoverNotifications" label="Server Reachable" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverUnreachablePushoverNotifications" label="Server Unreachable" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverPatchPushoverNotifications" label="Server Patching" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="traefikOutdatedPushoverNotifications" label="Traefik Proxy Outdated" /> </div> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/notifications/telegram.blade.php
resources/views/livewire/notifications/telegram.blade.php
<div> <x-slot:title> Notifications | Coolify </x-slot> <x-notification.navbar /> <form wire:submit='submit' class="flex flex-col gap-4 pb-4"> <div class="flex items-center gap-2"> <h2>Telegram</h2> <x-forms.button canGate="update" :canResource="$settings" type="submit"> Save </x-forms.button> @if ($telegramEnabled) <x-forms.button canGate="sendTest" :canResource="$settings" class="normal-case dark:text-white btn btn-xs no-animation btn-primary" wire:click="sendTestNotification"> Send Test Notification </x-forms.button> @else <x-forms.button canGate="sendTest" :canResource="$settings" disabled class="normal-case dark:text-white btn btn-xs no-animation btn-primary"> Send Test Notification </x-forms.button> @endif </div> <div class="w-32"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="instantSaveTelegramEnabled" id="telegramEnabled" label="Enabled" /> </div> <div class="flex gap-2"> <x-forms.input canGate="update" :canResource="$settings" type="password" autocomplete="new-password" helper="Get it from the <a class='inline-block underline dark:text-white' href='https://t.me/botfather' target='_blank'>BotFather Bot</a> on Telegram." required id="telegramToken" label="Bot API Token" /> <x-forms.input canGate="update" :canResource="$settings" type="password" autocomplete="new-password" helper="Add your bot to a group chat and add its Chat ID here." required id="telegramChatId" label="Chat ID" /> </div> </form> <h2 class="mt-4">Notification Settings</h2> <p class="mb-4"> Select events for which you would like to receive Telegram notifications. </p> <div class="flex flex-col gap-4 "> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="text-lg font-medium mb-3">Deployments</h3> <div class="flex flex-col gap-1.5 pl-1"> <div class="pl-1 flex gap-2"> <div class="w-96"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="deploymentSuccessTelegramNotifications" label="Deployment Success" /> </div> <x-forms.input canGate="update" :canResource="$settings" type="password" placeholder="Custom Telegram Thread ID" id="telegramNotificationsDeploymentSuccessThreadId" /> </div> <div class="pl-1 flex gap-2"> <div class="w-96"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="deploymentFailureTelegramNotifications" label="Deployment Failure" /> </div> <x-forms.input canGate="update" :canResource="$settings" type="password" placeholder="Custom Telegram Thread ID" id="telegramNotificationsDeploymentFailureThreadId" /> </div> <div class="pl-1 flex gap-2"> <div class="w-96"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="statusChangeTelegramNotifications" label="Container Status Changes" helper="Send a notification when a container status changes. It will send a notification for Stopped and Restarted events of a container." /> </div> <x-forms.input canGate="update" :canResource="$settings" type="password" id="telegramNotificationsStatusChangeThreadId" placeholder="Custom Telegram Thread ID" /> </div> </div> </div> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="text-lg font-medium mb-3">Backups</h3> <div class="flex flex-col gap-1.5 pl-1"> <div class="pl-1 flex gap-2"> <div class="w-96"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="backupSuccessTelegramNotifications" label="Backup Success" /> </div> <x-forms.input canGate="update" :canResource="$settings" type="password" placeholder="Custom Telegram Thread ID" id="telegramNotificationsBackupSuccessThreadId" /> </div> <div class="pl-1 flex gap-2"> <div class="w-96"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="backupFailureTelegramNotifications" label="Backup Failure" /> </div> <x-forms.input canGate="update" :canResource="$settings" type="password" placeholder="Custom Telegram Thread ID" id="telegramNotificationsBackupFailureThreadId" /> </div> </div> </div> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="text-lg font-medium mb-3">Scheduled Tasks</h3> <div class="flex flex-col gap-1.5 pl-1"> <div class="pl-1 flex gap-2"> <div class="w-96"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="scheduledTaskSuccessTelegramNotifications" label="Scheduled Task Success" /> </div> <x-forms.input canGate="update" :canResource="$settings" type="password" placeholder="Custom Telegram Thread ID" id="telegramNotificationsScheduledTaskSuccessThreadId" /> </div> <div class="pl-1 flex gap-2"> <div class="w-96"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="scheduledTaskFailureTelegramNotifications" label="Scheduled Task Failure" /> </div> <x-forms.input canGate="update" :canResource="$settings" type="password" placeholder="Custom Telegram Thread ID" id="telegramNotificationsScheduledTaskFailureThreadId" /> </div> </div> </div> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="text-lg font-medium mb-3">Server</h3> <div class="flex flex-col gap-1.5 pl-1"> <div class="pl-1 flex gap-2"> <div class="w-96"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="dockerCleanupSuccessTelegramNotifications" label="Docker Cleanup Success" /> </div> <x-forms.input canGate="update" :canResource="$settings" type="password" placeholder="Custom Telegram Thread ID" id="telegramNotificationsDockerCleanupSuccessThreadId" /> </div> <div class="pl-1 flex gap-2"> <div class="w-96"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="dockerCleanupFailureTelegramNotifications" label="Docker Cleanup Failure" /> </div> <x-forms.input canGate="update" :canResource="$settings" type="password" placeholder="Custom Telegram Thread ID" id="telegramNotificationsDockerCleanupFailureThreadId" /> </div> <div class="pl-1 flex gap-2"> <div class="w-96"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverDiskUsageTelegramNotifications" label="Server Disk Usage" /> </div> <x-forms.input canGate="update" :canResource="$settings" type="password" placeholder="Custom Telegram Thread ID" id="telegramNotificationsServerDiskUsageThreadId" /> </div> <div class="pl-1 flex gap-2"> <div class="w-96"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverReachableTelegramNotifications" label="Server Reachable" /> </div> <x-forms.input canGate="update" :canResource="$settings" type="password" placeholder="Custom Telegram Thread ID" id="telegramNotificationsServerReachableThreadId" /> </div> <div class="pl-1 flex gap-2"> <div class="w-96"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverUnreachableTelegramNotifications" label="Server Unreachable" /> </div> <x-forms.input canGate="update" :canResource="$settings" type="password" placeholder="Custom Telegram Thread ID" id="telegramNotificationsServerUnreachableThreadId" /> </div> <div class="pl-1 flex gap-2"> <div class="w-96"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverPatchTelegramNotifications" label="Server Patching" /> </div> <x-forms.input canGate="update" :canResource="$settings" type="password" placeholder="Custom Telegram Thread ID" id="telegramNotificationsServerPatchThreadId" /> </div> <div class="pl-1 flex gap-2"> <div class="w-96"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="traefikOutdatedTelegramNotifications" label="Traefik Proxy Outdated" /> </div> <x-forms.input canGate="update" :canResource="$settings" type="password" placeholder="Custom Telegram Thread ID" id="telegramNotificationsTraefikOutdatedThreadId" /> </div> </div> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/notifications/slack.blade.php
resources/views/livewire/notifications/slack.blade.php
<div> <x-slot:title> Notifications | Coolify </x-slot> <x-notification.navbar /> <form wire:submit='submit' class="flex flex-col gap-4 pb-4"> <div class="flex items-center gap-2"> <h2>Slack</h2> <x-forms.button canGate="update" :canResource="$settings" type="submit"> Save </x-forms.button> @if ($slackEnabled) <x-forms.button canGate="sendTest" :canResource="$settings" class="normal-case dark:text-white btn btn-xs no-animation btn-primary" wire:click="sendTestNotification"> Send Test Notification </x-forms.button> @else <x-forms.button canGate="sendTest" :canResource="$settings" disabled class="normal-case dark:text-white btn btn-xs no-animation btn-primary"> Send Test Notification </x-forms.button> @endif </div> <div class="w-32"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="instantSaveSlackEnabled" id="slackEnabled" label="Enabled" /> </div> <x-forms.input canGate="update" :canResource="$settings" type="password" helper="Create a Slack APP and generate a Incoming Webhook URL. <br><a class='inline-block underline dark:text-white' href='https://api.slack.com/apps' target='_blank'>Create Slack APP</a>" required id="slackWebhookUrl" label="Webhook" /> </form> <h2 class="mt-4">Notification Settings</h2> <p class="mb-4"> Select events for which you would like to receive Slack notifications. </p> <div class="flex flex-col gap-4 max-w-2xl"> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Deployments</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="deploymentSuccessSlackNotifications" label="Deployment Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="deploymentFailureSlackNotifications" label="Deployment Failure" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" helper="Send a notification when a container status changes. It will notify for Stopped and Restarted events of a container." id="statusChangeSlackNotifications" label="Container Status Changes" /> </div> </div> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Backups</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="backupSuccessSlackNotifications" label="Backup Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="backupFailureSlackNotifications" label="Backup Failure" /> </div> </div> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Scheduled Tasks</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="scheduledTaskSuccessSlackNotifications" label="Scheduled Task Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="scheduledTaskFailureSlackNotifications" label="Scheduled Task Failure" /> </div> </div> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Server</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="dockerCleanupSuccessSlackNotifications" label="Docker Cleanup Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="dockerCleanupFailureSlackNotifications" label="Docker Cleanup Failure" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverDiskUsageSlackNotifications" label="Server Disk Usage" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverReachableSlackNotifications" label="Server Reachable" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverUnreachableSlackNotifications" label="Server Unreachable" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverPatchSlackNotifications" label="Server Patching" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="traefikOutdatedSlackNotifications" label="Traefik Proxy Outdated" /> </div> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/notifications/webhook.blade.php
resources/views/livewire/notifications/webhook.blade.php
<div> <x-slot:title> Notifications | Coolify </x-slot> <x-notification.navbar /> <form wire:submit='submit' class="flex flex-col gap-4 pb-4"> <div class="flex items-center gap-2"> <h2>Webhook</h2> <x-forms.button canGate="update" :canResource="$settings" type="submit"> Save </x-forms.button> @if ($webhookEnabled) <x-forms.button canGate="sendTest" :canResource="$settings" class="normal-case dark:text-white btn btn-xs no-animation btn-primary" wire:click="sendTestNotification"> Send Test Notification </x-forms.button> @else <x-forms.button canGate="sendTest" :canResource="$settings" disabled class="normal-case dark:text-white btn btn-xs no-animation btn-primary"> Send Test Notification </x-forms.button> @endif </div> <div class="w-48"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="instantSaveWebhookEnabled" id="webhookEnabled" label="Enabled" /> </div> <div class="flex items-end gap-2"> <x-forms.input canGate="update" :canResource="$settings" type="password" helper="Enter a valid HTTP or HTTPS URL. Coolify will send POST requests to this endpoint when events occur." required id="webhookUrl" label="Webhook URL (POST)" /> </div> </form> <h2 class="mt-4">Notification Settings</h2> <p class="mb-4"> Select events for which you would like to receive webhook notifications. </p> <div class="flex flex-col gap-4 max-w-2xl"> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Deployments</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="deploymentSuccessWebhookNotifications" label="Deployment Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="deploymentFailureWebhookNotifications" label="Deployment Failure" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" helper="Send a notification when a container status changes. It will notify for Stopped and Restarted events of a container." id="statusChangeWebhookNotifications" label="Container Status Changes" /> </div> </div> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Backups</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="backupSuccessWebhookNotifications" label="Backup Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="backupFailureWebhookNotifications" label="Backup Failure" /> </div> </div> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Scheduled Tasks</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="scheduledTaskSuccessWebhookNotifications" label="Scheduled Task Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="scheduledTaskFailureWebhookNotifications" label="Scheduled Task Failure" /> </div> </div> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Server</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="dockerCleanupSuccessWebhookNotifications" label="Docker Cleanup Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="dockerCleanupFailureWebhookNotifications" label="Docker Cleanup Failure" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverDiskUsageWebhookNotifications" label="Server Disk Usage" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverReachableWebhookNotifications" label="Server Reachable" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverUnreachableWebhookNotifications" label="Server Unreachable" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverPatchWebhookNotifications" label="Server Patching" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="traefikOutdatedWebhookNotifications" label="Traefik Proxy Outdated" /> </div> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/notifications/discord.blade.php
resources/views/livewire/notifications/discord.blade.php
<div> <x-slot:title> Notifications | Coolify </x-slot> <x-notification.navbar /> <form wire:submit='submit' class="flex flex-col gap-4 pb-4"> <div class="flex items-center gap-2"> <h2>Discord</h2> <x-forms.button canGate="update" :canResource="$settings" type="submit"> Save </x-forms.button> @if ($discordEnabled) <x-forms.button canGate="sendTest" :canResource="$settings" class="normal-case dark:text-white btn btn-xs no-animation btn-primary" wire:click="sendTestNotification"> Send Test Notification </x-forms.button> @else <x-forms.button canGate="sendTest" :canResource="$settings" disabled class="normal-case dark:text-white btn btn-xs no-animation btn-primary"> Send Test Notification </x-forms.button> @endif </div> <div class="w-48"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="instantSaveDiscordEnabled" id="discordEnabled" label="Enabled" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="instantSaveDiscordPingEnabled" id="discordPingEnabled" helper="If enabled, a ping (@here) will be sent to the notification when a critical event happens." label="Ping Enabled" /> </div> <x-forms.input canGate="update" :canResource="$settings" type="password" helper="Create a Discord Server and generate a Webhook URL. <br><a class='inline-block underline dark:text-white' href='https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks' target='_blank'>Webhook Documentation</a>" required id="discordWebhookUrl" label="Webhook" /> </form> <h2 class="mt-4">Notification Settings</h2> <p class="mb-4"> Select events for which you would like to receive Discord notifications. </p> <div class="flex flex-col gap-4 max-w-2xl"> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Deployments</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="deploymentSuccessDiscordNotifications" label="Deployment Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="deploymentFailureDiscordNotifications" label="Deployment Failure" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" helper="Send a notification when a container status changes. It will notify for Stopped and Restarted events of a container." id="statusChangeDiscordNotifications" label="Container Status Changes" /> </div> </div> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Backups</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="backupSuccessDiscordNotifications" label="Backup Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="backupFailureDiscordNotifications" label="Backup Failure" /> </div> </div> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Scheduled Tasks</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="scheduledTaskSuccessDiscordNotifications" label="Scheduled Task Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="scheduledTaskFailureDiscordNotifications" label="Scheduled Task Failure" /> </div> </div> <div class="border dark:border-coolgray-300 border-neutral-200 p-4 rounded-lg"> <h3 class="font-medium mb-3">Server</h3> <div class="flex flex-col gap-1.5 pl-1"> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="dockerCleanupSuccessDiscordNotifications" label="Docker Cleanup Success" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="dockerCleanupFailureDiscordNotifications" label="Docker Cleanup Failure" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverDiskUsageDiscordNotifications" label="Server Disk Usage" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverReachableDiscordNotifications" label="Server Reachable" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverUnreachableDiscordNotifications" label="Server Unreachable" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="serverPatchDiscordNotifications" label="Server Patching" /> <x-forms.checkbox canGate="update" :canResource="$settings" instantSave="saveModel" id="traefikOutdatedDiscordNotifications" label="Traefik Proxy Outdated" /> </div> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/security/cloud-tokens.blade.php
resources/views/livewire/security/cloud-tokens.blade.php
<div> <x-slot:title> Cloud Tokens | Coolify </x-slot> <x-security.navbar /> <livewire:security.cloud-provider-tokens /> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/security/api-tokens.blade.php
resources/views/livewire/security/api-tokens.blade.php
<div> <x-slot:title> API Tokens | Coolify </x-slot> <x-security.navbar /> <div class="pb-4"> <h2>API Tokens</h2> @if (!$isApiEnabled) <div>API is disabled. If you want to use the API, please enable it in the <a href="{{ route('settings.advanced') }}" class="underline dark:text-white" {{ wireNavigate() }}>Settings</a> menu.</div> @else <div>Tokens are created with the current team as scope.</div> </div> <h3>New Token</h3> @can('create', App\Models\PersonalAccessToken::class) <form class="flex flex-col gap-2" wire:submit='addNewToken'> <div class="flex gap-2 items-end w-96"> <x-forms.input required id="description" label="Description" /> <x-forms.button type="submit">Create</x-forms.button> </div> <div class="flex"> Permissions <x-helper class="px-1" helper="These permissions will be granted to the token." /><span class="pr-1">:</span> <div class="flex gap-1 font-bold dark:text-white"> @if ($permissions) @foreach ($permissions as $permission) <div>{{ $permission }}</div> @endforeach @endif </div> </div> <h4>Token Permissions</h4> <div class="w-64"> @if ($canUseRootPermissions) <x-forms.checkbox label="root" wire:model.live="permissions" domValue="root" helper="Root access, be careful!" :checked="in_array('root', $permissions)"></x-forms.checkbox> @else <x-forms.checkbox label="root (admin/owner only)" disabled domValue="root" helper="Root access requires admin or owner role" :checked="false"></x-forms.checkbox> @endif @if (!in_array('root', $permissions)) @if ($canUseWritePermissions) <x-forms.checkbox label="write" wire:model.live="permissions" domValue="write" helper="Write access to all resources." :checked="in_array('write', $permissions)"></x-forms.checkbox> @else <x-forms.checkbox label="write (admin/owner only)" disabled domValue="write" helper="Write access requires admin or owner role" :checked="false"></x-forms.checkbox> @endif <x-forms.checkbox label="deploy" wire:model.live="permissions" domValue="deploy" helper="Can trigger deploy webhooks." :checked="in_array('deploy', $permissions)"></x-forms.checkbox> <x-forms.checkbox label="read" domValue="read" wire:model.live="permissions" domValue="read" :checked="in_array('read', $permissions)"></x-forms.checkbox> <x-forms.checkbox label="read:sensitive" wire:model.live="permissions" domValue="read:sensitive" helper="Responses will include secrets, logs, passwords, and compose file contents." :checked="in_array('read:sensitive', $permissions)"></x-forms.checkbox> @endif </div> @if (in_array('root', $permissions)) <div class="font-bold dark:text-warning">Root access, be careful!</div> @endif </form> @endcan @if (session()->has('token')) <div class="py-4 font-bold dark:text-warning">Please copy this token now. For your security, it won't be shown again. </div> <div class="pb-4 font-bold dark:text-white"> {{ session('token') }}</div> @endif <h3 class="py-4">Issued Tokens</h3> <div class="grid gap-2 lg:grid-cols-1"> @forelse ($tokens as $token) <div wire:key="token-{{ $token->id }}" class="flex flex-col gap-1 p-2 border dark:border-coolgray-200 hover:no-underline"> <div>Description: {{ $token->name }}</div> <div>Last used: {{ $token->last_used_at ? $token->last_used_at->diffForHumans() : 'Never' }}</div> <div class="flex gap-1"> @if ($token->abilities) Permissions: @foreach ($token->abilities as $ability) <div class="font-bold dark:text-white">{{ $ability }}</div> @endforeach @endif </div> @if (auth()->id() === $token->tokenable_id) <x-modal-confirmation title="Confirm API Token Revocation?" isErrorButton buttonTitle="Revoke token" submitAction="revoke({{ data_get($token, 'id') }})" :actions="[ 'This API Token will be revoked and permanently deleted.', 'Any API call made with this token will fail.', ]" confirmationText="{{ $token->name }}" confirmationLabel="Please confirm the execution of the actions by entering the API Token Description below" shortConfirmationLabel="API Token Description" :confirmWithPassword="false" step2ButtonText="Revoke API Token" /> @endif </div> @empty <div> <div>No API tokens found.</div> </div> @endforelse </div> @endif </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/security/cloud-init-script-form.blade.php
resources/views/livewire/security/cloud-init-script-form.blade.php
<form wire:submit='save' class="flex flex-col gap-4 w-full"> <x-forms.input id="name" label="Script Name" helper="A descriptive name for this cloud-init script." required /> <x-forms.textarea id="script" label="Script Content" rows="12" helper="Enter your cloud-init script. Supports cloud-config YAML format." required /> <div class="flex justify-end gap-2"> @if ($modal_mode) <x-forms.button type="button" @click="$dispatch('closeModal')"> Cancel </x-forms.button> @endif <x-forms.button type="submit" isHighlighted> {{ $scriptId ? 'Update Script' : 'Create Script' }} </x-forms.button> </div> </form>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/security/cloud-init-scripts.blade.php
resources/views/livewire/security/cloud-init-scripts.blade.php
<div> <x-security.navbar /> <div class="flex gap-2"> <h2 class="pb-4">Cloud-Init Scripts</h2> @can('create', App\Models\CloudInitScript::class) <x-modal-input buttonTitle="+ Add" title="New Cloud-Init Script"> <livewire:security.cloud-init-script-form /> </x-modal-input> @endcan </div> <div class="pb-4 text-sm">Manage reusable cloud-init scripts for server initialization. Currently working only with <span class="text-red-500 font-bold">Hetzner's</span> integration.</div> <div class="grid gap-4 lg:grid-cols-2"> @forelse ($scripts as $script) <div wire:key="script-{{ $script->id }}" class="flex flex-col gap-1 p-2 border dark:border-coolgray-200 hover:no-underline"> <div class="flex justify-between items-center"> <div class="flex-1"> <div class="font-bold dark:text-white">{{ $script->name }}</div> <div class="text-xs text-neutral-500 dark:text-neutral-400"> Created {{ $script->created_at->diffForHumans() }} </div> </div> </div> <div class="flex gap-2 mt-2"> @can('update', $script) <x-modal-input buttonTitle="Edit" title="Edit Cloud-Init Script" fullWidth> <livewire:security.cloud-init-script-form :scriptId="$script->id" wire:key="edit-{{ $script->id }}" /> </x-modal-input> @endcan @can('delete', $script) <x-modal-confirmation title="Confirm Script Deletion?" isErrorButton buttonTitle="Delete" submitAction="deleteScript({{ $script->id }})" :actions="[ 'This cloud-init script will be permanently deleted.', 'This action cannot be undone.', ]" confirmationText="{{ $script->name }}" confirmationLabel="Please confirm the deletion by entering the script name below" shortConfirmationLabel="Script Name" :confirmWithPassword="false" step2ButtonText="Delete Script" /> @endcan </div> </div> @empty <div class="text-neutral-500">No cloud-init scripts found. Create one to get started.</div> @endforelse </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/security/cloud-provider-tokens.blade.php
resources/views/livewire/security/cloud-provider-tokens.blade.php
<div> <h2>Cloud Provider Tokens</h2> <div class="pb-4">Manage API tokens for cloud providers (Hetzner, DigitalOcean, etc.).</div> <h3>New Token</h3> @can('create', App\Models\CloudProviderToken::class) <livewire:security.cloud-provider-token-form :modal_mode="false" /> @endcan <h3 class="py-4">Saved Tokens</h3> <div class="grid gap-2 lg:grid-cols-1"> @forelse ($tokens as $savedToken) <div wire:key="token-{{ $savedToken->id }}" class="flex flex-col gap-1 p-2 border dark:border-coolgray-200 hover:no-underline"> <div class="flex items-center gap-2"> <span class="px-2 py-1 text-xs font-bold rounded dark:bg-coolgray-300 dark:text-white"> {{ strtoupper($savedToken->provider) }} </span> <span class="font-bold dark:text-white">{{ $savedToken->name }}</span> </div> <div class="text-sm">Created: {{ $savedToken->created_at->diffForHumans() }}</div> <div class="flex gap-2 pt-2"> @can('view', $savedToken) <x-forms.button wire:click="validateToken({{ $savedToken->id }})" type="button"> Validate </x-forms.button> @endcan @can('delete', $savedToken) <x-modal-confirmation title="Confirm Token Deletion?" isErrorButton buttonTitle="Delete" submitAction="deleteToken({{ $savedToken->id }})" :actions="[ 'This cloud provider token will be permanently deleted.', 'Any servers using this token will need to be reconfigured.', ]" confirmationText="{{ $savedToken->name }}" confirmationLabel="Please confirm the deletion by entering the token name below" shortConfirmationLabel="Token Name" :confirmWithPassword="false" step2ButtonText="Delete Token" /> @endcan </div> </div> @empty <div> <div>No cloud provider tokens found.</div> </div> @endforelse </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/security/cloud-provider-token-form.blade.php
resources/views/livewire/security/cloud-provider-token-form.blade.php
<div class="w-full"> <form class="flex flex-col gap-2 {{ $modal_mode ? 'w-full' : '' }}" wire:submit='addToken'> @if ($modal_mode) {{-- Modal layout: vertical, compact --}} @if (!isset($provider) || empty($provider) || $provider === '') <x-forms.select required id="provider" label="Provider"> <option value="hetzner">Hetzner</option> <option value="digitalocean">DigitalOcean</option> </x-forms.select> @else <input type="hidden" wire:model="provider" /> @endif <x-forms.input required id="name" label="Token Name" placeholder="e.g., Production Hetzner. tip: add Hetzner project name to identify easier" /> <x-forms.input required type="password" id="token" label="API Token" placeholder="Enter your API token" /> @if (auth()->user()->currentTeam()->cloudProviderTokens->where('provider', $provider)->isEmpty()) <div class="text-sm text-neutral-500 dark:text-neutral-400"> Create an API token in the <a href='{{ $provider === 'hetzner' ? 'https://console.hetzner.com/projects' : '#' }}' target='_blank' class='underline dark:text-white'>{{ ucfirst($provider) }} Console</a> → choose Project → Security → API Tokens. @if ($provider === 'hetzner') <br><br> Don't have a Hetzner account? <a href='https://coolify.io/hetzner' target='_blank' class='underline dark:text-white'>Sign up here</a> <br> <span class="text-xs">(Coolify's affiliate link, only new accounts - supports us (€10) and gives you €20)</span> @endif </div> @endif <x-forms.button type="submit">Validate & Add Token</x-forms.button> @else {{-- Full page layout: horizontal, spacious --}} <div class="flex gap-2 items-end flex-wrap"> <div class="w-64"> <x-forms.select required id="provider" label="Provider" disabled> <option value="hetzner" selected>Hetzner</option> <option value="digitalocean">DigitalOcean</option> </x-forms.select> </div> <div class="flex-1 min-w-64"> <x-forms.input required id="name" label="Token Name" placeholder="e.g., Production Hetzner. tip: add Hetzner project name to identify easier" /> </div> </div> <div class="flex-1 min-w-64"> <x-forms.input required type="password" id="token" label="API Token" placeholder="Enter your API token" /> @if (auth()->user()->currentTeam()->cloudProviderTokens->where('provider', $provider)->isEmpty()) <div class="text-sm text-neutral-500 dark:text-neutral-400 mt-2"> Create an API token in the <a href='https://console.hetzner.com/projects' target='_blank' class='underline dark:text-white'>Hetzner Console</a> → choose Project → Security → API Tokens. <br><br> Don't have a Hetzner account? <a href='https://coolify.io/hetzner' target='_blank' class='underline dark:text-white'>Sign up here</a> <br> <span class="text-xs">(Coolify's affiliate link, only new accounts - supports us (€10) and gives you €20)</span> </div> @endif </div> <x-forms.button type="submit">Validate & Add Token</x-forms.button> @endif </form> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/security/private-key/index.blade.php
resources/views/livewire/security/private-key/index.blade.php
<div> <x-security.navbar /> <div class="flex gap-2"> <h2 class="pb-4">Private Keys</h2> @can('create', App\Models\PrivateKey::class) <x-modal-input buttonTitle="+ Add" title="New Private Key"> <livewire:security.private-key.create /> </x-modal-input> @endcan @can('create', App\Models\PrivateKey::class) <x-modal-confirmation title="Confirm unused SSH Key Deletion?" buttonTitle="Delete unused SSH Keys" isErrorButton submitAction="cleanupUnusedKeys" :actions="['All unused SSH keys (marked with unused) are permanently deleted.']" :confirmWithText="false" :confirmWithPassword="false" /> @endcan </div> <div class="grid gap-4 lg:grid-cols-2"> @forelse ($privateKeys as $key) @can('view', $key) {{-- Admin/Owner: Clickable link --}} <a class="coolbox group" href="{{ route('security.private-key.show', ['private_key_uuid' => data_get($key, 'uuid')]) }}" {{ wireNavigate() }}> <div class="flex flex-col justify-center mx-6"> <div class="box-title"> {{ data_get($key, 'name') }} </div> <div class="box-description"> {{ $key->description }} @if (!$key->isInUse()) <span class="inline-flex items-center px-2 py-0.5 rounded-sm text-xs font-medium bg-warning-400 text-black">Unused</span> @endif </div> </div> </a> @else {{-- Member: Visible but not clickable --}} <div class="coolbox opacity-60 !cursor-not-allowed hover:bg-transparent dark:hover:bg-transparent" title="You don't have permission to view this private key"> <div class="flex flex-col justify-center mx-6"> <div class="box-title"> {{ data_get($key, 'name') }} <span class="ml-2 inline-flex items-center px-2 py-0.5 rounded-sm text-xs font-medium bg-gray-400 dark:bg-gray-600 text-white">View Only</span> </div> <div class="box-description"> {{ $key->description }} @if (!$key->isInUse()) <span class="inline-flex items-center px-2 py-0.5 rounded-sm text-xs font-medium bg-warning-400 text-black">Unused</span> @endif </div> </div> </div> @endcan @empty <div>No private keys found.</div> @endforelse </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/security/private-key/create.blade.php
resources/views/livewire/security/private-key/create.blade.php
<div> <div class="pb-2 subtitle"> <div>Private Keys are used to connect to your servers without passwords.</div> <div class="font-bold">You should not use passphrase protected keys.</div> </div> <div class="flex gap-2 mb-4 w-full"> <x-forms.button wire:click="generateNewEDKey" isHighlighted class="w-full">Generate new ED25519 SSH Key</x-forms.button> <x-forms.button wire:click="generateNewRSAKey">Generate new RSA SSH Key</x-forms.button> </div> <form class="flex flex-col gap-2" wire:submit='createPrivateKey'> <div class="flex gap-2"> <x-forms.input id="name" label="Name" required /> <x-forms.input id="description" label="Description" /> </div> <x-forms.textarea realtimeValidation id="value" rows="10" placeholder="-----BEGIN OPENSSH PRIVATE KEY-----" label="Private Key" required /> <x-forms.input id="publicKey" readonly label="Public Key" /> <span class="pt-2 pb-4 font-bold dark:text-warning">ACTION REQUIRED: Copy the 'Public Key' to your server's ~/.ssh/authorized_keys file</span> <x-forms.button type="submit"> Continue </x-forms.button> </form> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/security/private-key/show.blade.php
resources/views/livewire/security/private-key/show.blade.php
<div x-init="$wire.loadPublicKey()"> <x-slot:title> Private Key | Coolify </x-slot> <x-security.navbar /> <div x-data="{ showPrivateKey: false }"> <form class="flex flex-col" wire:submit='changePrivateKey'> <div class="flex items-start gap-2"> <h2 class="pb-4">Private Key</h2> <x-forms.button canGate="update" :canResource="$private_key" type="submit"> Save </x-forms.button> @if (data_get($private_key, 'id') > 0) @can('delete', $private_key) <x-modal-confirmation title="Confirm Private Key Deletion?" isErrorButton buttonTitle="Delete" submitAction="delete({{ $private_key->id }})" :actions="[ 'This private key will be permanently deleted.', 'All servers connected to this private key will stop working.', 'Any git app using this private key will stop working.', ]" confirmationText="{{ $private_key->name }}" confirmationLabel="Please confirm the execution of the actions by entering the Private Key Name below" shortConfirmationLabel="Private Key Name" :confirmWithPassword="false" step2ButtonText="Delete Private Key" /> @endcan @endif </div> <div class="flex flex-col gap-2"> <div class="flex gap-2"> <x-forms.input canGate="update" :canResource="$private_key" id="name" label="Name" required /> <x-forms.input canGate="update" :canResource="$private_key" id="description" label="Description" /> </div> <div> <div class="flex items-end gap-2 py-2 "> <div class="pl-1">Public Key</div> </div> <x-forms.input canGate="update" :canResource="$private_key" readonly id="public_key" /> <div class="flex items-end gap-2 py-2 "> <div class="pl-1">Private Key <span class='text-helper'>*</span></div> <div class="text-xs underline cursor-pointer dark:text-white" x-cloak x-show="!showPrivateKey" x-on:click="showPrivateKey = true"> Edit </div> <div class="text-xs underline cursor-pointer dark:text-white" x-cloak x-show="showPrivateKey" x-on:click="showPrivateKey = false"> Hide </div> </div> @if ($isGitRelated) <div class="w-48"> <x-forms.checkbox id="isGitRelated" disabled label="Is used by a Git App?" /> </div> @endif <div x-cloak x-show="!showPrivateKey"> <x-forms.input canGate="update" :canResource="$private_key" allowToPeak="false" type="password" rows="10" id="privateKeyValue" required disabled /> </div> <div x-cloak x-show="showPrivateKey"> <x-forms.textarea canGate="update" :canResource="$private_key" rows="10" id="privateKeyValue" required /> </div> </div> </div> </form> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/navbar.blade.php
resources/views/livewire/server/navbar.blade.php
<div class="pb-6"> <x-slide-over @startproxy.window="slideOverOpen = true" fullScreen closeWithX> <x-slot:title>Proxy Startup Logs</x-slot:title> <x-slot:content> @if ($server->id === 0) <div class="mb-4 p-3 text-sm bg-warning/10 border border-warning/30 rounded-lg text-warning"> <span class="font-semibold">Note:</span> This is the localhost server where Coolify runs. During proxy restart, the connection may be temporarily lost. If logs stop updating, please refresh the browser after a few minutes. </div> @endif <livewire:activity-monitor header="Logs" fullHeight /> </x-slot:content> </x-slide-over> <div class="flex items-center gap-2"> <h1>Server</h1> @if ($server->proxySet()) <div class="flex"> <div class="flex items-center"> @if ($proxyStatus === 'running') <x-status.running status="Proxy Running" noLoading /> @elseif ($proxyStatus === 'restarting') <x-status.restarting status="Proxy Restarting" noLoading /> @elseif ($proxyStatus === 'stopping') <x-status.restarting status="Proxy Stopping" noLoading /> @elseif ($proxyStatus === 'starting') <x-status.restarting status="Proxy Starting" noLoading /> @elseif (data_get($server, 'proxy.force_stop')) <div wire:loading.remove wire:target="checkProxy"> <x-status.stopped status="Proxy Stopped (Force Stop)" noLoading /> </div> @elseif ($proxyStatus === 'exited') <div wire:loading.remove wire:target="checkProxy"> <x-status.stopped status="Proxy Exited" noLoading /> </div> @endif <div wire:loading wire:target="checkProxy" class="badge badge-warning"></div> <div wire:loading wire:target="checkProxy" class="pl-2 pr-1 text-xs font-bold tracking-wider dark:text-warning"> Checking Ports Availability... </div> @if ($proxyStatus !== 'exited') <button wire:loading.remove title="Refresh Status" wire:click='checkProxyStatus' class="mx-1 dark:hover:fill-white fill-black dark:fill-warning"> <svg class="w-4 h-4" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M12 2a10.016 10.016 0 0 0-7 2.877V3a1 1 0 1 0-2 0v4.5a1 1 0 0 0 1 1h4.5a1 1 0 0 0 0-2H6.218A7.98 7.98 0 0 1 20 12a1 1 0 0 0 2 0A10.012 10.012 0 0 0 12 2zm7.989 13.5h-4.5a1 1 0 0 0 0 2h2.293A7.98 7.98 0 0 1 4 12a1 1 0 0 0-2 0a9.986 9.986 0 0 0 16.989 7.133V21a1 1 0 0 0 2 0v-4.5a1 1 0 0 0-1-1z" /> </svg> </button> <button wire:loading title="Refreshing Status" wire:click='checkProxyStatus' class="mx-1 dark:hover:fill-white fill-black dark:fill-warning"> <svg class="w-4 h-4 animate-spin" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M12 2a10.016 10.016 0 0 0-7 2.877V3a1 1 0 1 0-2 0v4.5a1 1 0 0 0 1 1h4.5a1 1 0 0 0 0-2H6.218A7.98 7.98 0 0 1 20 12a1 1 0 0 0 2 0A10.012 10.012 0 0 0 12 2zm7.989 13.5h-4.5a1 1 0 0 0 0 2h2.293A7.98 7.98 0 0 1 4 12a1 1 0 0 0-2 0a9.986 9.986 0 0 0 16.989 7.133V21a1 1 0 0 0 2 0v-4.5a1 1 0 0 0-1-1z" /> </svg> </button> @endif </div> </div> @endif </div> <div class="subtitle">{{ data_get($server, 'name') }}</div> <div class="navbar-main"> <nav class="flex items-center gap-6 overflow-x-scroll sm:overflow-x-hidden scrollbar min-h-10 whitespace-nowrap pt-2"> <a class="{{ request()->routeIs('server.show') ? 'dark:text-white' : '' }}" href="{{ route('server.show', [ 'server_uuid' => data_get($server, 'uuid'), ]) }}" {{ wireNavigate() }}> Configuration </a> @if (!$server->isSwarmWorker() && !$server->settings->is_build_server) <a class="{{ request()->routeIs('server.proxy') ? 'dark:text-white' : '' }} flex items-center gap-1" href="{{ route('server.proxy', [ 'server_uuid' => data_get($server, 'uuid'), ]) }}" {{ wireNavigate() }}> Proxy @if ($this->hasTraefikOutdated) <svg class="w-4 h-4 text-warning" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="M236.8 188.09L149.35 36.22a24.76 24.76 0 0 0-42.7 0L19.2 188.09a23.51 23.51 0 0 0 0 23.72A24.35 24.35 0 0 0 40.55 224h174.9a24.35 24.35 0 0 0 21.33-12.19a23.51 23.51 0 0 0 .02-23.72m-13.87 15.71a8.5 8.5 0 0 1-7.48 4.2H40.55a8.5 8.5 0 0 1-7.48-4.2a7.59 7.59 0 0 1 0-7.72l87.45-151.87a8.75 8.75 0 0 1 15 0l87.45 151.87a7.59 7.59 0 0 1-.04 7.72M120 144v-40a8 8 0 0 1 16 0v40a8 8 0 0 1-16 0m20 36a12 12 0 1 1-12-12a12 12 0 0 1 12 12" /> </svg> @endif </a> @endif <a class="{{ request()->routeIs('server.resources') ? 'dark:text-white' : '' }}" href="{{ route('server.resources', [ 'server_uuid' => data_get($server, 'uuid'), ]) }}" {{ wireNavigate() }}> Resources </a> @can('canAccessTerminal') <a class="{{ request()->routeIs('server.command') ? 'dark:text-white' : '' }}" href="{{ route('server.command', [ 'server_uuid' => data_get($server, 'uuid'), ]) }}"> Terminal </a> @endcan @can('update', $server) <a class="{{ request()->routeIs('server.security.patches') ? 'dark:text-white' : '' }}" href="{{ route('server.security.patches', [ 'server_uuid' => data_get($server, 'uuid'), ]) }}" {{ wireNavigate() }}> Security </a> @endcan </nav> <div class="order-first sm:order-last"> <div> @if ($server->proxySet()) @if ($proxyStatus === 'running') <div class="flex gap-2"> <div class="mt-1" wire:loading wire:target="loadProxyConfiguration"> <x-loading text="Checking Traefik dashboard" /> </div> @if ($traefikDashboardAvailable) <button> <a target="_blank" href="http://{{ $serverIp }}:8080"> Traefik Dashboard <x-external-link /> </a> </button> @endif <x-modal-confirmation title="Confirm Proxy Restart?" buttonTitle="Restart Proxy" submitAction="restart" :actions="[ 'This proxy will be stopped and started again.', 'All resources hosted on coolify will be unavailable during the restart.', ]" :confirmWithText="false" :confirmWithPassword="false" step2ButtonText="Restart Proxy" :dispatchEvent="true" dispatchEventType="restartEvent"> <x-slot:button-title> <svg class="w-5 h-5 dark:text-warning" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"> <path d="M19.933 13.041a8 8 0 1 1-9.925-8.788c3.899-1 7.935 1.007 9.425 4.747" /> <path d="M20 4v5h-5" /> </g> </svg> Restart Proxy </x-slot:button-title> </x-modal-confirmation> <x-modal-confirmation title="Confirm Proxy Stopping?" buttonTitle="Stop Proxy" submitAction="stop(true)" :actions="[ 'The coolify proxy will be stopped.', 'All resources hosted on coolify will be unavailable.', ]" :confirmWithText="false" :confirmWithPassword="false" step2ButtonText="Stop Proxy" :dispatchEvent="true" dispatchEventType="stopEvent"> <x-slot:button-title> <svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-error" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"> </path> <path d="M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"> </path> </svg> Stop Proxy </x-slot:button-title> </x-modal-confirmation> </div> @else <button @click="$wire.dispatch('checkProxyEvent')" class="gap-2 button"> <svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 dark:text-warning" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M7 4v16l13 -8z" /> </svg> Start Proxy </button> @endif @endif @script <script> $wire.$on('checkProxyEvent', () => { try { $wire.$call('checkProxy'); } catch (error) { console.error(error); $wire.$dispatch('error', 'Failed to check proxy status. Please try again.'); } }); $wire.$on('restartEvent', () => { if ($wire.restartInitiated) return; window.dispatchEvent(new CustomEvent('startproxy')) $wire.$call('restart'); }); $wire.$on('startProxy', () => { window.dispatchEvent(new CustomEvent('startproxy')) $wire.$call('startProxy'); }); $wire.$on('stopEvent', () => { $wire.$call('stop'); }); </script> @endscript </div> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/charts.blade.php
resources/views/livewire/server/charts.blade.php
<div> <x-slot:title> {{ data_get_str($server, 'name')->limit(10) }} > Metrics | Coolify </x-slot> <livewire:server.navbar :server="$server" /> <div class="flex flex-col h-full gap-8 sm:flex-row"> <x-server.sidebar :server="$server" activeMenu="metrics" /> <div class="w-full"> <h2>Metrics</h2> <div class="pb-4">Basic metrics for your server.</div> @if ($server->isMetricsEnabled()) <div @if ($poll) wire:poll.5000ms='pollData' @endif x-init="$wire.loadData()"> <x-forms.select label="Interval" wire:change="setInterval" id="interval"> <option value="5">5 minutes (live)</option> <option value="10">10 minutes (live)</option> <option value="30">30 minutes</option> <option value="60">1 hour</option> <option value="720">12 hours</option> <option value="10080">1 week</option> <option value="43200">30 days</option> </x-forms.select> <h4 class="pt-4">CPU Usage</h4> <div wire:ignore id="{!! $chartId !!}-cpu"></div> <script> checkTheme(); const optionsServerCpu = { stroke: { curve: 'straight', width: 2, }, chart: { height: '150px', id: '{!! $chartId !!}-cpu', type: 'area', toolbar: { show: true, tools: { download: false, selection: false, zoom: true, zoomin: false, zoomout: false, pan: false, reset: true }, }, animations: { enabled: true, }, }, fill: { type: 'gradient', }, dataLabels: { enabled: false, offsetY: -10, style: { colors: ['#FCD452'], }, background: { enabled: false, } }, grid: { show: true, borderColor: '', }, colors: [cpuColor], xaxis: { type: 'datetime', }, series: [{ name: 'CPU %', data: [] }], noData: { text: 'Loading...', style: { color: textColor, } }, tooltip: { enabled: true, marker: { show: false, }, custom: function({ series, seriesIndex, dataPointIndex, w }) { const value = series[seriesIndex][dataPointIndex]; const timestamp = w.globals.seriesX[seriesIndex][dataPointIndex]; const date = new Date(timestamp); const timeString = String(date.getUTCHours()).padStart(2, '0') + ':' + String(date.getUTCMinutes()).padStart(2, '0') + ':' + String(date.getUTCSeconds()).padStart(2, '0') + ', ' + date.getUTCFullYear() + '-' + String(date.getUTCMonth() + 1).padStart(2, '0') + '-' + String(date.getUTCDate()).padStart(2, '0'); return '<div class="apexcharts-tooltip-custom">' + '<div class="apexcharts-tooltip-custom-value">CPU: <span class="apexcharts-tooltip-value-bold">' + value + '%</span></div>' + '<div class="apexcharts-tooltip-custom-title">' + timeString + '</div>' + '</div>'; } }, legend: { show: false } } const serverCpuChart = new ApexCharts(document.getElementById(`{!! $chartId !!}-cpu`), optionsServerCpu); serverCpuChart.render(); document.addEventListener('livewire:init', () => { Livewire.on('refreshChartData-{!! $chartId !!}-cpu', (chartData) => { checkTheme(); serverCpuChart.updateOptions({ series: [{ data: chartData[0].seriesData, }], colors: [cpuColor], xaxis: { type: 'datetime', labels: { show: true, style: { colors: textColor, } } }, yaxis: { show: true, labels: { show: true, style: { colors: textColor, }, formatter: function(value) { return Math.round(value) + ' %'; } } }, noData: { text: 'Loading...', style: { color: textColor, } } }); }); }); </script> <div> <h4>Memory Usage</h4> <div wire:ignore id="{!! $chartId !!}-memory"></div> <script> checkTheme(); const optionsServerMemory = { stroke: { curve: 'straight', width: 2, }, chart: { height: '150px', id: '{!! $chartId !!}-memory', type: 'area', toolbar: { show: true, tools: { download: false, selection: false, zoom: true, zoomin: false, zoomout: false, pan: false, reset: true }, }, animations: { enabled: true, }, }, fill: { type: 'gradient', }, dataLabels: { enabled: false, offsetY: -10, style: { colors: ['#FCD452'], }, background: { enabled: false, } }, grid: { show: true, borderColor: '', }, colors: [ramColor], xaxis: { type: 'datetime', labels: { show: true, style: { colors: textColor, } } }, series: [{ name: "Memory (%)", data: [] }], noData: { text: 'Loading...', style: { color: textColor, } }, tooltip: { enabled: true, marker: { show: false, }, custom: function({ series, seriesIndex, dataPointIndex, w }) { const value = series[seriesIndex][dataPointIndex]; const timestamp = w.globals.seriesX[seriesIndex][dataPointIndex]; const date = new Date(timestamp); const timeString = String(date.getUTCHours()).padStart(2, '0') + ':' + String(date.getUTCMinutes()).padStart(2, '0') + ':' + String(date.getUTCSeconds()).padStart(2, '0') + ', ' + date.getUTCFullYear() + '-' + String(date.getUTCMonth() + 1).padStart(2, '0') + '-' + String(date.getUTCDate()).padStart(2, '0'); return '<div class="apexcharts-tooltip-custom">' + '<div class="apexcharts-tooltip-custom-value">Memory: <span class="apexcharts-tooltip-value-bold">' + value + '%</span></div>' + '<div class="apexcharts-tooltip-custom-title">' + timeString + '</div>' + '</div>'; } }, legend: { show: false } } const serverMemoryChart = new ApexCharts(document.getElementById(`{!! $chartId !!}-memory`), optionsServerMemory); serverMemoryChart.render(); document.addEventListener('livewire:init', () => { Livewire.on('refreshChartData-{!! $chartId !!}-memory', (chartData) => { checkTheme(); serverMemoryChart.updateOptions({ series: [{ data: chartData[0].seriesData, }], colors: [ramColor], xaxis: { type: 'datetime', labels: { show: true, style: { colors: textColor, } } }, yaxis: { min: 0, show: true, labels: { show: true, style: { colors: textColor, }, formatter: function(value) { return Math.round(value) + ' %'; } } }, noData: { text: 'Loading...', style: { color: textColor, } } }); }); }); </script> </div> </div> @else <div>Metrics are disabled for this server. Enable them in <a class="underline dark:text-white" href="{{ route('server.show', ['server_uuid' => $server->uuid]) }}/sentinel" {{ wireNavigate() }}>Sentinel</a> settings.</div> @endif </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/docker-cleanup-executions.blade.php
resources/views/livewire/server/docker-cleanup-executions.blade.php
<div class="flex flex-col gap-2" wire:poll.5000ms="refreshExecutions" x-data="{ init() { let interval; $wire.$watch('isPollingActive', value => { if (value) { interval = setInterval(() => { $wire.polling(); }, 1000); } else { if (interval) clearInterval(interval); } }); } }"> @forelse($executions as $execution) <a wire:click="selectExecution({{ data_get($execution, 'id') }})" @class([ 'flex flex-col border-l-2 transition-colors p-4 cursor-pointer bg-white hover:bg-gray-100 dark:bg-coolgray-100 dark:hover:bg-coolgray-200 text-black dark:text-white', 'bg-gray-200 dark:bg-coolgray-200' => data_get($execution, 'id') == $selectedKey, 'border-blue-500/50 border-dashed' => data_get($execution, 'status') === 'running', 'border-error' => data_get($execution, 'status') === 'failed', 'border-success' => data_get($execution, 'status') === 'success', ])> @if (data_get($execution, 'status') === 'running') <div class="absolute top-2 right-2"> <x-loading /> </div> @endif <div class="flex items-center gap-2 mb-2"> <span @class([ 'px-3 py-1 rounded-md text-xs font-medium tracking-wide shadow-xs', 'bg-blue-100/80 text-blue-700 dark:bg-blue-500/20 dark:text-blue-300 dark:shadow-blue-900/5' => data_get($execution, 'status') === 'running', 'bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-200 dark:shadow-red-900/5' => data_get($execution, 'status') === 'failed', 'bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-200 dark:shadow-green-900/5' => data_get($execution, 'status') === 'success', ])> @php $statusText = match(data_get($execution, 'status')) { 'success' => 'Success', 'running' => 'In Progress', 'failed' => 'Failed', default => ucfirst(data_get($execution, 'status')) }; @endphp {{ $statusText }} </span> </div> <div class="text-gray-600 dark:text-gray-400 text-sm"> Started: {{ formatDateInServerTimezone(data_get($execution, 'created_at', now()), $server) }} @if(data_get($execution, 'status') !== 'running') <br>Ended: {{ formatDateInServerTimezone(data_get($execution, 'finished_at'), $server) }} <br>Duration: {{ calculateDuration(data_get($execution, 'created_at'), data_get($execution, 'finished_at')) }} <br>Finished {{ \Carbon\Carbon::parse(data_get($execution, 'finished_at'))->diffForHumans() }} @endif </div> </a> @if (strlen(data_get($execution, 'message', '')) > 0) <div class="flex flex-col"> <x-forms.button wire:click.prevent="downloadLogs({{ data_get($execution, 'id') }})"> Download Logs </x-forms.button> </div> @endif @if (data_get($execution, 'id') == $selectedKey) <div class="flex flex-col"> <div class="p-4 mb-2 bg-gray-100 dark:bg-coolgray-200 rounded-sm"> @if (data_get($execution, 'status') === 'running') <div class="flex items-center gap-2 mb-2"> <span>Execution is running...</span> <x-loading class="w-4 h-4" /> </div> @endif @if ($this->logLines->isNotEmpty()) <div> <h3 class="font-semibold mb-2">Status Message:</h3> <pre class="whitespace-pre-wrap"> @foreach ($this->logLines as $line) {{ $line }} @endforeach </pre> <div class="flex gap-2"> @if ($this->hasMoreLogs()) <x-forms.button wire:click.prevent="loadMoreLogs" isHighlighted> Load More </x-forms.button> @endif </div> </div> @else <div> <div class="font-semibold mb-2">Status Message:</div> <div>No output was recorded for this execution.</div> </div> @endif @if (data_get($execution, 'cleanup_log')) <div class="mt-6 space-y-6"> <h3 class="text-lg font-semibold text-gray-900 dark:text-white">Cleanup Log:</h3> @foreach(json_decode(data_get($execution, 'cleanup_log'), true) as $result) <div class="overflow-hidden rounded-lg border border-gray-200 dark:border-coolgray-400 bg-white dark:bg-coolgray-100 shadow-xs"> <div class="flex items-center gap-2 px-4 py-3 bg-gray-50 dark:bg-coolgray-200 border-b border-gray-200 dark:border-coolgray-400"> <svg class="h-5 w-5 shrink-0 text-gray-500 dark:text-gray-400" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" /> </svg> <code class="flex-1 text-sm font-mono text-gray-700 dark:text-gray-300">{{ data_get($result, 'command') }}</code> </div> @php $output = data_get($result, 'output'); $hasOutput = !empty(trim($output)); @endphp <div class="p-4"> @if($hasOutput) <pre class="font-mono text-sm text-gray-600 dark:text-gray-300 whitespace-pre-wrap">{{ $output }}</pre> @else <p class="text-sm text-gray-500 dark:text-gray-400 italic"> No output returned - command completed successfully </p> @endif </div> </div> @endforeach </div> @endif </div> </div> @endif @empty <div class="p-4 bg-gray-100 dark:bg-coolgray-100 rounded-sm">No executions found.</div> @endforelse </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/swarm.blade.php
resources/views/livewire/server/swarm.blade.php
<div> <x-slot:title> {{ data_get_str($server, 'name')->limit(10) }} > Swarm | Coolify </x-slot> <livewire:server.navbar :server="$server" /> <div class="flex flex-col h-full gap-8 sm:flex-row"> <x-server.sidebar :server="$server" activeMenu="swarm" /> <div class="w-full"> <div> <div class="flex items-center gap-2"> <h2>Swarm <span class="text-xs text-neutral-500">(experimental)</span></h2> </div> <div class="pb-4">Read the docs <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/docker/swarm' target='_blank'>here</a>. </div> </div> <div class="w-96"> @if ($server->settings->is_swarm_worker) <x-forms.checkbox disabled instantSave type="checkbox" id="isSwarmManager" helper="For more information, please read the documentation <a class='dark:text-white' href='https://coolify.io/docs/knowledge-base/docker/swarm' target='_blank'>here</a>." label="Is it a Swarm Manager?" /> @else <x-forms.checkbox canGate="update" :canResource="$server" instantSave type="checkbox" id="isSwarmManager" helper="For more information, please read the documentation <a class='dark:text-white' href='https://coolify.io/docs/knowledge-base/docker/swarm' target='_blank'>here</a>." label="Is it a Swarm Manager?" /> @endif @if ($server->settings->is_swarm_manager) <x-forms.checkbox disabled instantSave type="checkbox" id="isSwarmWorker" helper="For more information, please read the documentation <a class='dark:text-white' href='https://coolify.io/docs/knowledge-base/docker/swarm' target='_blank'>here</a>." label="Is it a Swarm Worker?" /> @else <x-forms.checkbox canGate="update" :canResource="$server" instantSave type="checkbox" id="isSwarmWorker" helper="For more information, please read the documentation <a class='dark:text-white' href='https://coolify.io/docs/knowledge-base/docker/swarm' target='_blank'>here</a>." label="Is it a Swarm Worker?" /> @endif </div> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/destinations.blade.php
resources/views/livewire/server/destinations.blade.php
<div> <x-slot:title> {{ data_get_str($server, 'name')->limit(10) }} > Destinations | Coolify </x-slot> <livewire:server.navbar :server="$server" /> <div class="flex flex-col h-full gap-8 sm:flex-row"> <x-server.sidebar :server="$server" activeMenu="destinations" /> <div class="w-full"> @if ($server->isFunctional()) <div class="flex items-end gap-2"> <h2>Destinations</h2> @can('update', $server) <x-modal-input buttonTitle="+ Add" title="New Destination"> <livewire:destination.new.docker :server_id="$server->id" /> </x-modal-input> @endcan <x-forms.button canGate="update" :canResource="$server" isHighlighted wire:click='scan'>Scan for Destinations</x-forms.button> </div> <div>Destinations are used to segregate resources by network.</div> <h4 class="pt-4 pb-2">Available Destinations</h4> <div class="flex gap-2"> @foreach ($server->standaloneDockers as $docker) <a href="{{ route('destination.show', ['destination_uuid' => data_get($docker, 'uuid')]) }}" {{ wireNavigate() }}> <x-forms.button>{{ data_get($docker, 'network') }} </x-forms.button> </a> @endforeach @foreach ($server->swarmDockers as $docker) <a href="{{ route('destination.show', ['destination_uuid' => data_get($docker, 'uuid')]) }}" {{ wireNavigate() }}> <x-forms.button>{{ data_get($docker, 'network') }} </x-forms.button> </a> @endforeach </div> @if ($networks->count() > 0) <div class="pt-2"> <h3 class="pb-4">Found Destinations</h3> <div class="flex flex-wrap gap-2 "> @foreach ($networks as $network) <div class="min-w-fit"> <x-forms.button canGate="update" :canResource="$server" wire:click="add('{{ data_get($network, 'Name') }}')">Add {{ data_get($network, 'Name') }}</x-forms.button> </div> @endforeach </div> </div> @endif @else <div>Server is not validated. Validate first.</div> @endif </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/advanced.blade.php
resources/views/livewire/server/advanced.blade.php
<div> <x-slot:title> {{ data_get_str($server, 'name')->limit(10) }} > Advanced | Coolify </x-slot> <livewire:server.navbar :server="$server" /> <div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }" class="flex flex-col h-full gap-8 sm:flex-row"> <x-server.sidebar :server="$server" activeMenu="advanced" /> <form wire:submit='submit' class="w-full"> <div> <div class="flex items-center gap-2"> <h2>Advanced</h2> <x-forms.button canGate="update" :canResource="$server" type="submit">Save</x-forms.button> </div> <div class="mb-4">Advanced configuration for your server.</div> </div> <h3>Disk Usage</h3> <div class="flex flex-col gap-6"> <div class="flex flex-col"> <div class="flex flex-wrap gap-2 sm:flex-nowrap pt-4"> <x-forms.input canGate="update" :canResource="$server" placeholder="0 23 * * *" id="serverDiskUsageCheckFrequency" label="Disk usage check frequency" required helper="Cron expression for disk usage check frequency.<br>You can use every_minute, hourly, daily, weekly, monthly, yearly.<br><br>Default is every night at 11:00 PM." /> <x-forms.input canGate="update" :canResource="$server" id="serverDiskUsageNotificationThreshold" label="Server disk usage notification threshold (%)" required helper="If the server disk usage exceeds this threshold, Coolify will send a notification to the team members." /> </div> </div> <div class="flex flex-col"> <h3>Builds</h3> <div class="flex flex-wrap gap-2 sm:flex-nowrap pt-4"> <x-forms.input canGate="update" :canResource="$server" id="concurrentBuilds" label="Number of concurrent builds" required helper="You can specify the number of simultaneous build processes/deployments that should run concurrently." /> <x-forms.input canGate="update" :canResource="$server" id="dynamicTimeout" label="Deployment timeout (seconds)" required helper="You can define the maximum duration for a deployment to run before timing it out." /> <x-forms.input canGate="update" :canResource="$server" id="deploymentQueueLimit" label="Deployment queue limit" required helper="Maximum number of queued deployments allowed. New deployments will be rejected with a 429 status when the limit is reached." /> </div> </div> </div> </form> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/delete.blade.php
resources/views/livewire/server/delete.blade.php
<div> <x-slot:title> {{ data_get_str($server, 'name')->limit(10) }} > Delete Server | Coolify </x-slot> <livewire:server.navbar :server="$server" /> <div class="flex flex-col h-full gap-8 sm:flex-row"> <x-server.sidebar :server="$server" activeMenu="danger" /> <div class="w-full"> @if ($server->id !== 0) <h2>Danger Zone</h2> <div class="">Woah. I hope you know what are you doing.</div> <h4 class="pt-4">Delete Server</h4> <div class="pb-4">This will remove this server from Coolify. Beware! There is no coming back! </div> @if ($server->definedResources()->count() > 0) <div class="pb-2 text-red-500">You need to delete all resources before deleting this server.</div> @endif <x-modal-confirmation title="Confirm Server Deletion?" isErrorButton buttonTitle="Delete" submitAction="delete" :actions="['This server will be permanently deleted from Coolify.']" :checkboxes="$checkboxes" confirmationText="{{ $server->name }}" confirmationLabel="Please confirm the execution of the actions by entering the Server Name below" shortConfirmationLabel="Server Name" /> @endif </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/validate-and-install.blade.php
resources/views/livewire/server/validate-and-install.blade.php
<div class="flex flex-col gap-2"> @if ($ask) This will revalidate the server, install / update Docker Engine, Docker Compose and all related configuration. It will also restart Docker Engine, so your running containers will be unreachable for the time being. <x-forms.button isHighlighted wire:click='startValidatingAfterAsking'>Continue</x-forms.button> @else @if ($uptime) <div class="flex w-64 gap-2">Server is reachable: <svg class="w-5 h-5 text-success" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <g fill="currentColor"> <path d="m237.66 85.26l-128.4 128.4a8 8 0 0 1-11.32 0l-71.6-72a8 8 0 0 1 0-11.31l24-24a8 8 0 0 1 11.32 0l36.68 35.32a8 8 0 0 0 11.32 0l92.68-91.32a8 8 0 0 1 11.32 0l24 23.6a8 8 0 0 1 0 11.31" opacity=".2" /> <path d="m243.28 68.24l-24-23.56a16 16 0 0 0-22.58 0L104 136l-.11-.11l-36.64-35.27a16 16 0 0 0-22.57.06l-24 24a16 16 0 0 0 0 22.61l71.62 72a16 16 0 0 0 22.63 0l128.4-128.38a16 16 0 0 0-.05-22.67M103.62 208L32 136l24-24l.11.11l36.64 35.27a16 16 0 0 0 22.52 0L208.06 56L232 79.6Z" /> </g> </svg></div> @else @if ($error) <div class="flex w-64 gap-2">Server is reachable: <svg class="w-5 h-5 text-error" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="M208.49 191.51a12 12 0 0 1-17 17L128 145l-63.51 63.49a12 12 0 0 1-17-17L111 128L47.51 64.49a12 12 0 0 1 17-17L128 111l63.51-63.52a12 12 0 0 1 17 17L145 128Z" /> </svg></div> @else <div class="w-64"><x-loading text="Server is reachable: " /></div> @endif @endif @if ($uptime) @if ($supported_os_type) <div class="flex w-64 gap-2">Supported OS type: <svg class="w-5 h-5 text-success" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <g fill="currentColor"> <path d="m237.66 85.26l-128.4 128.4a8 8 0 0 1-11.32 0l-71.6-72a8 8 0 0 1 0-11.31l24-24a8 8 0 0 1 11.32 0l36.68 35.32a8 8 0 0 0 11.32 0l92.68-91.32a8 8 0 0 1 11.32 0l24 23.6a8 8 0 0 1 0 11.31" opacity=".2" /> <path d="m243.28 68.24l-24-23.56a16 16 0 0 0-22.58 0L104 136l-.11-.11l-36.64-35.27a16 16 0 0 0-22.57.06l-24 24a16 16 0 0 0 0 22.61l71.62 72a16 16 0 0 0 22.63 0l128.4-128.38a16 16 0 0 0-.05-22.67M103.62 208L32 136l24-24l.11.11l36.64 35.27a16 16 0 0 0 22.52 0L208.06 56L232 79.6Z" /> </g> </svg></div> @else @if ($error) <div class="flex w-64 gap-2">Supported OS type: <svg class="w-5 h-5 text-error" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="M208.49 191.51a12 12 0 0 1-17 17L128 145l-63.51 63.49a12 12 0 0 1-17-17L111 128L47.51 64.49a12 12 0 0 1 17-17L128 111l63.51-63.52a12 12 0 0 1 17 17L145 128Z" /> </svg></div> @else <div class="w-64"><x-loading text="Supported OS type:" /></div> @endif @endif @endif @if ($uptime && $supported_os_type) @if ($prerequisites_installed) <div class="flex w-64 gap-2">Prerequisites are installed: <svg class="w-5 h-5 text-success" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <g fill="currentColor"> <path d="m237.66 85.26l-128.4 128.4a8 8 0 0 1-11.32 0l-71.6-72a8 8 0 0 1 0-11.31l24-24a8 8 0 0 1 11.32 0l36.68 35.32a8 8 0 0 0 11.32 0l92.68-91.32a8 8 0 0 1 11.32 0l24 23.6a8 8 0 0 1 0 11.31" opacity=".2" /> <path d="m243.28 68.24l-24-23.56a16 16 0 0 0-22.58 0L104 136l-.11-.11l-36.64-35.27a16 16 0 0 0-22.57.06l-24 24a16 16 0 0 0 0 22.61l71.62 72a16 16 0 0 0 22.63 0l128.4-128.38a16 16 0 0 0-.05-22.67M103.62 208L32 136l24-24l.11.11l36.64 35.27a16 16 0 0 0 22.52 0L208.06 56L232 79.6Z" /> </g> </svg></div> @else @if ($error) <div class="flex w-64 gap-2">Prerequisites are installed: <svg class="w-5 h-5 text-error" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="M208.49 191.51a12 12 0 0 1-17 17L128 145l-63.51 63.49a12 12 0 0 1-17-17L111 128L47.51 64.49a12 12 0 0 1 17-17L128 111l63.51-63.52a12 12 0 0 1 17 17L145 128Z" /> </svg></div> @else <div class="w-64"><x-loading text="Prerequisites are installed:" /></div> @endif @endif @endif @if ($uptime && $supported_os_type && $prerequisites_installed) @if ($docker_installed) <div class="flex w-64 gap-2">Docker is installed: <svg class="w-5 h-5 text-success" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <g fill="currentColor"> <path d="m237.66 85.26l-128.4 128.4a8 8 0 0 1-11.32 0l-71.6-72a8 8 0 0 1 0-11.31l24-24a8 8 0 0 1 11.32 0l36.68 35.32a8 8 0 0 0 11.32 0l92.68-91.32a8 8 0 0 1 11.32 0l24 23.6a8 8 0 0 1 0 11.31" opacity=".2" /> <path d="m243.28 68.24l-24-23.56a16 16 0 0 0-22.58 0L104 136l-.11-.11l-36.64-35.27a16 16 0 0 0-22.57.06l-24 24a16 16 0 0 0 0 22.61l71.62 72a16 16 0 0 0 22.63 0l128.4-128.38a16 16 0 0 0-.05-22.67M103.62 208L32 136l24-24l.11.11l36.64 35.27a16 16 0 0 0 22.52 0L208.06 56L232 79.6Z" /> </g> </svg></div> @else @if ($error) <div class="flex w-64 gap-2">Docker is installed: <svg class="w-5 h-5 text-error" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="M208.49 191.51a12 12 0 0 1-17 17L128 145l-63.51 63.49a12 12 0 0 1-17-17L111 128L47.51 64.49a12 12 0 0 1 17-17L128 111l63.51-63.52a12 12 0 0 1 17 17L145 128Z" /> </svg></div> @else <div class="w-64"><x-loading text="Docker is installed:" /></div> @endif @endif @if ($docker_compose_installed) <div class="flex w-64 gap-2">Docker Compose is installed: <svg class="w-5 h-5 text-success" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <g fill="currentColor"> <path d="m237.66 85.26l-128.4 128.4a8 8 0 0 1-11.32 0l-71.6-72a8 8 0 0 1 0-11.31l24-24a8 8 0 0 1 11.32 0l36.68 35.32a8 8 0 0 0 11.32 0l92.68-91.32a8 8 0 0 1 11.32 0l24 23.6a8 8 0 0 1 0 11.31" opacity=".2" /> <path d="m243.28 68.24l-24-23.56a16 16 0 0 0-22.58 0L104 136l-.11-.11l-36.64-35.27a16 16 0 0 0-22.57.06l-24 24a16 16 0 0 0 0 22.61l71.62 72a16 16 0 0 0 22.63 0l128.4-128.38a16 16 0 0 0-.05-22.67M103.62 208L32 136l24-24l.11.11l36.64 35.27a16 16 0 0 0 22.52 0L208.06 56L232 79.6Z" /> </g> </svg></div> @isset($docker_version) @if ($docker_version) <div class="flex w-64 gap-2">Minimum Docker version: <svg class="w-5 h-5 text-success" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <g fill="currentColor"> <path d="m237.66 85.26l-128.4 128.4a8 8 0 0 1-11.32 0l-71.6-72a8 8 0 0 1 0-11.31l24-24a8 8 0 0 1 11.32 0l36.68 35.32a8 8 0 0 0 11.32 0l92.68-91.32a8 8 0 0 1 11.32 0l24 23.6a8 8 0 0 1 0 11.31" opacity=".2" /> <path d="m243.28 68.24l-24-23.56a16 16 0 0 0-22.58 0L104 136l-.11-.11l-36.64-35.27a16 16 0 0 0-22.57.06l-24 24a16 16 0 0 0 0 22.61l71.62 72a16 16 0 0 0 22.63 0l128.4-128.38a16 16 0 0 0-.05-22.67M103.62 208L32 136l24-24l.11.11l36.64 35.27a16 16 0 0 0 22.52 0L208.06 56L232 79.6Z" /> </g> </svg></div> @else <div class="flex w-64 gap-2">Minimum Docker version: <svg class="w-5 h-5 text-error" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="M208.49 191.51a12 12 0 0 1-17 17L128 145l-63.51 63.49a12 12 0 0 1-17-17L111 128L47.51 64.49a12 12 0 0 1 17-17L128 111l63.51-63.52a12 12 0 0 1 17 17L145 128Z" /> </svg></div> @endif @else <div class="w-64"><x-loading text="Minimum Docker version:" /></div> @endisset @else @if ($error) <div class="flex w-64 gap-2">Docker Compose is installed: <svg class="w-5 h-5 text-error" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="M208.49 191.51a12 12 0 0 1-17 17L128 145l-63.51 63.49a12 12 0 0 1-17-17L111 128L47.51 64.49a12 12 0 0 1 17-17L128 111l63.51-63.52a12 12 0 0 1 17 17L145 128Z" /> </svg></div> @else <div class="w-64"><x-loading text="Docker Compose is installed:" /></div> @endif @endif @endif <livewire:activity-monitor header="{{ $installationStep }} Installation Logs" :showWaiting="false" /> @isset($error) <pre class="font-bold whitespace-pre-line text-error">{!! $error !!}</pre> <x-forms.button canGate="update" :canResource="$server" wire:click="retry" class="mt-4"> Retry Validation </x-forms.button> @endisset @endif </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/docker-cleanup.blade.php
resources/views/livewire/server/docker-cleanup.blade.php
<div> <x-slot:title> {{ data_get_str($server, 'name')->limit(10) }} > Docker Cleanup | Coolify </x-slot> <livewire:server.navbar :server="$server" /> <div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }" class="flex flex-col h-full gap-8 sm:flex-row"> <x-server.sidebar :server="$server" activeMenu="docker-cleanup" /> <div class="w-full"> <form wire:submit='submit'> <div> <div class="flex items-center gap-2"> <h2>Docker Cleanup</h2> <x-forms.button type="submit" canGate="update" :canResource="$server">Save</x-forms.button> @can('update', $server) <x-modal-confirmation title="Confirm Docker Cleanup?" buttonTitle="Trigger Manual Cleanup" isHighlightedButton submitAction="manualCleanup" :actions="[ 'Permanently deletes all stopped containers managed by Coolify (as containers are non-persistent, no data will be lost)', 'Permanently deletes all unused images', 'Clears build cache', 'Removes old versions of the Coolify helper image', 'Optionally permanently deletes all unused volumes (if enabled in advanced options).', 'Optionally permanently deletes all unused networks (if enabled in advanced options).', ]" :confirmWithText="false" :confirmWithPassword="false" step2ButtonText="Trigger Docker Cleanup" /> @endcan </div> <div class="mt-1 mb-6">Configure Docker cleanup settings for your server.</div> </div> <div class="flex flex-col gap-2"> <div class="flex gap-4"> <h3>Cleanup Configuration</h3> </div> <div class="flex items-center gap-4"> <x-forms.input canGate="update" :canResource="$server" placeholder="*/10 * * * *" id="dockerCleanupFrequency" label="Docker cleanup frequency" required helper="Cron expression for Docker Cleanup.<br>You can use every_minute, hourly, daily, weekly, monthly, yearly.<br><br>Default is every night at midnight." /> @if (!$forceDockerCleanup) <x-forms.input canGate="update" :canResource="$server" id="dockerCleanupThreshold" label="Docker cleanup threshold (%)" required helper="The Docker cleanup tasks will run when the disk usage exceeds this threshold." /> @endif </div> <div class="w-full sm:w-96"> <x-forms.checkbox canGate="update" :canResource="$server" helper="Enabling Force Docker Cleanup or manually triggering a cleanup will perform the following actions: <ul class='list-disc pl-4 mt-2'> <li>Removes stopped containers managed by Coolify (as containers are non-persistent, no data will be lost).</li> <li>Deletes unused images.</li> <li>Clears build cache.</li> <li>Removes old versions of the Coolify helper image.</li> <li>Optionally delete unused volumes (if enabled in advanced options).</li> <li>Optionally remove unused networks (if enabled in advanced options).</li> </ul>" instantSave id="forceDockerCleanup" label="Force Docker Cleanup" /> </div> </div> <div class="flex flex-col gap-2 mt-6"> <h3>Advanced</h3> <x-callout type="warning" title="Caution"> <p>These options can cause permanent data loss and functional issues. Only enable if you fully understand the consequences.</p> </x-callout> <div class="w-full sm:w-96"> <x-forms.checkbox canGate="update" :canResource="$server" instantSave id="deleteUnusedVolumes" label="Delete Unused Volumes" helper="This option will remove all unused Docker volumes during cleanup.<br><br><strong>Warning: Data from stopped containers will be lost!</strong><br><br>Consequences include:<br> <ul class='list-disc pl-4 mt-2'> <li>Volumes not attached to running containers will be permanently deleted (volumes from stopped containers are affected).</li> <li>Data stored in deleted volumes cannot be recovered.</li> </ul>" /> <x-forms.checkbox canGate="update" :canResource="$server" instantSave id="deleteUnusedNetworks" label="Delete Unused Networks" helper="This option will remove all unused Docker networks during cleanup.<br><br><strong>Warning: Functionality may be lost and containers may not be able to communicate with each other!</strong><br><br>Consequences include:<br> <ul class='list-disc pl-4 mt-2'> <li>Networks not attached to running containers will be permanently deleted (networks used by stopped containers are affected).</li> <li>Containers may lose connectivity if required networks are removed.</li> </ul>" /> <x-forms.checkbox canGate="update" :canResource="$server" instantSave id="disableApplicationImageRetention" label="Disable Application Image Retention" helper="When enabled, Docker cleanup will delete all old application images regardless of per-application retention settings. Only the currently running image will be kept.<br><br><strong>Warning: This disables rollback capabilities for all applications on this server.</strong>" /> </div> </div> </form> <div class="mt-8"> <h3 class="mb-4">Recent executions <span class="text-xs text-neutral-500">(click to check output)</span></h3> <livewire:server.docker-cleanup-executions :server="$server" /> </div> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/sentinel.blade.php
resources/views/livewire/server/sentinel.blade.php
<div> <x-slot:title> {{ data_get_str($server, 'name')->limit(10) }} > Sentinel | Coolify </x-slot> <livewire:server.navbar :server="$server" /> <div class="flex flex-col h-full gap-8 sm:flex-row"> <x-server.sidebar :server="$server" activeMenu="sentinel" /> <div class="w-full"> <form wire:submit.prevent='submit'> <div class="flex gap-2 items-center pb-2"> <h2>Sentinel</h2> <x-helper helper="Sentinel reports your server's & container's health and collects metrics." /> @if ($server->isSentinelEnabled()) <div class="flex gap-2 items-center"> @if ($server->isSentinelLive()) <x-status.running status="In sync" noLoading title="{{ $sentinelUpdatedAt }}" /> <x-forms.button type="submit" canGate="update" :canResource="$server">Save</x-forms.button> <x-forms.button wire:click='restartSentinel' canGate="update" :canResource="$server">Restart</x-forms.button> <x-slide-over fullScreen> <x-slot:title>Sentinel Logs</x-slot:title> <x-slot:content> <livewire:project.shared.get-logs :server="$server" container="coolify-sentinel" displayName="Sentinel" :collapsible="false" lazy /> </x-slot:content> <x-forms.button @click="slideOverOpen=true">Logs</x-forms.button> </x-slide-over> @else <x-status.stopped status="Out of sync" noLoading title="{{ $sentinelUpdatedAt }}" /> <x-forms.button type="submit" canGate="update" :canResource="$server">Save</x-forms.button> <x-forms.button wire:click='restartSentinel' canGate="update" :canResource="$server">Sync</x-forms.button> <x-slide-over fullScreen> <x-slot:title>Sentinel Logs</x-slot:title> <x-slot:content> <livewire:project.shared.get-logs :server="$server" container="coolify-sentinel" displayName="Sentinel" :collapsible="false" lazy /> </x-slot:content> <x-forms.button @click="slideOverOpen=true">Logs</x-forms.button> </x-slide-over> @endif </div> @endif </div> <div class="flex flex-col gap-2"> <div class="w-96"> <x-forms.checkbox canGate="update" :canResource="$server" wire:model.live="isSentinelEnabled" label="Enable Sentinel" /> @if ($server->isSentinelEnabled()) @if (isDev()) <x-forms.checkbox canGate="update" :canResource="$server" id="isSentinelDebugEnabled" label="Enable Sentinel (with debug)" instantSave /> @endif <x-forms.checkbox canGate="update" :canResource="$server" instantSave id="isMetricsEnabled" label="Enable Metrics" /> @else @if (isDev()) <x-forms.checkbox id="isSentinelDebugEnabled" label="Enable Sentinel (with debug)" disabled instantSave /> @endif <x-forms.checkbox instantSave disabled id="isMetricsEnabled" label="Enable Metrics (enable Sentinel first)" /> @endif </div> @if (isDev() && $server->isSentinelEnabled()) <div class="pt-4" x-data="{ customImage: localStorage.getItem('sentinel_custom_docker_image_{{ $server->uuid }}') || '', saveCustomImage() { localStorage.setItem('sentinel_custom_docker_image_{{ $server->uuid }}', this.customImage); $wire.set('sentinelCustomDockerImage', this.customImage); } }" x-init="$wire.set('sentinelCustomDockerImage', customImage)"> <x-forms.input x-model="customImage" @input.debounce.500ms="saveCustomImage()" placeholder="e.g., sentinel:latest or myregistry/sentinel:dev" label="Custom Sentinel Docker Image (Dev Only)" helper="Override the default Sentinel Docker image for testing. Leave empty to use the default." /> </div> @endif @if ($server->isSentinelEnabled()) <div class="flex flex-wrap gap-2 sm:flex-nowrap items-end"> <x-forms.input canGate="update" :canResource="$server" type="password" id="sentinelToken" label="Sentinel token" required helper="Token for Sentinel." /> <x-forms.button canGate="update" :canResource="$server" wire:click="regenerateSentinelToken">Regenerate</x-forms.button> </div> <x-forms.input canGate="update" :canResource="$server" id="sentinelCustomUrl" required label="Coolify URL" helper="URL to your Coolify instance. If it is empty that means you do not have a FQDN set for your Coolify instance." /> <div class="flex flex-col gap-2"> <div class="flex flex-wrap gap-2 sm:flex-nowrap"> <x-forms.input canGate="update" :canResource="$server" id="sentinelMetricsRefreshRateSeconds" label="Metrics rate (seconds)" required helper="Interval used for gathering metrics. Lower values result in more disk space usage." /> <x-forms.input canGate="update" :canResource="$server" id="sentinelMetricsHistoryDays" label="Metrics history (days)" required helper="Number of days to retain metrics data for." /> <x-forms.input canGate="update" :canResource="$server" id="sentinelPushIntervalSeconds" label="Push interval (seconds)" required helper="Interval at which metrics data is sent to the collector." /> </div> </div> @endif </div> </form> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/index.blade.php
resources/views/livewire/server/index.blade.php
<div> <x-slot:title> Servers | Coolify </x-slot> <div class="flex items-center gap-2"> <h1>Servers</h1> @can('createAnyResource') <x-modal-input buttonTitle="+ Add" title="New Server" :closeOutside="false"> <livewire:server.create /> </x-modal-input> @endcan </div> <div class="subtitle">All your servers are here.</div> <div class="grid gap-4 lg:grid-cols-2 -mt-1"> @forelse ($servers as $server) <a href="{{ route('server.show', ['server_uuid' => data_get($server, 'uuid')]) }}" {{ wireNavigate() }} @class([ 'gap-2 border cursor-pointer coolbox group', 'border-red-500' => !$server->settings->is_reachable || $server->settings->force_disabled, ])> <div class="flex flex-col justify-center mx-6"> <div class="font-bold dark:text-white"> {{ $server->name }} </div> <div class="description"> {{ $server->description }}</div> <div class="flex gap-1 text-xs text-error"> @if (!$server->settings->is_reachable) <span>Not reachable</span> @endif @if (!$server->settings->is_reachable && !$server->settings->is_usable) & @endif @if (!$server->settings->is_usable) <span>Not usable by Coolify</span> @endif @if ($server->settings->force_disabled) <span>Disabled by the system</span> @endif </div> </div> <div class="flex-1"></div> </a> @empty <div> <div>No servers found. Without a server, you won't be able to do much.</div> </div> @endforelse @isset($error) <div class="text-center text-error"> <span>{{ $error }}</span> </div> @endisset </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/resources.blade.php
resources/views/livewire/server/resources.blade.php
<div> <x-slot:title> {{ data_get_str($server, 'name')->limit(10) }} > Server Resources | Coolify </x-slot> <livewire:server.navbar :server="$server" /> <div x-data="{ activeTab: 'managed' }" class="flex flex-col h-full gap-8 md:flex-row"> <div class="w-full"> <div class="flex flex-col"> <div class="flex gap-2"> <h2>Resources</h2> <x-forms.button wire:click="refreshStatus">Refresh</x-forms.button> </div> <div>Here you can find all resources that are managed by Coolify.</div> <div class="flex flex-row gap-4 py-10"> <div @class([ 'box-without-bg cursor-pointer dark:bg-coolgray-100 dark:text-white w-full text-center items-center justify-center', 'dark:bg-coollabs bg-coollabs text-white' => $activeTab === 'managed', ]) wire:click="loadManagedContainers"> Managed <div class="flex flex-col items-center justify-center"> <x-loading wire:loading wire:target="loadManagedContainers" /> </div> </div> <div @class([ 'box-without-bg cursor-pointer dark:bg-coolgray-100 dark:text-white w-full text-center items-center justify-center', 'dark:bg-coollabs bg-coollabs text-white' => $activeTab === 'unmanaged', ]) wire:click="loadUnmanagedContainers"> Unmanaged <div class="flex flex-col items-center justify-center"> <x-loading wire:loading wire:target="loadUnmanagedContainers" /> </div> </div> </div> </div> @if ($activeTab === 'managed') @php $managedResources = $server->definedResources()->sortBy('name', SORT_NATURAL); @endphp @if ($managedResources->count() > 0) <div class="flex flex-col"> <div class="flex flex-col"> <div class="overflow-x-auto"> <div class="inline-block min-w-full"> <div class="overflow-hidden"> <table class="min-w-full"> <thead> <tr> <th class="px-5 py-3 text-xs font-medium text-left uppercase"> Project </th> <th class="px-5 py-3 text-xs font-medium text-left uppercase"> Environment</th> <th class="px-5 py-3 text-xs font-medium text-left uppercase"> Name </th> <th class="px-5 py-3 text-xs font-medium text-left uppercase"> Type </th> <th class="px-5 py-3 text-xs font-medium text-left uppercase"> Status </th> </tr> </thead> <tbody> @foreach ($managedResources as $resource) <tr> <td class="px-5 py-4 text-sm whitespace-nowrap"> {{ data_get($resource->project(), 'name') }} </td> <td class="px-5 py-4 text-sm whitespace-nowrap"> {{ data_get($resource, 'environment.name') }} </td> <td class="px-5 py-4 text-sm whitespace-nowrap hover:underline"> <a class="" {{ wireNavigate() }} href="{{ $resource->link() }}">{{ $resource->name }} <x-internal-link /></a> </td> <td class="px-5 py-4 text-sm whitespace-nowrap"> {{ str($resource->type())->headline() }}</td> <td class="px-5 py-4 text-sm font-medium whitespace-nowrap"> @if ($resource->type() === 'service') <x-status.services :service="$resource" :showRefreshButton="false" /> @else <x-status.index :resource="$resource" :showRefreshButton="false" /> @endif </td> </tr> @endforeach </tbody> </table> </div> </div> </div> </div> </div> @else <div>No managed resources found.</div> @endif @elseif ($activeTab === 'unmanaged') @if (count($unmanagedContainers) > 0) <div class="flex flex-col"> <div class="flex flex-col"> <div class="overflow-x-auto"> <div class="inline-block min-w-full"> <div class="overflow-hidden"> <table class="min-w-full"> <thead> <tr> <th class="px-5 py-3 text-xs font-medium text-left uppercase"> Name </th> <th class="px-5 py-3 text-xs font-medium text-left uppercase"> Image </th> <th class="px-5 py-3 text-xs font-medium text-left uppercase"> Status </th> <th class="px-5 py-3 text-xs font-medium text-left uppercase"> Action </th> </tr> </thead> <tbody> @foreach (collect($unmanagedContainers)->sortBy('name', SORT_NATURAL) as $resource) <tr> <td class="px-5 py-4 text-sm whitespace-nowrap"> {{ data_get($resource, 'Names') }} </td> <td class="px-5 py-4 text-sm whitespace-nowrap"> {{ data_get($resource, 'Image') }} </td> <td class="px-5 py-4 text-sm whitespace-nowrap"> {{ data_get($resource, 'State') }} </td> <td class="flex gap-2 px-5 py-4 text-sm whitespace-nowrap"> @if (data_get($resource, 'State') === 'running') <x-forms.button wire:click="restartUnmanaged('{{ data_get($resource, 'ID') }}')" wire:key="{{ data_get($resource, 'ID') }}">Restart</x-forms.button> <x-forms.button isError wire:click="stopUnmanaged('{{ data_get($resource, 'ID') }}')" wire:key="{{ data_get($resource, 'ID') }}">Stop</x-forms.button> @elseif (data_get($resource, 'State') === 'exited') <x-forms.button wire:click="startUnmanaged('{{ data_get($resource, 'ID') }}')" wire:key="{{ data_get($resource, 'ID') }}">Start</x-forms.button> @elseif (data_get($resource, 'State') === 'restarting') <x-forms.button wire:click="stopUnmanaged('{{ data_get($resource, 'ID') }}')" wire:key="{{ data_get($resource, 'ID') }}">Stop</x-forms.button> @endif </td> </tr> @endforeach </tbody> </table> </div> </div> </div> </div> </div> @else <div>No unmanaged resources found.</div> @endif @endif </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/cloudflare-tunnel.blade.php
resources/views/livewire/server/cloudflare-tunnel.blade.php
<div> <x-slot:title> {{ data_get_str($server, 'name')->limit(10) }} > Cloudflare Tunnel | Coolify </x-slot> <livewire:server.navbar :server="$server" /> <div class="flex flex-col h-full gap-8 sm:flex-row"> <x-server.sidebar :server="$server" activeMenu="cloudflare-tunnel" /> <div class="w-full"> <div class="flex flex-col"> <div class="flex gap-2 items-center"> <h2>Cloudflare Tunnel</h2> <x-helper class="inline-flex" helper="If you are using Cloudflare Tunnel, enable this. It will proxy all SSH requests to your server through Cloudflare.<br> You then can close your server's SSH port in the firewall of your hosting provider.<br><span class='dark:text-warning'>If you choose manual configuration, Coolify does not install or set up Cloudflare (cloudflared) on your server.</span>" /> @if ($isCloudflareTunnelsEnabled) <span class="px-2 py-1 text-xs font-semibold text-green-800 bg-green-100 rounded dark:text-green-100 dark:bg-green-800"> Enabled </span> @endif </div> <div>Secure your servers with Cloudflare Tunnel.</div> </div> <div class="flex flex-col gap-2 pt-6"> @if ($isCloudflareTunnelsEnabled) <div class="flex flex-col gap-4"> <x-callout type="warning" title="Warning!"> If you disable Cloudflare Tunnel, you will need to update the server's IP address back to its real IP address in the server "General" settings. The server may become inaccessible if the IP address is not updated correctly. </x-callout> <div class="w-64"> @if ($server->ip_previous) <x-modal-confirmation title="Disable Cloudflare Tunnel?" buttonTitle="Disable Cloudflare Tunnel" isErrorButton submitAction="toggleCloudflareTunnels" :actions="[ 'Cloudflare Tunnel will be disabled for this server.', 'The server IP address will be updated to its previous IP address.', ]" confirmationText="DISABLE CLOUDFLARE TUNNEL" confirmationLabel="Please type the confirmation text to disable Cloudflare Tunnel." shortConfirmationLabel="Confirmation text" /> @else <x-modal-confirmation title="Disable Cloudflare Tunnel?" buttonTitle="Disable Cloudflare Tunnel" isErrorButton submitAction="toggleCloudflareTunnels" :actions="[ 'Cloudflare Tunnel will be disabled for this server.', 'You will need to update the server IP address to its real IP address.', 'The server may become inaccessible if the IP address is not updated correctly.', 'SSH access will revert to the standard port configuration.', ]" confirmationText="DISABLE CLOUDFLARE TUNNEL" confirmationLabel="Please type the confirmation text to disable Cloudflare Tunnel." shortConfirmationLabel="Confirmation text" /> @endif </div> </div> @elseif (!$server->isFunctional()) <x-callout type="info" title="Configuration Options" class="mb-4"> To <span class="font-semibold">automatically</span> configure Cloudflare Tunnel, please validate your server first. Then you will need a Cloudflare token and an SSH domain configured. <br /> To <span class="font-semibold">manually</span> configure Cloudflare Tunnel, please click <span wire:click="manualCloudflareConfig" class="underline cursor-pointer">here</span>, then you should validate the server. <br /><br /> For more information, please read our <a href="https://coolify.io/docs/knowledge-base/cloudflare/tunnels/server-ssh" target="_blank" class="underline">documentation</a>. </x-callout> @endif @if (!$isCloudflareTunnelsEnabled && $server->isFunctional()) <div class="flex flex-col pb-2"> <h3>Automated </h3> <a href="https://coolify.io/docs/knowledge-base/cloudflare/tunnels/server-ssh" target="_blank" class="text-xs underline hover:text-warning-600 dark:hover:text-warning-200">Docs<x-external-link /></a> </div> <div class="flex gap-2"> <x-slide-over @automated.window="slideOverOpen = true" fullScreen> <x-slot:title>Cloudflare Tunnel Configuration</x-slot:title> <x-slot:content> <livewire:activity-monitor header="Logs" fullHeight /> </x-slot:content> </x-slide-over> @can('update', $server) <form @submit.prevent="$wire.dispatch('automatedCloudflareConfig')" class="flex flex-col gap-2 w-full"> <x-forms.input id="cloudflare_token" required label="Cloudflare Token" type="password" /> <x-forms.input id="ssh_domain" label="Configured SSH Domain" required helper="The SSH domain you configured in Cloudflare. Make sure there is no protocol like http(s):// so you provide a FQDN not a URL. <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/cloudflare/tunnels/server-ssh' target='_blank'>Documentation</a>" /> <x-forms.button type="submit" isHighlighted>Continue</x-forms.button> </form> @else <x-callout type="warning" title="Permission Required" class="mb-4"> You don't have permission to configure Cloudflare Tunnel for this server. </x-callout> @endcan </div> @script <script> $wire.$on('automatedCloudflareConfig', () => { try { window.dispatchEvent(new CustomEvent('automated')); $wire.$call('automatedCloudflareConfig'); } catch (error) { console.error(error); } }); </script> @endscript </div> <h3 class="pt-6 pb-2">Manual</h3> <div class="pl-2"> @can('update', $server) <x-modal-confirmation buttonFullWidth title="I manually configured Cloudflare Tunnel?" buttonTitle="I manually configured Cloudflare Tunnel" submitAction="manualCloudflareConfig" :actions="[ 'You set everything up manually, including in Cloudflare and on the server (cloudflared is running).', 'If you missed something, the connection will not work.', ]" confirmationText="I manually configured Cloudflare Tunnel" confirmationLabel="Please type the confirmation text to confirm that you manually configured Cloudflare Tunnel." shortConfirmationLabel="Confirmation text" /> @else <x-callout type="warning" title="Permission Required" class="mb-4"> You don't have permission to configure Cloudflare Tunnel for this server. </x-callout> @endcan </div> @endif </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/log-drains.blade.php
resources/views/livewire/server/log-drains.blade.php
<div> <x-slot:title> {{ data_get_str($server, 'name')->limit(10) }} > Log Drains | Coolify </x-slot> <livewire:server.navbar :server="$server" /> <div class="flex flex-col h-full gap-8 sm:flex-row"> <x-server.sidebar :server="$server" activeMenu="log-drains" /> <div class="w-full"> @if ($server->isFunctional()) <div class="flex gap-2 items-center"> <h2>Log Drains</h2> <x-loading wire:target="instantSave" wire:loading.delay /> </div> <div>Sends service logs to 3rd party tools.</div> <div class="flex flex-col gap-4 pt-4"> <div class="p-4 border dark:border-coolgray-300 border-neutral-200"> <form wire:submit='submit("newrelic")' class="flex flex-col"> <h3>New Relic</h3> <div class="w-32"> @if ($isLogDrainAxiomEnabled || $isLogDrainCustomEnabled) <x-forms.checkbox disabled id="isLogDrainNewRelicEnabled" label="Enabled" /> @else <x-forms.checkbox instantSave canGate="update" :canResource="$server" id="isLogDrainNewRelicEnabled" label="Enabled" /> @endif </div> <div class="flex flex-col gap-4"> <div class="flex flex-col w-full gap-2 xl:flex-row"> @if ($server->isLogDrainEnabled()) <x-forms.input disabled type="password" required id="logDrainNewRelicLicenseKey" label="License Key" /> <x-forms.input disabled required id="logDrainNewRelicBaseUri" placeholder="https://log-api.eu.newrelic.com/log/v1" helper="For EU use: https://log-api.eu.newrelic.com/log/v1<br>For US use: https://log-api.newrelic.com/log/v1" label="Endpoint" /> @else <x-forms.input canGate="update" :canResource="$server" type="password" required id="logDrainNewRelicLicenseKey" label="License Key" /> <x-forms.input canGate="update" :canResource="$server" required id="logDrainNewRelicBaseUri" placeholder="https://log-api.eu.newrelic.com/log/v1" helper="For EU use: https://log-api.eu.newrelic.com/log/v1<br>For US use: https://log-api.newrelic.com/log/v1" label="Endpoint" /> @endif </div> </div> <div class="flex justify-end gap-4 pt-6"> <x-forms.button canGate="update" :canResource="$server" type="submit"> Save </x-forms.button> </div> </form> <h3>Axiom</h3> <div class="w-32"> @if ($isLogDrainNewRelicEnabled || $isLogDrainCustomEnabled) <x-forms.checkbox disabled id="isLogDrainAxiomEnabled" label="Enabled" /> @else <x-forms.checkbox instantSave canGate="update" :canResource="$server" id="isLogDrainAxiomEnabled" label="Enabled" /> @endif </div> <form wire:submit='submit("axiom")' class="flex flex-col"> <div class="flex flex-col gap-4"> <div class="flex flex-col w-full gap-2 xl:flex-row"> @if ($server->isLogDrainEnabled()) <x-forms.input disabled type="password" required id="logDrainAxiomApiKey" label="API Key" /> <x-forms.input disabled required id="logDrainAxiomDatasetName" label="Dataset Name" /> @else <x-forms.input canGate="update" :canResource="$server" type="password" required id="logDrainAxiomApiKey" label="API Key" /> <x-forms.input canGate="update" :canResource="$server" required id="logDrainAxiomDatasetName" label="Dataset Name" /> @endif </div> </div> <div class="flex justify-end gap-4 pt-6"> <x-forms.button canGate="update" :canResource="$server" type="submit"> Save </x-forms.button> </div> </form> <h3>Custom FluentBit</h3> <div class="w-32"> @if ($isLogDrainNewRelicEnabled || $isLogDrainAxiomEnabled) <x-forms.checkbox disabled id="isLogDrainCustomEnabled" label="Enabled" /> @else <x-forms.checkbox instantSave canGate="update" :canResource="$server" id="isLogDrainCustomEnabled" label="Enabled" /> @endif </div> <form wire:submit='submit("custom")' class="flex flex-col"> <div class="flex flex-col gap-4"> @if ($server->isLogDrainEnabled()) <x-forms.textarea disabled rows="6" required id="logDrainCustomConfig" label="Custom FluentBit Configuration" /> <x-forms.textarea disabled id="logDrainCustomConfigParser" label="Custom Parser Configuration" /> @else <x-forms.textarea canGate="update" :canResource="$server" rows="6" required id="logDrainCustomConfig" label="Custom FluentBit Configuration" /> <x-forms.textarea canGate="update" :canResource="$server" id="logDrainCustomConfigParser" label="Custom Parser Configuration" /> @endif </div> <div class="flex justify-end gap-4 pt-6"> <x-forms.button canGate="update" :canResource="$server" type="submit"> Save </x-forms.button> </div> </form> </div> </div> @else <div>Server is not validated. Validate first.</div> @endif </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/create.blade.php
resources/views/livewire/server/create.blade.php
<div class="w-full"> <div class="flex flex-col gap-4"> @can('viewAny', App\Models\CloudProviderToken::class) <div> <x-modal-input title="Connect a Hetzner Server"> <x-slot:content> <div class="relative gap-2 cursor-pointer coolbox group"> <div class="flex items-center gap-4 mx-6"> <svg class="w-10 h-10 flex-shrink-0" 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> <div class="flex flex-col justify-center flex-1"> <div class="box-title">Connect a Hetzner Server</div> <div class="box-description"> Deploy servers directly from your Hetzner Cloud account </div> </div> </div> </div> </x-slot:content> <livewire:server.new.by-hetzner :private_keys="$private_keys" :limit_reached="$limit_reached" /> </x-modal-input> </div> <div class="border-t dark:border-coolgray-300 my-4"></div> @endcan <div> <h3 class="pb-2">Add Server by IP Address</h3> <livewire:server.new.by-ip :private_keys="$private_keys" :limit_reached="$limit_reached" /> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/proxy.blade.php
resources/views/livewire/server/proxy.blade.php
@php use App\Enums\ProxyTypes; @endphp <div> @if ($server->proxyType()) <div x-init="$wire.loadProxyConfiguration"> @if ($selectedProxy !== 'NONE') <form wire:submit='submit'> <div class="flex items-center gap-2"> <h2>Configuration</h2> @if ($server->proxy->status === 'exited' || $server->proxy->status === 'removing') @can('update', $server) <x-modal-confirmation title="Confirm Proxy Switching?" buttonTitle="Switch Proxy" submitAction="changeProxy" :actions="['Custom proxy configurations may be reset to their default settings.']" warningMessage="This operation may cause issues. Please refer to the guide <a href='https://coolify.io/docs/knowledge-base/server/proxies#switch-between-proxies' target='_blank' class='underline text-white'>switching between proxies</a> before proceeding!" step2ButtonText="Switch Proxy" :confirmWithText="false" :confirmWithPassword="false"> </x-modal-confirmation> @endcan @else <x-forms.button canGate="update" :canResource="$server" wire:click="$dispatch('error', 'Currently running proxy must be stopped before switching proxy')">Switch Proxy</x-forms.button> @endif <x-forms.button canGate="update" :canResource="$server" type="submit">Save</x-forms.button> </div> <div class="pb-4">Configure your proxy settings and advanced options.</div> @if ( $server->proxy->last_applied_settings && $server->proxy->last_saved_settings !== $server->proxy->last_applied_settings) <x-callout type="warning" title="Configuration Out of Sync" class="my-4"> The saved proxy configuration differs from the currently running configuration. Restart the proxy to apply your changes. </x-callout> @endif <h3>Advanced</h3> <div class="pb-6 w-96"> <x-forms.checkbox canGate="update" :canResource="$server" helper="If set, all resources will only have docker container labels for {{ str($server->proxyType())->title() }}.<br>For applications, labels needs to be regenerated manually. <br>Resources needs to be restarted." id="generateExactLabels" label="Generate labels only for {{ str($server->proxyType())->title() }}" instantSave /> <x-forms.checkbox canGate="update" :canResource="$server" instantSave="instantSaveRedirect" id="redirectEnabled" label="Override default request handler" helper="Requests to unknown hosts or stopped services will receive a 503 response or be redirected to the URL you set below (need to enable this first)." /> @if ($redirectEnabled) <x-forms.input canGate="update" :canResource="$server" placeholder="https://app.coolify.io" id="redirectUrl" label="Redirect to (optional)" /> @endif </div> @php $proxyTitle = $server->proxyType() === ProxyTypes::TRAEFIK->value ? 'Traefik (Coolify Proxy)' : 'Caddy (Coolify Proxy)'; @endphp @if ($server->proxyType() === ProxyTypes::TRAEFIK->value || $server->proxyType() === 'CADDY') <div @if($server->proxyType() === ProxyTypes::TRAEFIK->value) x-data="{ traefikWarningsDismissed: localStorage.getItem('callout-dismissed-traefik-warnings-{{ $server->id }}') === 'true' }" @endif> <div class="flex items-center gap-2"> <h3>{{ $proxyTitle }}</h3> @can('update', $server) <div wire:loading wire:target="loadProxyConfiguration"> <x-forms.button disabled>Reset Configuration</x-forms.button> </div> <div wire:loading.remove wire:target="loadProxyConfiguration"> @if ($proxySettings) <x-modal-confirmation title="Reset Proxy Configuration?" buttonTitle="Reset Configuration" submitAction="resetProxyConfiguration" :actions="[ 'Reset proxy configuration to default settings', 'All custom configurations will be lost', 'Custom ports and entrypoints will be removed', ]" confirmationText="{{ $server->name }}" confirmationLabel="Please confirm by entering the server name below" shortConfirmationLabel="Server Name" step2ButtonText="Reset Configuration" :confirmWithPassword="false" :confirmWithText="true"> </x-modal-confirmation> @endif </div> @endcan @if ($server->proxyType() === ProxyTypes::TRAEFIK->value) <button type="button" x-show="traefikWarningsDismissed" @click="traefikWarningsDismissed = false; localStorage.removeItem('callout-dismissed-traefik-warnings-{{ $server->id }}')" class="p-1.5 rounded hover:bg-warning-100 dark:hover:bg-warning-900/30 transition-colors" title="Show Traefik warnings"> <svg class="w-4 h-4 text-warning-600 dark:text-warning-400" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="M240.26 186.1L152.81 34.23a28.74 28.74 0 0 0-49.62 0L15.74 186.1a27.45 27.45 0 0 0 0 27.71A28.31 28.31 0 0 0 40.55 228h174.9a28.31 28.31 0 0 0 24.79-14.19a27.45 27.45 0 0 0 .02-27.71m-20.8 15.7a4.46 4.46 0 0 1-4 2.2H40.55a4.46 4.46 0 0 1-4-2.2a3.56 3.56 0 0 1 0-3.73L124 46.2a4.77 4.77 0 0 1 8 0l87.44 151.87a3.56 3.56 0 0 1 .02 3.73M116 136v-32a12 12 0 0 1 24 0v32a12 12 0 0 1-24 0m28 40a16 16 0 1 1-16-16a16 16 0 0 1 16 16"></path> </svg> </button> @endif </div> @if ($server->proxyType() === ProxyTypes::TRAEFIK->value) <div x-show="!traefikWarningsDismissed" x-transition:enter="transition ease-out duration-200" x-transition:enter-start="opacity-0 -translate-y-2" x-transition:enter-end="opacity-100 translate-y-0" x-transition:leave="transition ease-in duration-150" x-transition:leave-start="opacity-100 translate-y-0" x-transition:leave-end="opacity-0 -translate-y-2"> @if ($server->detected_traefik_version === 'latest') <x-callout dismissible onDismiss="traefikWarningsDismissed = true; localStorage.setItem('callout-dismissed-traefik-warnings-{{ $server->id }}', 'true')" type="warning" title="Using 'latest' Traefik Tag" class="my-4"> Your proxy container is running the <span class="font-mono">latest</span> tag. While this ensures you always have the newest version, it may introduce unexpected breaking changes. <br><br> <strong>Recommendation:</strong> Pin to a specific version (e.g., <span class="font-mono">traefik:{{ $this->latestTraefikVersion }}</span>) to ensure stability and predictable updates. </x-callout> @elseif($this->isTraefikOutdated) <x-callout dismissible onDismiss="traefikWarningsDismissed = true; localStorage.setItem('callout-dismissed-traefik-warnings-{{ $server->id }}', 'true')" type="warning" title="Traefik Patch Update Available" class="my-4"> Your Traefik proxy container is running version <span class="font-mono">v{{ $server->detected_traefik_version }}</span>, but version <span class="font-mono">{{ $this->latestTraefikVersion }}</span> is available. <br><br> <strong>Recommendation:</strong> Update to the latest patch version for security fixes and bug fixes. Please test in a non-production environment first. </x-callout> @endif @if ($this->newerTraefikBranchAvailable) <x-callout dismissible onDismiss="traefikWarningsDismissed = true; localStorage.setItem('callout-dismissed-traefik-warnings-{{ $server->id }}', 'true')" type="info" title="New Minor Traefik Version Available" class="my-4"> A new minor version of Traefik is available: <span class="font-mono">{{ $this->newerTraefikBranchAvailable }}</span> <br><br> You are currently running <span class="font-mono">v{{ $server->detected_traefik_version }}</span>. Upgrading to <span class="font-mono">{{ $this->newerTraefikBranchAvailable }}</span> will give you access to new features and improvements. <br><br> <strong>Important:</strong> Before upgrading to a new minor version, please read the <a href="https://github.com/traefik/traefik/releases" target="_blank" class="underline text-white">Traefik changelog</a> to understand breaking changes and new features. <br><br> <strong>Recommendation:</strong> Test the upgrade in a non-production environment first. </x-callout> @endif </div> @endif </div> @endif <div wire:loading wire:target="loadProxyConfiguration" class="pt-4"> <x-loading text="Loading proxy configuration..." /> </div> <div wire:loading.remove wire:target="loadProxyConfiguration"> @if ($proxySettings) <div class="flex flex-col gap-2 pt-2"> <x-forms.textarea canGate="update" :canResource="$server" useMonacoEditor monacoEditorLanguage="yaml" label="Configuration file ( {{ $this->configurationFilePath }} )" name="proxySettings" id="proxySettings" rows="30" /> </div> @endif </div> </form> @elseif($selectedProxy === 'NONE') <div class="flex items-center gap-2"> <h2>Configuration</h2> @can('update', $server) <x-forms.button wire:click.prevent="changeProxy">Switch Proxy</x-forms.button> @endcan </div> <div class="pt-2 pb-4">Custom (None) Proxy Selected</div> @else <div class="flex items-center gap-2"> <h2>Configuration</h2> @can('update', $server) <x-forms.button wire:click.prevent="changeProxy">Switch Proxy</x-forms.button> @endcan </div> @endif @else <div> <h2>Configuration</h2> <div class="subtitle">Select a proxy you would like to use on this server.</div> @can('update', $server) <div class="grid gap-4"> <x-forms.button class="coolbox" wire:click="selectProxy('NONE')"> Custom (None) </x-forms.button> <x-forms.button class="coolbox" wire:click="selectProxy('TRAEFIK')"> Traefik </x-forms.button> <x-forms.button class="coolbox" wire:click="selectProxy('CADDY')"> Caddy </x-forms.button> {{-- <x-forms.button disabled class="box"> Nginx </x-forms.button> --}} </div> @else <x-callout type="warning" title="Permission Required" class="mb-4"> You don't have permission to configure proxy settings for this server. </x-callout> @endcan </div> @endif </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/show.blade.php
resources/views/livewire/server/show.blade.php
<div x-data x-init="@if ($server->hetzner_server_id && $server->cloudProviderToken && !$hetznerServerStatus) $wire.checkHetznerServerStatus() @endif"> <x-slot:title> {{ data_get_str($server, 'name')->limit(10) }} > General | Coolify </x-slot> <livewire:server.navbar :server="$server" /> <div class="flex flex-col h-full gap-8 sm:flex-row"> <x-server.sidebar :server="$server" activeMenu="general" /> <div class="w-full"> <form wire:submit.prevent='submit' class="flex flex-col"> <div class="flex gap-2"> <h2>General</h2> @if ($server->hetzner_server_id) <div class="flex items-center"> <div @class([ 'flex items-center gap-1.5 px-2 py-1 text-xs font-semibold rounded transition-all', 'bg-white dark:bg-coolgray-100 dark:text-white', ]) @if (in_array($hetznerServerStatus, ['starting', 'initializing'])) wire:poll.5s="checkHetznerServerStatus" @endif> <svg class="w-4 h-4" 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> @if ($hetznerServerStatus) <span class="pl-1.5"> @if (in_array($hetznerServerStatus, ['starting', 'initializing'])) <svg class="inline animate-spin h-3 w-3 mr-1 text-coollabs dark:text-warning-500" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"> </path> </svg> @endif <span @class([ 'text-green-500' => $hetznerServerStatus === 'running', 'text-red-500' => $hetznerServerStatus === 'off', ])> {{ ucfirst($hetznerServerStatus) }} </span> </span> @else <span class="pl-1.5"> <svg class="inline animate-spin h-3 w-3 mr-1 text-coollabs dark:text-warning-500" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"> </path> </svg> <span>Checking status...</span> </span> @endif </div> <button wire:loading.remove wire:target="checkHetznerServerStatus" title="Refresh Status" wire:click.prevent='checkHetznerServerStatus(true)' class="mx-1 dark:hover:fill-white fill-black dark:fill-warning"> <svg class="w-4 h-4" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M12 2a10.016 10.016 0 0 0-7 2.877V3a1 1 0 1 0-2 0v4.5a1 1 0 0 0 1 1h4.5a1 1 0 0 0 0-2H6.218A7.98 7.98 0 0 1 20 12a1 1 0 0 0 2 0A10.012 10.012 0 0 0 12 2zm7.989 13.5h-4.5a1 1 0 0 0 0 2h2.293A7.98 7.98 0 0 1 4 12a1 1 0 0 0-2 0a9.986 9.986 0 0 0 16.989 7.133V21a1 1 0 0 0 2 0v-4.5a1 1 0 0 0-1-1z" /> </svg> </button> <button wire:loading wire:target="checkHetznerServerStatus" title="Refreshing Status" class="mx-1 dark:hover:fill-white fill-black dark:fill-warning"> <svg class="w-4 h-4 animate-spin" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M12 2a10.016 10.016 0 0 0-7 2.877V3a1 1 0 1 0-2 0v4.5a1 1 0 0 0 1 1h4.5a1 1 0 0 0 0-2H6.218A7.98 7.98 0 0 1 20 12a1 1 0 0 0 2 0A10.012 10.012 0 0 0 12 2zm7.989 13.5h-4.5a1 1 0 0 0 0 2h2.293A7.98 7.98 0 0 1 4 12a1 1 0 0 0-2 0a9.986 9.986 0 0 0 16.989 7.133V21a1 1 0 0 0 2 0v-4.5a1 1 0 0 0-1-1z" /> </svg> </button> </div> @if ($server->cloudProviderToken && !$server->isFunctional() && $hetznerServerStatus === 'off') <x-forms.button wire:click.prevent='startHetznerServer' isHighlighted canGate="update" :canResource="$server"> Power On </x-forms.button> @endif @endif @if ($isValidating) <div class="flex items-center gap-1.5 px-2 py-1 text-xs font-semibold rounded bg-warning-100 dark:bg-warning-900/30 text-warning-700 dark:text-warning-400"> <svg class="inline animate-spin h-3 w-3" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"> </path> </svg> <span>Validating...</span> </div> @endif @if ($server->id === 0) <x-modal-confirmation title="Confirm Server Settings Change?" buttonTitle="Save" submitAction="submit" :actions="[ 'If you misconfigure the server, you could lose a lot of functionalities of Coolify.', ]" :confirmWithText="false" :confirmWithPassword="false" step2ButtonText="Save" canGate="update" :canResource="$server" /> @else <x-forms.button type="submit" canGate="update" :canResource="$server" :disabled="$isValidating">Save</x-forms.button> @if ($server->isFunctional()) <x-slide-over closeWithX fullScreen> <x-slot:title>Validate & configure</x-slot:title> <x-slot:content> <livewire:server.validate-and-install :server="$server" ask /> </x-slot:content> <x-forms.button @click="slideOverOpen=true" wire:click.prevent='validateServer' isHighlighted canGate="update" :canResource="$server"> Revalidate server </x-forms.button> </x-slide-over> @endif @endif </div> @if ($server->isFunctional()) Server is reachable and validated. @else You can't use this server until it is validated. @endif @if ($isValidating) <div x-data="{ slideOverOpen: true }"> <x-slide-over closeWithX fullScreen> <x-slot:title>Validation in Progress</x-slot:title> <x-slot:content> <livewire:server.validate-and-install :server="$server" /> </x-slot:content> </x-slide-over> </div> @endif @if ( (!$isReachable || !$isUsable) && $server->id !== 0 && !$isValidating && !in_array($hetznerServerStatus, ['initializing', 'starting', 'stopping', 'off'])) <x-slide-over closeWithX fullScreen> <x-slot:title>Validate & configure</x-slot:title> <x-slot:content> <livewire:server.validate-and-install :server="$server" /> </x-slot:content> <x-forms.button @click="slideOverOpen=true" class="mt-8 mb-4 w-full font-bold box-without-bg bg-coollabs hover:bg-coollabs-100" wire:click.prevent='validateServer' isHighlighted> Validate Server & Install Docker Engine </x-forms.button> </x-slide-over> @if ($server->validation_logs) <h4>Previous Validation Logs</h4> <div class="pb-8"> {!! $server->validation_logs !!} </div> @endif @endif @if ((!$isReachable || !$isUsable) && $server->id === 0) <x-forms.button class="mt-8 mb-4 font-bold box-without-bg bg-coollabs hover:bg-coollabs-100" wire:click.prevent='checkLocalhostConnection' isHighlighted> Validate Server </x-forms.button> @endif @if ($server->isForceDisabled() && isCloud()) <x-callout type="danger" title="Server Disabled" class="mt-4"> The system has disabled the server because you have exceeded the number of servers for which you have paid. </x-callout> @endif <div class="flex flex-col gap-2 pt-4"> <div class="flex flex-col gap-2 w-full lg:flex-row"> <x-forms.input canGate="update" :canResource="$server" id="name" label="Name" required :disabled="$isValidating" /> <x-forms.input canGate="update" :canResource="$server" id="description" label="Description" :disabled="$isValidating" /> @if (!$isSwarmWorker && !$isBuildServer) <x-forms.input canGate="update" :canResource="$server" placeholder="https://example.com" id="wildcardDomain" label="Wildcard Domain" helper='A wildcard domain allows you to receive a randomly generated domain for your new applications. <br><br>For instance, if you set "https://example.com" as your wildcard domain, your applications will receive domains like "https://randomId.example.com".' :disabled="$isValidating" /> @endif </div> <div class="flex flex-col gap-2 w-full lg:flex-row"> <x-forms.input canGate="update" :canResource="$server" type="password" id="ip" label="IP Address/Domain" helper="An IP Address (127.0.0.1) or domain (example.com). Make sure there is no protocol like http(s):// so you provide a FQDN not a URL." required :disabled="$isValidating" /> <div class="flex gap-2"> <x-forms.input canGate="update" :canResource="$server" id="user" label="User" required :disabled="$isValidating" /> <x-forms.input canGate="update" :canResource="$server" type="number" id="port" label="Port" required :disabled="$isValidating" /> </div> </div> <div class="w-full"> <div class="flex items-center mb-1"> <label for="serverTimezone">Server Timezone</label> <x-helper class="ml-2" helper="Server's timezone. This is used for backups, cron jobs, etc." /> </div> @can('update', $server) @if ($isValidating) <div class="relative"> <div class="inline-flex relative items-center w-64"> <input readonly disabled autocomplete="off" class="w-full input opacity-50 cursor-not-allowed" value="{{ $serverTimezone ?: 'No timezone set' }}" placeholder="Server Timezone"> <svg class="absolute right-0 mr-2 w-4 h-4 opacity-50" 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="M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" /> </svg> </div> </div> @else <div x-data="{ open: false, search: '{{ $serverTimezone ?: '' }}', timezones: @js($this->timezones), placeholder: '{{ $serverTimezone ? 'Search timezone...' : 'Select Server Timezone' }}', init() { this.$watch('search', value => { if (value === '') { this.open = true; } }) } }"> <div class="relative"> <div class="inline-flex relative items-center w-64"> <input autocomplete="off" wire:dirty.class.remove='dark:focus:ring-coolgray-300 dark:ring-coolgray-300' wire:dirty.class="dark:focus:ring-warning dark:ring-warning" x-model="search" @focus="open = true" @click.away="open = false" @input="open = true" class="w-full input" :placeholder="placeholder" wire:model="serverTimezone"> <svg class="absolute right-0 mr-2 w-4 h-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" @click="open = true"> <path stroke-linecap="round" stroke-linejoin="round" d="M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" /> </svg> </div> <div x-show="open" class="overflow-auto overflow-x-hidden absolute z-50 mt-1 w-64 max-h-60 bg-white rounded-md border shadow-lg dark:bg-coolgray-100 dark:border-coolgray-200 scrollbar"> <template x-for="timezone in timezones.filter(tz => tz.toLowerCase().includes(search.toLowerCase()))" :key="timezone"> <div @click="search = timezone; open = false; $wire.set('serverTimezone', timezone); $wire.submit()" class="px-4 py-2 text-gray-800 cursor-pointer hover:bg-gray-100 dark:hover:bg-coolgray-300 dark:text-gray-200" x-text="timezone"></div> </template> </div> </div> </div> @endif @else <div class="relative"> <div class="inline-flex relative items-center w-64"> <input readonly disabled autocomplete="off" class="w-full input opacity-50 cursor-not-allowed" value="{{ $serverTimezone ?: 'No timezone set' }}" placeholder="Server Timezone"> <svg class="absolute right-0 mr-2 w-4 h-4 opacity-50" 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="M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" /> </svg> </div> </div> @endcan </div> <div class="w-full"> @if (!$server->isLocalhost()) <div class="w-96"> @if ($isBuildServerLocked) <x-forms.checkbox disabled instantSave id="isBuildServer" helper="You can't use this server as a build server because it has defined resources." label="Use it as a build server?" /> @else <x-forms.checkbox canGate="update" :canResource="$server" instantSave id="isBuildServer" label="Use it as a build server?" :disabled="$isValidating" /> @endif </div> @endif </div> </div> </form> @if (!$server->hetzner_server_id && $availableHetznerTokens->isNotEmpty()) <div class="pt-6"> <h3>Link to Hetzner Cloud</h3> <p class="pb-4 text-sm dark:text-neutral-400"> Link this server to a Hetzner Cloud instance to enable power controls and status monitoring. </p> <div class="flex flex-wrap gap-4 items-end"> <div class="w-72"> <x-forms.select wire:model="selectedHetznerTokenId" label="Hetzner Token" canGate="update" :canResource="$server"> <option value="">Select a token...</option> @foreach ($availableHetznerTokens as $token) <option value="{{ $token->id }}">{{ $token->name }}</option> @endforeach </x-forms.select> </div> <div class="w-48"> <x-forms.input wire:model="manualHetznerServerId" label="Server ID" placeholder="e.g., 12345678" helper="Enter the Hetzner Server ID from your Hetzner Cloud console" canGate="update" :canResource="$server" /> </div> <x-forms.button wire:click="searchHetznerServerById" wire:loading.attr="disabled" canGate="update" :canResource="$server"> <span wire:loading.remove wire:target="searchHetznerServerById">Search by ID</span> <span wire:loading wire:target="searchHetznerServerById">Searching...</span> </x-forms.button> <div class="self-end pb-2 text-sm dark:text-neutral-500">OR</div> <x-forms.button wire:click="searchHetznerServer" wire:loading.attr="disabled" canGate="update" :canResource="$server"> <span wire:loading.remove wire:target="searchHetznerServer">Search by IP</span> <span wire:loading wire:target="searchHetznerServer">Searching...</span> </x-forms.button> </div> @if ($hetznerSearchError) <div class="mt-4 p-4 border border-red-500 rounded-md bg-red-50 dark:bg-red-900/20"> <p class="text-red-600 dark:text-red-400">{{ $hetznerSearchError }}</p> </div> @endif @if ($hetznerNoMatchFound) <div class="mt-4 p-4 border border-yellow-500 rounded-md bg-yellow-50 dark:bg-yellow-900/20"> <p class="text-yellow-600 dark:text-yellow-400"> @if ($manualHetznerServerId) No Hetzner server found with ID: {{ $manualHetznerServerId }} @else No Hetzner server found matching IP: {{ $server->ip }} @endif </p> <p class="text-sm dark:text-neutral-400 mt-1"> Try a different token, enter the Server ID manually, or verify the details are correct. </p> </div> @endif @if ($matchedHetznerServer) <div class="mt-4 p-4 border border-green-500 rounded-md bg-green-50 dark:bg-green-900/20"> <h4 class="font-semibold text-green-700 dark:text-green-400 mb-2">Match Found!</h4> <div class="grid grid-cols-2 gap-2 text-sm mb-4"> <div><span class="font-medium">Name:</span> {{ $matchedHetznerServer['name'] }}</div> <div><span class="font-medium">ID:</span> {{ $matchedHetznerServer['id'] }}</div> <div><span class="font-medium">Status:</span> {{ ucfirst($matchedHetznerServer['status']) }}</div> <div><span class="font-medium">Type:</span> {{ data_get($matchedHetznerServer, 'server_type.name', 'Unknown') }}</div> </div> <x-forms.button wire:click="linkToHetzner" isHighlighted canGate="update" :canResource="$server"> Link This Server </x-forms.button> </div> @endif </div> @endif </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/new/by-ip.blade.php
resources/views/livewire/server/new/by-ip.blade.php
<div class="w-full"> @if ($limit_reached) <x-limit-reached name="servers" /> @else <form class="flex flex-col w-full gap-2" wire:submit='submit'> <div class="flex w-full gap-2 flex-wrap sm:flex-nowrap"> <x-forms.input id="name" label="Name" required /> <x-forms.input id="description" label="Description" /> </div> <div class="flex gap-2 flex-wrap sm:flex-nowrap"> <x-forms.input id="ip" label="IP Address/Domain" required helper="An IP Address (127.0.0.1) or domain (example.com)." /> <x-forms.input type="number" id="port" label="Port" required /> </div> <x-forms.input id="user" label="User" required /> <div class="text-xs dark:text-warning text-coollabs ">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>.</div> <x-forms.select label="Private Key" id="private_key_id"> <option disabled>Select a private key</option> @foreach ($private_keys as $key) @if ($loop->first) <option selected value="{{ $key->id }}">{{ $key->name }}</option> @else <option value="{{ $key->id }}">{{ $key->name }}</option> @endif @endforeach </x-forms.select> <div class=""> <x-forms.checkbox instantSave type="checkbox" id="is_build_server" helper="Build servers are used to build your applications, so you cannot deploy applications to it." label="Use it as a build server?" /> </div> <x-forms.button type="submit"> Continue </x-forms.button> </form> @endif </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/new/by-hetzner.blade.php
resources/views/livewire/server/new/by-hetzner.blade.php
<div class="w-full"> @if ($limit_reached) <x-limit-reached name="servers" /> @else @if ($current_step === 1) <div class="flex flex-col w-full gap-4"> @if ($available_tokens->count() > 0) <div class="flex gap-2"> <div class="flex-1"> <x-forms.select label="Select Hetzner Token" id="selected_token_id" wire:change="selectToken($event.target.value)" required> <option value="">Select a saved token...</option> @foreach ($available_tokens as $token) <option value="{{ $token->id }}"> {{ $token->name ?? 'Hetzner Token' }} </option> @endforeach </x-forms.select> </div> <div class="flex items-end"> <x-forms.button canGate="create" :canResource="App\Models\Server::class" wire:click="nextStep" :disabled="!$selected_token_id"> Continue </x-forms.button> </div> </div> <div class="text-center text-sm dark:text-neutral-500">OR</div> @endif <x-modal-input isFullWidth buttonTitle="{{ $available_tokens->count() > 0 ? '+ Add New Token' : 'Add Hetzner Token' }}" title="Add Hetzner Token"> <livewire:security.cloud-provider-token-form :modal_mode="true" provider="hetzner" /> </x-modal-input> </div> @elseif ($current_step === 2) @if ($loading_data) <div class="flex items-center justify-center py-8"> <div class="text-center"> <div class="animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto"></div> <p class="mt-4 text-sm dark:text-neutral-400">Loading Hetzner data...</p> </div> </div> @else <form class="flex flex-col w-full gap-2" wire:submit='submit'> <div> <x-forms.input id="server_name" label="Server Name" helper="A friendly name for your server." /> </div> <div> <x-forms.select label="Location" id="selected_location" wire:model.live="selected_location" required> <option value="">Select a location...</option> @foreach ($locations as $location) <option value="{{ $location['name'] }}"> {{ $location['city'] }} - {{ $location['country'] }} </option> @endforeach </x-forms.select> </div> <div> <x-forms.select label="Server Type" id="selected_server_type" wire:model.live="selected_server_type" helper="Learn more about <a class='inline-block underline dark:text-white' href='https://www.hetzner.com/cloud/' target='_blank'>Hetzner server types</a>" required :disabled="!$selected_location"> <option value=""> {{ $selected_location ? 'Select a server type...' : 'Select a location first' }} </option> @foreach ($this->availableServerTypes as $serverType) <option value="{{ $serverType['name'] }}"> {{ $serverType['description'] }} - {{ $serverType['cores'] }} vCPU @if (isset($serverType['cpu_vendor_info']) && $serverType['cpu_vendor_info']) ({{ $serverType['cpu_vendor_info'] }}) @endif , {{ $serverType['memory'] }}GB RAM, {{ $serverType['disk'] }}GB @if (isset($serverType['architecture'])) [{{ $serverType['architecture'] }}] @endif @if (isset($serverType['prices'])) - €{{ number_format($serverType['prices'][0]['price_monthly']['gross'] ?? 0, 2) }}/mo @endif </option> @endforeach </x-forms.select> </div> <div> <x-forms.select label="Image" id="selected_image" required :disabled="!$selected_server_type"> <option value=""> {{ $selected_server_type ? 'Select an image...' : 'Select a server type first' }} </option> @foreach ($this->availableImages as $image) <option value="{{ $image['id'] }}"> {{ $image['description'] ?? $image['name'] }} @if (isset($image['architecture'])) ({{ $image['architecture'] }}) @endif </option> @endforeach </x-forms.select> </div> <div> @if ($private_keys->count() === 0) <div class="flex flex-col gap-2"> <label class="flex gap-1 items-center mb-1 text-sm font-medium"> Private Key <x-highlighted text="*" /> </label> <div class="p-4 border border-warning-500 dark:border-warning-600 rounded bg-warning-50 dark:bg-warning-900/10"> <p class="text-sm mb-3 text-neutral-700 dark:text-neutral-300"> No private keys found. You need to create a private key to continue. </p> <x-modal-input buttonTitle="Create New Private Key" title="New Private Key" isHighlightedButton> <livewire:security.private-key.create :modal_mode="true" from="server" /> </x-modal-input> </div> </div> @else <x-forms.select label="Private Key" id="private_key_id" required> <option value="">Select a private key...</option> @foreach ($private_keys as $key) <option value="{{ $key->id }}"> {{ $key->name }} </option> @endforeach </x-forms.select> <p class="mt-1 text-xs text-neutral-500 dark:text-neutral-400"> This SSH key will be automatically added to your Hetzner account and used to access the server. </p> @endif </div> <div> <x-forms.datalist label="Additional SSH Keys (from Hetzner)" id="selectedHetznerSshKeyIds" helper="Select existing SSH keys from your Hetzner account to add to this server. The Coolify SSH key will be automatically added." :multiple="true" :disabled="count($hetznerSshKeys) === 0" :placeholder="count($hetznerSshKeys) > 0 ? 'Search and select SSH keys...' : 'No SSH keys found in Hetzner account'"> @foreach ($hetznerSshKeys as $sshKey) <option value="{{ $sshKey['id'] }}"> {{ $sshKey['name'] }} - {{ substr($sshKey['fingerprint'], 0, 20) }}... </option> @endforeach </x-forms.datalist> </div> <div class="flex flex-col gap-2"> <label class="text-sm font-medium">Network Configuration</label> <div class="flex gap-4"> <x-forms.checkbox id="enable_ipv4" label="Enable IPv4" helper="Enable public IPv4 address for this server" /> <x-forms.checkbox id="enable_ipv6" label="Enable IPv6" helper="Enable public IPv6 address for this server" /> </div> </div> <div class="flex flex-col gap-2"> <div class="flex justify-between items-center gap-2"> <label class="text-sm font-medium w-32">Cloud-Init Script</label> @if ($saved_cloud_init_scripts->count() > 0) <div class="flex items-center gap-2 flex-1"> <x-forms.select wire:model.live="selected_cloud_init_script_id" label="" helper=""> <option value="">Load saved script...</option> @foreach ($saved_cloud_init_scripts as $script) <option value="{{ $script->id }}">{{ $script->name }}</option> @endforeach </x-forms.select> <x-forms.button type="button" wire:click="clearCloudInitScript"> Clear </x-forms.button> </div> @endif </div> <x-forms.textarea id="cloud_init_script" label="" helper="Add a cloud-init script to run when the server is created. See Hetzner's documentation for details." rows="8" /> <div class="flex items-center gap-2"> <x-forms.checkbox id="save_cloud_init_script" label="Save this script for later use" /> <div class="flex-1"> <x-forms.input id="cloud_init_script_name" label="" placeholder="Script name..." /> </div> </div> </div> <div class="flex gap-2 justify-between"> <x-forms.button type="button" wire:click="previousStep"> Back </x-forms.button> <x-forms.button isHighlighted canGate="create" :canResource="App\Models\Server::class" type="submit" :disabled="!$private_key_id"> Buy & Create Server{{ $this->selectedServerPrice ? ' (' . $this->selectedServerPrice . '/mo)' : '' }} </x-forms.button> </div> </form> @endif @endif @endif </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/proxy/new-dynamic-configuration.blade.php
resources/views/livewire/server/proxy/new-dynamic-configuration.blade.php
<form wire:submit.prevent="addDynamicConfiguration" class="flex flex-col w-full gap-4"> <x-forms.input canGate="update" :canResource="$server" id="fileName" label="Filename" required /> <x-forms.textarea canGate="update" :canResource="$server" allowTab useMonacoEditor id="value" label="Configuration" required rows="20" /> <x-forms.button canGate="update" :canResource="$server" type="submit" @click="slideOverOpen=false">Save</x-forms.button> </form>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/proxy/dynamic-configurations.blade.php
resources/views/livewire/server/proxy/dynamic-configurations.blade.php
<div> <x-slot:title> Proxy Dynamic Configuration | Coolify </x-slot> <livewire:server.navbar :server="$server" /> <div class="flex flex-col h-full gap-8 sm:flex-row"> <x-server.sidebar-proxy :server="$server" :parameters="$parameters" /> @if ($server->isFunctional()) <div class="w-full"> <div class="flex gap-2"> <div> <div class="flex gap-2"> <h2>Dynamic Configurations</h2> <x-forms.button wire:click="loadDynamicConfigurations">Reload</x-forms.button> @can('update', $server) <x-modal-input buttonTitle="+ Add" title="New Dynamic Configuration"> <livewire:server.proxy.new-dynamic-configuration :server_id="$server->id" /> </x-modal-input> @endcan </div> <div class='pb-4'>You can add dynamic proxy configurations here.</div> </div> </div> <div wire:loading wire:target="initLoadDynamicConfigurations"> <x-loading text="Loading dynamic configurations..." /> </div> <div x-init="$wire.initLoadDynamicConfigurations" class="flex flex-col gap-4"> @if ($contents?->isNotEmpty()) @foreach ($contents as $fileName => $value) <div class="flex flex-col gap-2 py-2"> @if (str_replace('|', '.', $fileName) === 'coolify.yaml' || str_replace('|', '.', $fileName) === 'Caddyfile' || str_replace('|', '.', $fileName) === 'coolify.caddy' || str_replace('|', '.', $fileName) === 'default_redirect_503.yaml' || str_replace('|', '.', $fileName) === 'default_redirect_503.caddy') <div> <h3 class="dark:text-white">File: {{ str_replace('|', '.', $fileName) }}</h3> </div> <x-forms.textarea disabled name="proxy_settings" wire:model="contents.{{ $fileName }}" rows="5" /> @else <livewire:server.proxy.dynamic-configuration-navbar :server_id="$server->id" :server="$server" :fileName="$fileName" :value="$value ?? ''" :newFile="false" wire:key="{{ $fileName }}-{{ $loop->index }}" /> <x-forms.textarea disabled wire:model="contents.{{ $fileName }}" rows="10" /> @endif </div> @endforeach @else <div wire:loading.remove> No dynamic configurations found.</div> @endif </div> </div> @endif </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/proxy/logs.blade.php
resources/views/livewire/server/proxy/logs.blade.php
<div> <x-slot:title> Proxy Logs | Coolify </x-slot> <livewire:server.navbar :server="$server" /> <div class="flex flex-col h-full gap-8 sm:flex-row"> <x-server.sidebar-proxy :server="$server" :parameters="$parameters" /> <div class="w-full"> <h2 class="pb-4">Logs</h2> <livewire:project.shared.get-logs :server="$server" container="coolify-proxy" displayName="Coolify Proxy" :collapsible="false" /> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/proxy/show.blade.php
resources/views/livewire/server/proxy/show.blade.php
<div> <x-slot:title> Proxy Configuration | Coolify </x-slot> <livewire:server.navbar :server="$server" /> @if ($server->isFunctional()) <div class="flex flex-col h-full gap-8 sm:flex-row"> <x-server.sidebar-proxy :server="$server" :parameters="$parameters" /> <div class="w-full"> <livewire:server.proxy :server="$server" /> </div> </div> @else <div>Server is not validated. Validate first.</div> @endif </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/proxy/dynamic-configuration-navbar.blade.php
resources/views/livewire/server/proxy/dynamic-configuration-navbar.blade.php
<div class="flex gap-2"> <h3 class="dark:text-white">File: {{ str_replace('|', '.', $fileName) }}</h3> @can('update', $server) <div class="flex gap-2"> <x-modal-input buttonTitle="Edit" title="Edit Configuration"> <livewire:server.proxy.new-dynamic-configuration :server_id="$server_id" :fileName="$fileName" :value="$value" :newFile="$newFile" wire:key="{{ $fileName }}" /> </x-modal-input> </div> <x-forms.button isError wire:click="delete('{{ $fileName }}')">Delete</x-forms.button> @endcan </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/ca-certificate/show.blade.php
resources/views/livewire/server/ca-certificate/show.blade.php
<div> <x-slot:title> {{ data_get_str($server, 'name')->limit(10) }} > CA Certificate | Coolify </x-slot> <livewire:server.navbar :server="$server" /> <div class="flex flex-col h-full gap-8 sm:flex-row"> <x-server.sidebar :server="$server" activeMenu="ca-certificate" /> <div class="flex flex-col gap-4"> <div class="flex items-center gap-2"> <h2>CA Certificate</h2> @can('update', $server) <div class="flex gap-2"> <x-modal-confirmation title="Confirm changing of CA Certificate?" buttonTitle="Save" submitAction="saveCaCertificate" :actions="[ 'This will overwrite the existing CA certificate at /data/coolify/ssl/coolify-ca.crt with your custom CA certificate.', 'This will regenerate all SSL certificates for databases on this server and it will sign them with your custom CA.', 'You must manually redeploy all your databases on this server so that they use the new SSL certificates signed with your new CA certificate.', 'Because of caching, you probably also need to redeploy all your resources on this server that are using this CA certificate.', ]" confirmationText="/data/coolify/ssl/coolify-ca.crt" shortConfirmationLabel="CA Certificate Path" step3ButtonText="Save Certificate"> </x-modal-confirmation> <x-modal-confirmation title="Confirm Regenerate Certificate?" buttonTitle="Regenerate " submitAction="regenerateCaCertificate" :actions="[ 'This will generate a new CA certificate at /data/coolify/ssl/coolify-ca.crt and replace the existing one.', 'This will regenerate all SSL certificates for databases on this server and it will sign them with the new CA certificate.', 'You must manually redeploy all your databases on this server so that they use the new SSL certificates signed with the new CA certificate.', 'Because of caching, you probably also need to redeploy all your resources on this server that are using this CA certificate.', ]" confirmationText="/data/coolify/ssl/coolify-ca.crt" shortConfirmationLabel="CA Certificate Path" step3ButtonText="Regenerate Certificate"> </x-modal-confirmation> </div> @endcan </div> <div class="space-y-4"> <div class="text-sm"> <p class="font-medium mb-2">Recommended Configuration:</p> <ul class="list-disc pl-5 space-y-1"> <li>Mount this CA certificate of Coolify into all containers that need to connect to one of your databases over SSL. You can see and copy the bind mount below.</li> <li>Read more when and why this is needed <a class="underline dark:text-white" href="https://coolify.io/docs/databases/ssl" target="_blank">here</a>.</li> </ul> </div> <div class="relative"> <x-forms.copy-button text="- /data/coolify/ssl/coolify-ca.crt:/etc/ssl/certs/coolify-ca.crt:ro" /> </div> </div> <div> <div class="flex items-center justify-between mb-2"> <div class="flex items-center gap-2"> <span class="text-sm">CA Certificate</span> @if ($certificateValidUntil) <span class="text-sm">(Valid until: @if (now()->gt($certificateValidUntil)) <span class="text-red-500">{{ $certificateValidUntil->format('d.m.Y H:i:s') }} - Expired)</span> @elseif(now()->addDays(30)->gt($certificateValidUntil)) <span class="text-red-500">{{ $certificateValidUntil->format('d.m.Y H:i:s') }} - Expiring soon)</span> @else <span>{{ $certificateValidUntil->format('d.m.Y H:i:s') }})</span> @endif </span> @endif </div> @can('view', $server) <x-forms.button wire:click="toggleCertificate" type="button" class="py-1! px-2! text-sm"> {{ $showCertificate ? 'Hide' : 'Show' }} </x-forms.button> @endcan </div> @if ($showCertificate) <textarea class="w-full h-[370px] input" wire:model="certificateContent" placeholder="Paste or edit CA certificate content here..."></textarea> @else <div class="w-full h-[370px] input"> <div class="h-full flex flex-col items-center justify-center text-gray-300"> <div class="mb-2"> ━━━━━━━━ CERTIFICATE CONTENT ━━━━━━━━ </div> <div class="text-sm"> Click "Show" to view or edit </div> </div> </div> @endif </div> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/private-key/show.blade.php
resources/views/livewire/server/private-key/show.blade.php
<div> <x-slot:title> {{ data_get_str($server, 'name')->limit(10) }} > Private Key | Coolify </x-slot> <livewire:server.navbar :server="$server" /> <div class="flex flex-col h-full gap-8 sm:flex-row"> <x-server.sidebar :server="$server" activeMenu="private-key" /> <div class="w-full"> <div class="flex items-end gap-2"> <h2>Private Key</h2> @can('createAnyResource') <x-modal-input buttonTitle="+ Add" title="New Private Key"> <livewire:security.private-key.create /> </x-modal-input> @endcan <x-forms.button canGate="update" :canResource="$server" isHighlighted wire:click.prevent='checkConnection'> Check connection </x-forms.button> </div> <div class="pb-4">Change your server's private key.</div> <div class="grid xl:grid-cols-2 grid-cols-1 gap-2"> @forelse ($privateKeys as $private_key) <div class="box-without-bg justify-between dark:bg-coolgray-100 bg-white items-center flex flex-col gap-2"> <div class="flex flex-col w-full"> <div class="box-title">{{ $private_key->name }}</div> <div class="box-description">{{ $private_key->description }}</div> </div> @if (data_get($server, 'privateKey.uuid') !== $private_key->uuid) <x-forms.button canGate="update" :canResource="$server" class="w-full" wire:click='setPrivateKey({{ $private_key->id }})'> Use this key </x-forms.button> @else <x-forms.button class="w-full" disabled> Currently used </x-forms.button> @endif </div> @empty <div>No private keys found. </div> @endforelse </div> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/security/patches.blade.php
resources/views/livewire/server/security/patches.blade.php
<div> <x-slot:title> {{ data_get_str($server, 'name')->limit(10) }} > Security | Coolify </x-slot> <livewire:server.navbar :server="$server" /> <x-slide-over closeWithX fullScreen @startupdate.window="slideOverOpen = true"> <x-slot:title>Updating Packages</x-slot:title> <x-slot:content> <livewire:activity-monitor header="Logs" /> </x-slot:content> </x-slide-over> <div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }" class="flex flex-col h-full gap-8 sm:flex-row"> <x-server.sidebar-security :server="$server" :parameters="$parameters" /> <form wire:submit='submit' class="w-full"> <div> <div class="flex items-center gap-2 flex-row"> <h2>Server Patching</h2> <span class="text-xs text-neutral-500">(experimental)</span> <x-helper helper="Only available for apt, dnf and zypper package managers atm, more coming soon.<br/>Status notifications sent every week.<br/>You can disable notifications in the <a class='dark:text-white underline' href='{{ route('notifications.email') }}' {{ wireNavigate() }}>notification settings</a>." /> @if (isDev()) <x-forms.button type="button" wire:click="sendTestEmail"> Send Test Email (dev only)</x-forms.button> @endif </div> <div>Update your servers semi-automatically.</div> <div> <div class="flex flex-col gap-6 pt-4"> <x-forms.button type="button" wire:click="$dispatch('checkForUpdates')"> Check for Updates</x-forms.button> <div class="flex flex-col"> <div> <div class="pb-2" wire:target="checkForUpdates" wire:loading> Checking for updates. It may take a few minutes. <x-loading /> </div> @if ($error) <div class="text-red-500">{{ $error }}</div> @else @if ($totalUpdates === 0) <div class="text-green-500">Your server is up to date.</div> @endif @if (isset($updates) && count($updates) > 0) <div class="pb-2"> <x-modal-confirmation title="Confirm package update?" buttonTitle="Update All Packages" isHighlightedButton submitAction="updateAllPackages" dispatchAction :actions="[ 'All packages will be updated to the latest version.', 'This action could restart your currently running containers if docker will be updated.', ]" confirmationText="Update All Packages" confirmationLabel="Please confirm the execution of the actions by entering the name below" shortConfirmationLabel="Name" :confirmWithPassword=false step2ButtonText="Update All Packages" /> </div> <div class="overflow-x-auto"> <table class="min-w-full"> <thead> <tr> <th>Package</th> <th>Version</th> <th>Action</th> </tr> </thead> <tbody> @foreach ($updates as $update) <tr> <td> <div class="flex gap-2 items-center"> @if (data_get_str($update, 'package')->contains('docker') || data_get_str($update, 'package')->contains('kernel')) <x-helper :helper="'This package will restart your currently running containers'"> <x-slot:icon> <svg class="w-4 h-4 text-red-500 block flex-shrink-0" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="M240.26 186.1L152.81 34.23a28.74 28.74 0 0 0-49.62 0L15.74 186.1a27.45 27.45 0 0 0 0 27.71A28.31 28.31 0 0 0 40.55 228h174.9a28.31 28.31 0 0 0 24.79-14.19a27.45 27.45 0 0 0 .02-27.71m-20.8 15.7a4.46 4.46 0 0 1-4 2.2H40.55a4.46 4.46 0 0 1-4-2.2a3.56 3.56 0 0 1 0-3.73L124 46.2a4.77 4.77 0 0 1 8 0l87.44 151.87a3.56 3.56 0 0 1 .02 3.73M116 136v-32a12 12 0 0 1 24 0v32a12 12 0 0 1-24 0m28 40a16 16 0 1 1-16-16a16 16 0 0 1 16 16"> </path> </svg> </x-slot:icon> </x-helper> @endif <span class="break-all">{{ data_get($update, 'package') }}</span> </div> </td> <td class="whitespace-nowrap"> <div class="flex gap-1 items-center"> <span>{{ data_get($update, 'new_version') }}</span> @if ($packageManager !== 'dnf' && data_get($update, 'current_version')) <x-helper helper="Current: {{ data_get($update, 'current_version') }}" /> @endif </div> </td> <td class="whitespace-nowrap"> <x-forms.button type="button" wire:click="$dispatch('updatePackage', { package: '{{ data_get($update, 'package') }}' })">Update</x-forms.button> </td> </tr> @endforeach </tbody> </table> </div> @endif @endif </div> </div> </div> </div> </div> </form> </div> @script <script> $wire.on('checkForUpdates', () => { $wire.$call('checkForUpdatesDispatch'); }); $wire.on('updateAllPackages', () => { window.dispatchEvent(new CustomEvent('startupdate')); $wire.$call('updateAllPackages'); }); $wire.on('updatePackage', (data) => { window.dispatchEvent(new CustomEvent('startupdate')); $wire.$call('updatePackage', data.package); }); $wire.on('checkForUpdatesDispatch', () => { $wire.$call('checkForUpdates'); }); </script> @endscript </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/security/terminal-access.blade.php
resources/views/livewire/server/security/terminal-access.blade.php
<div> <x-slot:title> {{ data_get_str($server, 'name')->limit(10) }} > Terminal Access | Coolify </x-slot> <livewire:server.navbar :server="$server" /> <div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }" class="flex flex-col h-full gap-8 sm:flex-row"> <x-server.sidebar-security :server="$server" :parameters="$parameters" /> <div class="w-full"> <div> <div class="flex items-center gap-2"> <h2>Terminal Access</h2> <x-helper helper="Decide if users (including admins and the owner) can access the terminal for this server and its containers from the dashboard.<br/> Only team administrators and owners can change this setting."/> @if (auth()->user()->isAdmin()) <div wire:key="terminal-access-change-{{ $isTerminalEnabled }}"> <x-modal-confirmation title="Confirm Terminal Access Change?" temporaryDisableTwoStepConfirmation buttonTitle="{{ $isTerminalEnabled ? 'Disable Terminal' : 'Enable Terminal' }}" submitAction="toggleTerminal" :actions="[ $isTerminalEnabled ? 'This will disable terminal access for this server and all its containers.' : 'This will enable terminal access for this server and all its containers.', $isTerminalEnabled ? 'Users will no longer be able to access terminal views from the UI.' : 'Users will be able to access terminal views from the UI.', 'This change will take effect immediately.', ]" confirmationText="{{ $server->name }}" shortConfirmationLabel="Server Name" step3ButtonText="{{ $isTerminalEnabled ? 'Disable Terminal' : 'Enable Terminal' }}" isHighlightedButton> </x-modal-confirmation> </div> @endif </div> <div class="mb-4">Manage terminal access to this server and its containers.</div> </div> <div class="flex items-center gap-2"> <h3>Terminal Status:</h3> @if ($isTerminalEnabled) <span class="px-2 py-1 text-xs font-semibold text-green-800 bg-green-100 rounded dark:text-green-100 dark:bg-green-800"> Operational </span> @else <span class="px-2 py-1 text-xs font-semibold text-red-800 bg-red-100 rounded dark:text-red-100 dark:bg-red-800"> Disabled </span> @endif </div> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/server/cloud-provider-token/show.blade.php
resources/views/livewire/server/cloud-provider-token/show.blade.php
<div> <x-slot:title> {{ data_get_str($server, 'name')->limit(10) }} > Hetzner Token | Coolify </x-slot> <livewire:server.navbar :server="$server" /> <div class="flex flex-col h-full gap-8 sm:flex-row"> <x-server.sidebar :server="$server" activeMenu="cloud-provider-token" /> <div class="w-full"> @if ($server->hetzner_server_id) <div class="flex items-end gap-2"> <h2>Hetzner Token</h2> @can('create', App\Models\CloudProviderToken::class) <x-modal-input buttonTitle="+ Add" title="Add Hetzner Token"> <livewire:security.cloud-provider-token-form :modal_mode="true" provider="hetzner" /> </x-modal-input> @endcan <x-forms.button canGate="update" :canResource="$server" isHighlighted wire:click.prevent='validateToken'> Validate token </x-forms.button> </div> <div class="pb-4">Change your server's Hetzner token.</div> <div class="grid xl:grid-cols-2 grid-cols-1 gap-2"> @forelse ($cloudProviderTokens as $token) <div class="box-without-bg justify-between dark:bg-coolgray-100 bg-white items-center flex flex-col gap-2"> <div class="flex flex-col w-full"> <div class="box-title">{{ $token->name }}</div> <div class="box-description"> Created {{ $token->created_at->diffForHumans() }} </div> </div> @if (data_get($server, 'cloudProviderToken.id') !== $token->id) <x-forms.button canGate="update" :canResource="$server" class="w-full" wire:click='setCloudProviderToken({{ $token->id }})'> Use this token </x-forms.button> @else <x-forms.button class="w-full" disabled> Currently used </x-forms.button> @endif </div> @empty <div>No Hetzner tokens found. </div> @endforelse </div> @else <div class="flex items-end gap-2"> <h2>Hetzner Token</h2> </div> <div class="pb-4">This server was not created through Hetzner Cloud integration.</div> <div class="p-4 border rounded-md dark:border-coolgray-300 dark:bg-coolgray-100"> <p class="dark:text-neutral-400"> Only servers created through Hetzner Cloud can have their tokens managed here. </p> </div> @endif </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/destination/index.blade.php
resources/views/livewire/destination/index.blade.php
<div> <x-slot:title> Destinations | Coolify </x-slot> <div class="flex items-center gap-2"> <h1>Destinations</h1> @if ($servers->count() > 0) @can('createAnyResource') <x-modal-input buttonTitle="+ Add" title="New Destination"> <livewire:destination.new.docker /> </x-modal-input> @endcan @endif </div> <div class="subtitle">Network endpoints to deploy your resources.</div> <div class="grid gap-4 lg:grid-cols-2 -mt-1"> @forelse ($servers as $server) @forelse ($server->destinations() as $destination) @if ($destination->getMorphClass() === 'App\Models\StandaloneDocker') <a class="coolbox group" {{ wireNavigate() }} href="{{ route('destination.show', ['destination_uuid' => data_get($destination, 'uuid')]) }}"> <div class="flex flex-col justify-center mx-6"> <div class="box-title">{{ $destination->name }}</div> <div class="box-description">Server: {{ $destination->server->name }}</div> </div> </a> @endif @if ($destination->getMorphClass() === 'App\Models\SwarmDocker') <a class="coolbox group" {{ wireNavigate() }} href="{{ route('destination.show', ['destination_uuid' => data_get($destination, 'uuid')]) }}"> <div class="flex flex-col mx-6"> <div class="box-title">{{ $destination->name }}</div> <div class="box-description">server: {{ $destination->server->name }}</div> </div> </a> @endif @empty <div>No destinations found.</div> @endforelse @empty <div>No servers found.</div> @endforelse </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/destination/show.blade.php
resources/views/livewire/destination/show.blade.php
<div> <form class="flex flex-col"> <div class="flex items-center gap-2"> <h1>Destination</h1> <x-forms.button canGate="update" :canResource="$destination" wire:click.prevent='submit' type="submit">Save</x-forms.button> @if ($network !== 'coolify') <x-modal-confirmation title="Confirm Destination Deletion?" buttonTitle="Delete Destination" isErrorButton submitAction="delete" :actions="['This will delete the selected destination/network.']" confirmationText="{{ $destination->name }}" confirmationLabel="Please confirm the execution of the actions by entering the Destination Name below" shortConfirmationLabel="Destination Name" :confirmWithPassword="false" step2ButtonText="Permanently Delete" canGate="delete" :canResource="$destination" /> @endif </div> @if ($destination->getMorphClass() === 'App\Models\StandaloneDocker') <div class="subtitle ">A simple Docker network.</div> @else <div class="subtitle ">A swarm Docker network. WIP</div> @endif <div class="flex gap-2"> <x-forms.input canGate="update" :canResource="$destination" id="name" label="Name" /> <x-forms.input id="serverIp" label="Server IP" readonly /> @if ($destination->getMorphClass() === 'App\Models\StandaloneDocker') <x-forms.input id="network" label="Docker Network" readonly /> @endif </div> </form> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/livewire/destination/new/docker.blade.php
resources/views/livewire/destination/new/docker.blade.php
@can('createAnyResource') <div class="w-full "> <div class="subtitle">Destinations are used to segregate resources by network.</div> <form class="flex flex-col gap-4" wire:submit='submit'> <div class="flex gap-2"> <x-forms.input id="name" label="Name" required /> <x-forms.input id="network" label="Network" required /> </div> <x-forms.select id="serverId" label="Select a server" required wire:change="generateName"> <option disabled>Select a server</option> @foreach ($servers as $server) <option value="{{ $server->id }}">{{ $server->name }}</option> @endforeach </x-forms.select> <x-forms.button type="submit"> Continue </x-forms.button> </form> </div> @else <x-callout type="warning" title="Permission Required"> You don't have permission to create new destinations. Please contact your team administrator for access. </x-callout> @endcan
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/server/create.blade.php
resources/views/server/create.blade.php
<x-layout> @if ($private_keys->count() === 0) <h1>Create Private Key</h1> <div class="subtitle">You need to create a private key before you can create a server.</div> <livewire:private-key.create from="server" /> @else <livewire:server.new.by-ip :private_keys="$private_keys" :limit_reached="$limit_reached" /> @endif </x-layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
ramsey/uuid
https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/src/DegradedUuid.php
src/DegradedUuid.php
<?php /** * This file is part of the ramsey/uuid library * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com> * @license http://opensource.org/licenses/MIT MIT */ declare(strict_types=1); namespace Ramsey\Uuid; /** * @deprecated DegradedUuid is no longer necessary to represent UUIDs on 32-bit systems. * Transition any type declarations using this class to {@see UuidInterface}. * * @immutable */ class DegradedUuid extends Uuid { }
php
MIT
8429c78ca35a09f27565311b98101e2826affde0
2026-01-04T15:03:10.515964Z
false
ramsey/uuid
https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/src/UuidFactory.php
src/UuidFactory.php
<?php /** * This file is part of the ramsey/uuid library * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com> * @license http://opensource.org/licenses/MIT MIT */ declare(strict_types=1); namespace Ramsey\Uuid; use DateTimeInterface; use Ramsey\Uuid\Builder\UuidBuilderInterface; use Ramsey\Uuid\Codec\CodecInterface; use Ramsey\Uuid\Converter\NumberConverterInterface; use Ramsey\Uuid\Converter\TimeConverterInterface; use Ramsey\Uuid\Generator\DceSecurityGeneratorInterface; use Ramsey\Uuid\Generator\DefaultTimeGenerator; use Ramsey\Uuid\Generator\NameGeneratorInterface; use Ramsey\Uuid\Generator\RandomGeneratorInterface; use Ramsey\Uuid\Generator\TimeGeneratorInterface; use Ramsey\Uuid\Generator\UnixTimeGenerator; use Ramsey\Uuid\Lazy\LazyUuidFromString; use Ramsey\Uuid\Provider\NodeProviderInterface; use Ramsey\Uuid\Provider\Time\FixedTimeProvider; use Ramsey\Uuid\Type\Hexadecimal; use Ramsey\Uuid\Type\Integer as IntegerObject; use Ramsey\Uuid\Type\Time; use Ramsey\Uuid\Validator\ValidatorInterface; use function bin2hex; use function hex2bin; use function pack; use function str_pad; use function strtolower; use function substr; use function substr_replace; use function unpack; use const STR_PAD_LEFT; class UuidFactory implements UuidFactoryInterface { private CodecInterface $codec; private DceSecurityGeneratorInterface $dceSecurityGenerator; private NameGeneratorInterface $nameGenerator; private NodeProviderInterface $nodeProvider; private NumberConverterInterface $numberConverter; private RandomGeneratorInterface $randomGenerator; private TimeConverterInterface $timeConverter; private TimeGeneratorInterface $timeGenerator; private TimeGeneratorInterface $unixTimeGenerator; private UuidBuilderInterface $uuidBuilder; private ValidatorInterface $validator; /** * @var bool whether the feature set was provided from outside, or we can operate under "default" assumptions */ private bool $isDefaultFeatureSet; /** * @param FeatureSet | null $features A set of available features in the current environment */ public function __construct(?FeatureSet $features = null) { $this->isDefaultFeatureSet = $features === null; $features = $features ?: new FeatureSet(); $this->codec = $features->getCodec(); $this->dceSecurityGenerator = $features->getDceSecurityGenerator(); $this->nameGenerator = $features->getNameGenerator(); $this->nodeProvider = $features->getNodeProvider(); $this->numberConverter = $features->getNumberConverter(); $this->randomGenerator = $features->getRandomGenerator(); $this->timeConverter = $features->getTimeConverter(); $this->timeGenerator = $features->getTimeGenerator(); $this->uuidBuilder = $features->getBuilder(); $this->validator = $features->getValidator(); $this->unixTimeGenerator = $features->getUnixTimeGenerator(); } /** * Returns the codec used by this factory */ public function getCodec(): CodecInterface { return $this->codec; } /** * Sets the codec to use for this factory * * @param CodecInterface $codec A UUID encoder-decoder */ public function setCodec(CodecInterface $codec): void { $this->isDefaultFeatureSet = false; $this->codec = $codec; } /** * Returns the name generator used by this factory */ public function getNameGenerator(): NameGeneratorInterface { return $this->nameGenerator; } /** * Sets the name generator to use for this factory * * @param NameGeneratorInterface $nameGenerator A generator to generate binary data, based on a namespace and name */ public function setNameGenerator(NameGeneratorInterface $nameGenerator): void { $this->isDefaultFeatureSet = false; $this->nameGenerator = $nameGenerator; } /** * Returns the node provider used by this factory */ public function getNodeProvider(): NodeProviderInterface { return $this->nodeProvider; } /** * Returns the random generator used by this factory */ public function getRandomGenerator(): RandomGeneratorInterface { return $this->randomGenerator; } /** * Returns the time generator used by this factory */ public function getTimeGenerator(): TimeGeneratorInterface { return $this->timeGenerator; } /** * Sets the time generator to use for this factory * * @param TimeGeneratorInterface $generator A generator to generate binary data, based on the time */ public function setTimeGenerator(TimeGeneratorInterface $generator): void { $this->isDefaultFeatureSet = false; $this->timeGenerator = $generator; } /** * Returns the DCE Security generator used by this factory */ public function getDceSecurityGenerator(): DceSecurityGeneratorInterface { return $this->dceSecurityGenerator; } /** * Sets the DCE Security generator to use for this factory * * @param DceSecurityGeneratorInterface $generator A generator to generate binary data, based on a local domain and * local identifier */ public function setDceSecurityGenerator(DceSecurityGeneratorInterface $generator): void { $this->isDefaultFeatureSet = false; $this->dceSecurityGenerator = $generator; } /** * Returns the number converter used by this factory */ public function getNumberConverter(): NumberConverterInterface { return $this->numberConverter; } /** * Sets the random generator to use for this factory * * @param RandomGeneratorInterface $generator A generator to generate binary data, based on some random input */ public function setRandomGenerator(RandomGeneratorInterface $generator): void { $this->isDefaultFeatureSet = false; $this->randomGenerator = $generator; } /** * Sets the number converter to use for this factory * * @param NumberConverterInterface $converter A converter to use for working with large integers (i.e., integers * greater than PHP_INT_MAX) */ public function setNumberConverter(NumberConverterInterface $converter): void { $this->isDefaultFeatureSet = false; $this->numberConverter = $converter; } /** * Returns the UUID builder used by this factory */ public function getUuidBuilder(): UuidBuilderInterface { return $this->uuidBuilder; } /** * Sets the UUID builder to use for this factory * * @param UuidBuilderInterface $builder A builder for constructing instances of UuidInterface */ public function setUuidBuilder(UuidBuilderInterface $builder): void { $this->isDefaultFeatureSet = false; $this->uuidBuilder = $builder; } public function getValidator(): ValidatorInterface { return $this->validator; } /** * Sets the validator to use for this factory * * @param ValidatorInterface $validator A validator to use for validating whether a string is a valid UUID */ public function setValidator(ValidatorInterface $validator): void { $this->isDefaultFeatureSet = false; $this->validator = $validator; } /** * @pure */ public function fromBytes(string $bytes): UuidInterface { return $this->codec->decodeBytes($bytes); } /** * @pure */ public function fromString(string $uuid): UuidInterface { $uuid = strtolower($uuid); return $this->codec->decode($uuid); } /** * @pure */ public function fromInteger(string $integer): UuidInterface { $hex = $this->numberConverter->toHex($integer); $hex = str_pad($hex, 32, '0', STR_PAD_LEFT); return $this->fromString($hex); } public function fromDateTime( DateTimeInterface $dateTime, ?Hexadecimal $node = null, ?int $clockSeq = null, ): UuidInterface { $timeProvider = new FixedTimeProvider(new Time($dateTime->format('U'), $dateTime->format('u'))); $timeGenerator = new DefaultTimeGenerator($this->nodeProvider, $this->timeConverter, $timeProvider); $bytes = $timeGenerator->generate($node?->toString(), $clockSeq); return $this->uuidFromBytesAndVersion($bytes, Uuid::UUID_TYPE_TIME); } /** * @pure */ public function fromHexadecimal(Hexadecimal $hex): UuidInterface { return $this->codec->decode($hex->__toString()); } /** * @inheritDoc */ public function uuid1($node = null, ?int $clockSeq = null): UuidInterface { $bytes = $this->timeGenerator->generate($node, $clockSeq); return $this->uuidFromBytesAndVersion($bytes, Uuid::UUID_TYPE_TIME); } public function uuid2( int $localDomain, ?IntegerObject $localIdentifier = null, ?Hexadecimal $node = null, ?int $clockSeq = null, ): UuidInterface { $bytes = $this->dceSecurityGenerator->generate($localDomain, $localIdentifier, $node, $clockSeq); return $this->uuidFromBytesAndVersion($bytes, Uuid::UUID_TYPE_DCE_SECURITY); } /** * @inheritDoc * @pure */ public function uuid3($ns, string $name): UuidInterface { return $this->uuidFromNsAndName($ns, $name, Uuid::UUID_TYPE_HASH_MD5, 'md5'); } public function uuid4(): UuidInterface { $bytes = $this->randomGenerator->generate(16); return $this->uuidFromBytesAndVersion($bytes, Uuid::UUID_TYPE_RANDOM); } /** * @inheritDoc * @pure */ public function uuid5($ns, string $name): UuidInterface { return $this->uuidFromNsAndName($ns, $name, Uuid::UUID_TYPE_HASH_SHA1, 'sha1'); } public function uuid6(?Hexadecimal $node = null, ?int $clockSeq = null): UuidInterface { $bytes = $this->timeGenerator->generate($node?->toString(), $clockSeq); // Rearrange the bytes, according to the UUID version 6 specification. $v6 = $bytes[6] . $bytes[7] . $bytes[4] . $bytes[5] . $bytes[0] . $bytes[1] . $bytes[2] . $bytes[3]; $v6 = bin2hex($v6); // Drop the first four bits, while adding an empty four bits for the version field. This allows us to // reconstruct the correct time from the bytes of this UUID. $v6Bytes = hex2bin(substr($v6, 1, 12) . '0' . substr($v6, -3)); $v6Bytes .= substr($bytes, 8); return $this->uuidFromBytesAndVersion($v6Bytes, Uuid::UUID_TYPE_REORDERED_TIME); } /** * Returns a version 7 (Unix Epoch time) UUID * * @param DateTimeInterface | null $dateTime An optional date/time from which to create the version 7 UUID. If not * provided, the UUID is generated using the current date/time. * * @return UuidInterface A UuidInterface instance that represents a version 7 UUID */ public function uuid7(?DateTimeInterface $dateTime = null): UuidInterface { assert($this->unixTimeGenerator instanceof UnixTimeGenerator); $bytes = $this->unixTimeGenerator->generate(null, null, $dateTime); return $this->uuidFromBytesAndVersion($bytes, Uuid::UUID_TYPE_UNIX_TIME); } /** * Returns a version 8 (custom format) UUID * * The bytes provided may contain any value according to your application's needs. Be aware, however, that other * applications may not understand the semantics of the value. * * @param string $bytes A 16-byte octet string. This is an open blob of data that you may fill with 128 bits of * information. Be aware, however, bits 48 through 51 will be replaced with the UUID version field, and bits 64 * and 65 will be replaced with the UUID variant. You MUST NOT rely on these bits for your application needs. * * @return UuidInterface A UuidInterface instance that represents a version 8 UUID * * @pure */ public function uuid8(string $bytes): UuidInterface { /** @phpstan-ignore possiblyImpure.methodCall */ return $this->uuidFromBytesAndVersion($bytes, Uuid::UUID_TYPE_CUSTOM); } /** * Returns a Uuid created from the provided byte string * * Uses the configured builder and codec and the provided byte string to construct a Uuid object. * * @param string $bytes The byte string from which to construct a UUID * * @return UuidInterface An instance of UuidInterface, created from the provided bytes * * @pure */ public function uuid(string $bytes): UuidInterface { return $this->uuidBuilder->build($this->codec, $bytes); } /** * Returns a version 3 or 5 namespaced Uuid * * @param UuidInterface | string $ns The namespace (must be a valid UUID) * @param string $name The name to hash together with the namespace * @param int $version The version of UUID to create (3 or 5) * @param string $hashAlgorithm The hashing algorithm to use when hashing together the namespace and name * * @return UuidInterface An instance of UuidInterface, created by hashing together the provided namespace and name * * @pure */ private function uuidFromNsAndName( UuidInterface | string $ns, string $name, int $version, string $hashAlgorithm, ): UuidInterface { if (!($ns instanceof UuidInterface)) { $ns = $this->fromString($ns); } $bytes = $this->nameGenerator->generate($ns, $name, $hashAlgorithm); /** @phpstan-ignore possiblyImpure.methodCall */ return $this->uuidFromBytesAndVersion(substr($bytes, 0, 16), $version); } /** * Returns a Uuid created from the provided bytes and version * * @param string $bytes The byte string to convert to a UUID * @param int $version The version to apply to the UUID * * @return UuidInterface An instance of UuidInterface, created from the byte string and version */ private function uuidFromBytesAndVersion(string $bytes, int $version): UuidInterface { /** @var int[] $unpackedTime */ $unpackedTime = unpack('n*', substr($bytes, 6, 2)); $timeHi = $unpackedTime[1]; $timeHiAndVersion = pack('n*', BinaryUtils::applyVersion($timeHi, $version)); /** @var int[] $unpackedClockSeq */ $unpackedClockSeq = unpack('n*', substr($bytes, 8, 2)); $clockSeqHi = $unpackedClockSeq[1]; $clockSeqHiAndReserved = pack('n*', BinaryUtils::applyVariant($clockSeqHi)); $bytes = substr_replace($bytes, $timeHiAndVersion, 6, 2); $bytes = substr_replace($bytes, $clockSeqHiAndReserved, 8, 2); if ($this->isDefaultFeatureSet) { return LazyUuidFromString::fromBytes($bytes); } return $this->uuid($bytes); } }
php
MIT
8429c78ca35a09f27565311b98101e2826affde0
2026-01-04T15:03:10.515964Z
false
ramsey/uuid
https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/src/DeprecatedUuidMethodsTrait.php
src/DeprecatedUuidMethodsTrait.php
<?php /** * This file is part of the ramsey/uuid library * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com> * @license http://opensource.org/licenses/MIT MIT */ declare(strict_types=1); namespace Ramsey\Uuid; use DateTimeImmutable; use DateTimeInterface; use Ramsey\Uuid\Converter\NumberConverterInterface; use Ramsey\Uuid\Exception\DateTimeException; use Ramsey\Uuid\Exception\UnsupportedOperationException; use Throwable; use function str_pad; use function substr; use const STR_PAD_LEFT; /** * This trait encapsulates deprecated methods for ramsey/uuid; this trait and its methods will be removed in ramsey/uuid 5.0.0. * * @deprecated This trait and its methods will be removed in ramsey/uuid 5.0.0. * * @immutable */ trait DeprecatedUuidMethodsTrait { /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * If it is a {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqHiAndReserved()} and use the arbitrary-precision math * library of your choice to convert it to a string integer. */ public function getClockSeqHiAndReserved(): string { return $this->numberConverter->fromHex($this->fields->getClockSeqHiAndReserved()->toString()); } /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * If it is a {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqHiAndReserved()}. */ public function getClockSeqHiAndReservedHex(): string { return $this->fields->getClockSeqHiAndReserved()->toString(); } /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * If it is a {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqLow()} and use the arbitrary-precision math library of * your choice to convert it to a string integer. */ public function getClockSeqLow(): string { return $this->numberConverter->fromHex($this->fields->getClockSeqLow()->toString()); } /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * If it is a {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqLow()}. */ public function getClockSeqLowHex(): string { return $this->fields->getClockSeqLow()->toString(); } /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * If it is a {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeq()} and use the arbitrary-precision math library of * your choice to convert it to a string integer. */ public function getClockSequence(): string { return $this->numberConverter->fromHex($this->fields->getClockSeq()->toString()); } /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * If it is a {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeq()}. */ public function getClockSequenceHex(): string { return $this->fields->getClockSeq()->toString(); } /** * @deprecated This method will be removed in 5.0.0. There is no alternative recommendation, so plan accordingly. */ public function getNumberConverter(): NumberConverterInterface { return $this->numberConverter; } /** * @deprecated In ramsey/uuid version 5.0.0, this will be removed. It is available at {@see UuidV1::getDateTime()}. * * @return DateTimeImmutable An immutable instance of DateTimeInterface * * @throws UnsupportedOperationException if UUID is not time-based * @throws DateTimeException if DateTime throws an exception/error */ public function getDateTime(): DateTimeInterface { if ($this->fields->getVersion() !== 1) { throw new UnsupportedOperationException('Not a time-based UUID'); } $time = $this->timeConverter->convertTime($this->fields->getTimestamp()); try { return new DateTimeImmutable( '@' . $time->getSeconds()->toString() . '.' . str_pad($time->getMicroseconds()->toString(), 6, '0', STR_PAD_LEFT) ); } catch (Throwable $e) { throw new DateTimeException($e->getMessage(), (int) $e->getCode(), $e); } } /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * * @return string[] */ public function getFieldsHex(): array { return [ 'time_low' => $this->fields->getTimeLow()->toString(), 'time_mid' => $this->fields->getTimeMid()->toString(), 'time_hi_and_version' => $this->fields->getTimeHiAndVersion()->toString(), 'clock_seq_hi_and_reserved' => $this->fields->getClockSeqHiAndReserved()->toString(), 'clock_seq_low' => $this->fields->getClockSeqLow()->toString(), 'node' => $this->fields->getNode()->toString(), ]; } /** * @deprecated This method will be removed in 5.0.0. There is no direct alternative, but the same information may be * obtained by splitting in half the value returned by {@see UuidInterface::getHex()}. */ public function getLeastSignificantBits(): string { $leastSignificantHex = substr($this->getHex()->toString(), 16); return $this->numberConverter->fromHex($leastSignificantHex); } /** * @deprecated This method will be removed in 5.0.0. There is no direct alternative, but the same information may be * obtained by splitting in half the value returned by {@see UuidInterface::getHex()}. */ public function getLeastSignificantBitsHex(): string { return substr($this->getHex()->toString(), 16); } /** * @deprecated This method will be removed in 5.0.0. There is no direct alternative, but the same information may be * obtained by splitting in half the value returned by {@see UuidInterface::getHex()}. */ public function getMostSignificantBits(): string { $mostSignificantHex = substr($this->getHex()->toString(), 0, 16); return $this->numberConverter->fromHex($mostSignificantHex); } /** * @deprecated This method will be removed in 5.0.0. There is no direct alternative, but the same information may be * obtained by splitting in half the value returned by {@see UuidInterface::getHex()}. */ public function getMostSignificantBitsHex(): string { return substr($this->getHex()->toString(), 0, 16); } /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * If it is a {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getNode()} and use the arbitrary-precision math library of your * choice to convert it to a string integer. */ public function getNode(): string { return $this->numberConverter->fromHex($this->fields->getNode()->toString()); } /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * If it is a {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getNode()}. */ public function getNodeHex(): string { return $this->fields->getNode()->toString(); } /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * If it is a {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeHiAndVersion()} and use the arbitrary-precision math * library of your choice to convert it to a string integer. */ public function getTimeHiAndVersion(): string { return $this->numberConverter->fromHex($this->fields->getTimeHiAndVersion()->toString()); } /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * If it is a {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeHiAndVersion()}. */ public function getTimeHiAndVersionHex(): string { return $this->fields->getTimeHiAndVersion()->toString(); } /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * If it is a {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeLow()} and use the arbitrary-precision math library of * your choice to convert it to a string integer. */ public function getTimeLow(): string { return $this->numberConverter->fromHex($this->fields->getTimeLow()->toString()); } /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * If it is a {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeLow()}. */ public function getTimeLowHex(): string { return $this->fields->getTimeLow()->toString(); } /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * If it is a {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeMid()} and use the arbitrary-precision math library of * your choice to convert it to a string integer. */ public function getTimeMid(): string { return $this->numberConverter->fromHex($this->fields->getTimeMid()->toString()); } /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * If it is a {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeMid()}. */ public function getTimeMidHex(): string { return $this->fields->getTimeMid()->toString(); } /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * If it is a {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimestamp()} and use the arbitrary-precision math library of * your choice to convert it to a string integer. */ public function getTimestamp(): string { if ($this->fields->getVersion() !== 1) { throw new UnsupportedOperationException('Not a time-based UUID'); } return $this->numberConverter->fromHex($this->fields->getTimestamp()->toString()); } /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * If it is a {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimestamp()}. */ public function getTimestampHex(): string { if ($this->fields->getVersion() !== 1) { throw new UnsupportedOperationException('Not a time-based UUID'); } return $this->fields->getTimestamp()->toString(); } /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * If it is a {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getVariant()}. */ public function getVariant(): ?int { return $this->fields->getVariant(); } /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * If it is a {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getVersion()}. */ public function getVersion(): ?int { return $this->fields->getVersion(); } }
php
MIT
8429c78ca35a09f27565311b98101e2826affde0
2026-01-04T15:03:10.515964Z
false
ramsey/uuid
https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/src/UuidInterface.php
src/UuidInterface.php
<?php /** * This file is part of the ramsey/uuid library * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com> * @license http://opensource.org/licenses/MIT MIT */ declare(strict_types=1); namespace Ramsey\Uuid; use JsonSerializable; use Ramsey\Uuid\Fields\FieldsInterface; use Ramsey\Uuid\Type\Hexadecimal; use Ramsey\Uuid\Type\Integer as IntegerObject; use Serializable; use Stringable; /** * A UUID is a universally unique identifier adhering to an agreed-upon representation format and standard for generation * * @immutable */ interface UuidInterface extends DeprecatedUuidInterface, JsonSerializable, Serializable, Stringable { /** * Returns -1, 0, or 1 if the UUID is less than, equal to, or greater than the other UUID * * The first of two UUIDs is greater than the second if the most significant field in which the UUIDs differ is * greater for the first UUID. * * @param UuidInterface $other The UUID to compare * * @return int<-1,1> -1, 0, or 1 if the UUID is less than, equal to, or greater than $other */ public function compareTo(UuidInterface $other): int; /** * Returns true if the UUID is equal to the provided object * * The result is true if and only if the argument is not null, is a UUID object, has the same variant, and contains * the same value, bit-for-bit, as the UUID. * * @param object | null $other An object to test for equality with this UUID * * @return bool True if the other object is equal to this UUID */ public function equals(?object $other): bool; /** * Returns the binary string representation of the UUID * * @return non-empty-string * * @pure */ public function getBytes(): string; /** * Returns the fields that comprise this UUID */ public function getFields(): FieldsInterface; /** * Returns the hexadecimal representation of the UUID */ public function getHex(): Hexadecimal; /** * Returns the integer representation of the UUID */ public function getInteger(): IntegerObject; /** * Returns the string standard representation of the UUID as a URN * * @link http://en.wikipedia.org/wiki/Uniform_Resource_Name Uniform Resource Name * @link https://www.rfc-editor.org/rfc/rfc9562.html#section-4 RFC 9562, 4. UUID Format * @link https://www.rfc-editor.org/rfc/rfc9562.html#section-7 RFC 9562, 7. IANA Considerations * @link https://www.rfc-editor.org/rfc/rfc4122.html#section-3 RFC 4122, 3. Namespace Registration Template */ public function getUrn(): string; /** * Returns the string standard representation of the UUID * * @return non-empty-string * * @pure */ public function toString(): string; /** * Casts the UUID to the string standard representation * * @return non-empty-string * * @pure */ public function __toString(): string; }
php
MIT
8429c78ca35a09f27565311b98101e2826affde0
2026-01-04T15:03:10.515964Z
false
ramsey/uuid
https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/src/Uuid.php
src/Uuid.php
<?php /** * This file is part of the ramsey/uuid library * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com> * @license http://opensource.org/licenses/MIT MIT */ declare(strict_types=1); namespace Ramsey\Uuid; use BadMethodCallException; use DateTimeInterface; use Ramsey\Uuid\Codec\CodecInterface; use Ramsey\Uuid\Converter\NumberConverterInterface; use Ramsey\Uuid\Converter\TimeConverterInterface; use Ramsey\Uuid\Exception\InvalidArgumentException; use Ramsey\Uuid\Exception\UnsupportedOperationException; use Ramsey\Uuid\Fields\FieldsInterface; use Ramsey\Uuid\Lazy\LazyUuidFromString; use Ramsey\Uuid\Rfc4122\FieldsInterface as Rfc4122FieldsInterface; use Ramsey\Uuid\Type\Hexadecimal; use Ramsey\Uuid\Type\Integer as IntegerObject; use ValueError; use function assert; use function bin2hex; use function method_exists; use function preg_match; use function sprintf; use function str_replace; use function strcmp; use function strlen; use function strtolower; use function substr; /** * Uuid provides constants and static methods for working with and generating UUIDs * * @immutable */ class Uuid implements UuidInterface { use DeprecatedUuidMethodsTrait; /** * When this namespace is specified, the name string is a fully qualified domain name * * @link https://www.rfc-editor.org/rfc/rfc9562#section-6.6 RFC 9562, 6.6. Namespace ID Usage and Allocation */ public const NAMESPACE_DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; /** * When this namespace is specified, the name string is a URL * * @link https://www.rfc-editor.org/rfc/rfc9562#section-6.6 RFC 9562, 6.6. Namespace ID Usage and Allocation */ public const NAMESPACE_URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; /** * When this namespace is specified, the name string is an ISO OID * * @link https://www.rfc-editor.org/rfc/rfc9562#section-6.6 RFC 9562, 6.6. Namespace ID Usage and Allocation */ public const NAMESPACE_OID = '6ba7b812-9dad-11d1-80b4-00c04fd430c8'; /** * When this namespace is specified, the name string is an X.500 DN (in DER or a text output format) * * @link https://www.rfc-editor.org/rfc/rfc9562#section-6.6 RFC 9562, 6.6. Namespace ID Usage and Allocation */ public const NAMESPACE_X500 = '6ba7b814-9dad-11d1-80b4-00c04fd430c8'; /** * The Nil UUID is a special form of UUID that is specified to have all 128 bits set to zero * * @link https://www.rfc-editor.org/rfc/rfc9562#section-5.9 RFC 9562, 5.9. Nil UUID */ public const NIL = '00000000-0000-0000-0000-000000000000'; /** * The Max UUID is a special form of UUID that is specified to have all 128 bits set to one * * @link https://www.rfc-editor.org/rfc/rfc9562#section-5.10 RFC 9562, 5.10. Max UUID */ public const MAX = 'ffffffff-ffff-ffff-ffff-ffffffffffff'; /** * Variant: reserved, NCS backward compatibility * * @link https://www.rfc-editor.org/rfc/rfc9562#section-4.1 RFC 9562, 4.1. Variant Field */ public const RESERVED_NCS = 0; /** * Variant: the UUID layout specified in RFC 9562 (formerly RFC 4122) * * @link https://www.rfc-editor.org/rfc/rfc9562#section-4.1 RFC 9562, 4.1. Variant Field * @see Uuid::RFC_9562 */ public const RFC_4122 = 2; /** * Variant: the UUID layout specified in RFC 9562 (formerly RFC 4122) * * @link https://www.rfc-editor.org/rfc/rfc9562#section-4.1 RFC 9562, 4.1. Variant Field */ public const RFC_9562 = 2; /** * Variant: reserved, Microsoft Corporation backward compatibility * * @link https://www.rfc-editor.org/rfc/rfc9562#section-4.1 RFC 9562, 4.1. Variant Field */ public const RESERVED_MICROSOFT = 6; /** * Variant: reserved for future definition * * @link https://www.rfc-editor.org/rfc/rfc9562#section-4.1 RFC 9562, 4.1. Variant Field */ public const RESERVED_FUTURE = 7; /** * @deprecated Use {@see ValidatorInterface::getPattern()} instead. */ public const VALID_PATTERN = '^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$'; /** * Version 1 (Gregorian time) UUID * * @link https://www.rfc-editor.org/rfc/rfc9562#section-4.2 RFC 9562, 4.2. Version Field */ public const UUID_TYPE_TIME = 1; /** * Version 2 (DCE Security) UUID * * @link https://www.rfc-editor.org/rfc/rfc9562#section-4.2 RFC 9562, 4.2. Version Field */ public const UUID_TYPE_DCE_SECURITY = 2; /** * @deprecated Use {@see Uuid::UUID_TYPE_DCE_SECURITY} instead. */ public const UUID_TYPE_IDENTIFIER = 2; /** * Version 3 (name-based and hashed with MD5) UUID * * @link https://www.rfc-editor.org/rfc/rfc9562#section-4.2 RFC 9562, 4.2. Version Field */ public const UUID_TYPE_HASH_MD5 = 3; /** * Version 4 (random) UUID * * @link https://www.rfc-editor.org/rfc/rfc9562#section-4.2 RFC 9562, 4.2. Version Field */ public const UUID_TYPE_RANDOM = 4; /** * Version 5 (name-based and hashed with SHA1) UUID * * @link https://www.rfc-editor.org/rfc/rfc9562#section-4.2 RFC 9562, 4.2. Version Field */ public const UUID_TYPE_HASH_SHA1 = 5; /** * @deprecated Use {@see Uuid::UUID_TYPE_REORDERED_TIME} instead. */ public const UUID_TYPE_PEABODY = 6; /** * Version 6 (reordered Gregorian time) UUID * * @link https://www.rfc-editor.org/rfc/rfc9562#section-4.2 RFC 9562, 4.2. Version Field */ public const UUID_TYPE_REORDERED_TIME = 6; /** * Version 7 (Unix Epoch time) UUID * * @link https://www.rfc-editor.org/rfc/rfc9562#section-4.2 RFC 9562, 4.2. Version Field */ public const UUID_TYPE_UNIX_TIME = 7; /** * Version 8 (custom format) UUID * * @link https://www.rfc-editor.org/rfc/rfc9562#section-4.2 RFC 9562, 4.2. Version Field */ public const UUID_TYPE_CUSTOM = 8; /** * DCE Security principal domain * * @link https://pubs.opengroup.org/onlinepubs/9696989899/chap11.htm#tagcjh_14_05_01_01 DCE 1.1, §11.5.1.1 */ public const DCE_DOMAIN_PERSON = 0; /** * DCE Security group domain * * @link https://pubs.opengroup.org/onlinepubs/9696989899/chap11.htm#tagcjh_14_05_01_01 DCE 1.1, §11.5.1.1 */ public const DCE_DOMAIN_GROUP = 1; /** * DCE Security organization domain * * @link https://pubs.opengroup.org/onlinepubs/9696989899/chap11.htm#tagcjh_14_05_01_01 DCE 1.1, §11.5.1.1 */ public const DCE_DOMAIN_ORG = 2; /** * DCE Security domain string names * * @link https://pubs.opengroup.org/onlinepubs/9696989899/chap11.htm#tagcjh_14_05_01_01 DCE 1.1, §11.5.1.1 */ public const DCE_DOMAIN_NAMES = [ self::DCE_DOMAIN_PERSON => 'person', self::DCE_DOMAIN_GROUP => 'group', self::DCE_DOMAIN_ORG => 'org', ]; /** * @phpstan-ignore property.readOnlyByPhpDocDefaultValue */ private static ?UuidFactoryInterface $factory = null; /** * @var bool flag to detect if the UUID factory was replaced internally, which disables all optimizations for the * default/happy path internal scenarios * @phpstan-ignore property.readOnlyByPhpDocDefaultValue */ private static bool $factoryReplaced = false; protected CodecInterface $codec; protected NumberConverterInterface $numberConverter; protected Rfc4122FieldsInterface $fields; protected TimeConverterInterface $timeConverter; /** * Creates a universally unique identifier (UUID) from an array of fields * * Unless you're making advanced use of this library to generate identifiers that deviate from RFC 9562 (formerly * RFC 4122), you probably do not want to instantiate a UUID directly. Use the static methods, instead: * * ``` * use Ramsey\Uuid\Uuid; * * $timeBasedUuid = Uuid::uuid1(); * $namespaceMd5Uuid = Uuid::uuid3(Uuid::NAMESPACE_URL, 'http://php.net/'); * $randomUuid = Uuid::uuid4(); * $namespaceSha1Uuid = Uuid::uuid5(Uuid::NAMESPACE_URL, 'http://php.net/'); * ``` * * @param Rfc4122FieldsInterface $fields The fields from which to construct a UUID * @param NumberConverterInterface $numberConverter The number converter to use for converting hex values to/from integers * @param CodecInterface $codec The codec to use when encoding or decoding UUID strings * @param TimeConverterInterface $timeConverter The time converter to use for converting timestamps extracted from a * UUID to unix timestamps */ public function __construct( Rfc4122FieldsInterface $fields, NumberConverterInterface $numberConverter, CodecInterface $codec, TimeConverterInterface $timeConverter, ) { $this->fields = $fields; $this->codec = $codec; $this->numberConverter = $numberConverter; $this->timeConverter = $timeConverter; } /** * @return non-empty-string */ public function __toString(): string { return $this->toString(); } /** * Converts the UUID to a string for JSON serialization */ public function jsonSerialize(): string { return $this->toString(); } /** * Converts the UUID to a string for PHP serialization */ public function serialize(): string { return $this->codec->encode($this); } /** * @return array{bytes: string} */ public function __serialize(): array { return ['bytes' => $this->serialize()]; } /** * Re-constructs the object from its serialized form * * @param string $data The serialized PHP string to unserialize into a UuidInterface instance */ public function unserialize(string $data): void { if (strlen($data) === 16) { /** @var Uuid $uuid */ $uuid = self::getFactory()->fromBytes($data); } else { /** @var Uuid $uuid */ $uuid = self::getFactory()->fromString($data); } /** @phpstan-ignore property.readOnlyByPhpDocAssignNotInConstructor */ $this->codec = $uuid->codec; /** @phpstan-ignore property.readOnlyByPhpDocAssignNotInConstructor */ $this->numberConverter = $uuid->numberConverter; /** @phpstan-ignore property.readOnlyByPhpDocAssignNotInConstructor */ $this->fields = $uuid->fields; /** @phpstan-ignore property.readOnlyByPhpDocAssignNotInConstructor */ $this->timeConverter = $uuid->timeConverter; } /** * @param array{bytes?: string} $data */ public function __unserialize(array $data): void { // @codeCoverageIgnoreStart if (!isset($data['bytes'])) { throw new ValueError(sprintf('%s(): Argument #1 ($data) is invalid', __METHOD__)); } // @codeCoverageIgnoreEnd $this->unserialize($data['bytes']); } public function compareTo(UuidInterface $other): int { $compare = strcmp($this->toString(), $other->toString()); if ($compare < 0) { return -1; } if ($compare > 0) { return 1; } return 0; } public function equals(?object $other): bool { if (!$other instanceof UuidInterface) { return false; } return $this->compareTo($other) === 0; } /** * @return non-empty-string */ public function getBytes(): string { return $this->codec->encodeBinary($this); } public function getFields(): FieldsInterface { return $this->fields; } public function getHex(): Hexadecimal { return new Hexadecimal(str_replace('-', '', $this->toString())); } public function getInteger(): IntegerObject { return new IntegerObject($this->numberConverter->fromHex($this->getHex()->toString())); } public function getUrn(): string { return 'urn:uuid:' . $this->toString(); } /** * @return non-empty-string */ public function toString(): string { return $this->codec->encode($this); } /** * Returns the factory used to create UUIDs */ public static function getFactory(): UuidFactoryInterface { if (self::$factory === null) { self::$factory = new UuidFactory(); } return self::$factory; } /** * Sets the factory used to create UUIDs * * @param UuidFactoryInterface $factory A factory that will be used by this class to create UUIDs */ public static function setFactory(UuidFactoryInterface $factory): void { // Note: non-strict equality is intentional here. If the factory is configured differently, every assumption // around purity is broken, and we have to internally decide everything differently. // phpcs:ignore SlevomatCodingStandard.Operators.DisallowEqualOperators.DisallowedNotEqualOperator self::$factoryReplaced = ($factory != new UuidFactory()); self::$factory = $factory; } /** * Creates a UUID from a byte string * * @param string $bytes A binary string * * @return UuidInterface A UuidInterface instance created from a binary string representation * * @throws InvalidArgumentException * * @pure */ public static function fromBytes(string $bytes): UuidInterface { /** @phpstan-ignore impure.staticPropertyAccess */ if (!self::$factoryReplaced && strlen($bytes) === 16) { $base16Uuid = bin2hex($bytes); // Note: we are calling `fromString` internally because we don't know if the given `$bytes` is a valid UUID return self::fromString( substr($base16Uuid, 0, 8) . '-' . substr($base16Uuid, 8, 4) . '-' . substr($base16Uuid, 12, 4) . '-' . substr($base16Uuid, 16, 4) . '-' . substr($base16Uuid, 20, 12), ); } /** @phpstan-ignore possiblyImpure.methodCall */ return self::getFactory()->fromBytes($bytes); } /** * Creates a UUID from the string standard representation * * @param string $uuid A hexadecimal string * * @return UuidInterface A UuidInterface instance created from a hexadecimal string representation * * @throws InvalidArgumentException * * @pure */ public static function fromString(string $uuid): UuidInterface { $uuid = strtolower($uuid); /** @phpstan-ignore impure.staticPropertyAccess, possiblyImpure.functionCall */ if (!self::$factoryReplaced && preg_match(LazyUuidFromString::VALID_REGEX, $uuid) === 1) { /** @phpstan-ignore possiblyImpure.functionCall */ assert($uuid !== ''); /** @phpstan-ignore possiblyImpure.new */ return new LazyUuidFromString($uuid); } /** @phpstan-ignore possiblyImpure.methodCall */ return self::getFactory()->fromString($uuid); } /** * Creates a UUID from a DateTimeInterface instance * * @param DateTimeInterface $dateTime The date and time * @param Hexadecimal | null $node A 48-bit number representing the hardware address * @param int | null $clockSeq A 14-bit number used to help avoid duplicates that could arise when the clock is set * backwards in time or if the node ID changes * * @return UuidInterface A UuidInterface instance that represents a version 1 UUID created from a DateTimeInterface instance */ public static function fromDateTime( DateTimeInterface $dateTime, ?Hexadecimal $node = null, ?int $clockSeq = null ): UuidInterface { return self::getFactory()->fromDateTime($dateTime, $node, $clockSeq); } /** * Creates a UUID from the Hexadecimal object * * @param Hexadecimal $hex Hexadecimal object representing a hexadecimal number * * @return UuidInterface A UuidInterface instance created from the Hexadecimal object representing a hexadecimal number * * @throws InvalidArgumentException * * @pure */ public static function fromHexadecimal(Hexadecimal $hex): UuidInterface { /** @phpstan-ignore possiblyImpure.methodCall */ $factory = self::getFactory(); if (method_exists($factory, 'fromHexadecimal')) { /** @phpstan-ignore possiblyImpure.methodCall */ $uuid = $factory->fromHexadecimal($hex); /** @phpstan-ignore possiblyImpure.functionCall */ assert($uuid instanceof UuidInterface); return $uuid; } throw new BadMethodCallException('The method fromHexadecimal() does not exist on the provided factory'); } /** * Creates a UUID from a 128-bit integer string * * @param string $integer String representation of 128-bit integer * * @return UuidInterface A UuidInterface instance created from the string representation of a 128-bit integer * * @throws InvalidArgumentException * * @pure */ public static function fromInteger(string $integer): UuidInterface { /** @phpstan-ignore possiblyImpure.methodCall */ return self::getFactory()->fromInteger($integer); } /** * Returns true if the provided string is a valid UUID * * @param string $uuid A string to validate as a UUID * * @return bool True if the string is a valid UUID, false otherwise * * @phpstan-assert-if-true =non-empty-string $uuid * * @pure */ public static function isValid(string $uuid): bool { /** @phpstan-ignore possiblyImpure.methodCall, possiblyImpure.methodCall */ return self::getFactory()->getValidator()->validate($uuid); } /** * Returns a version 1 (Gregorian time) UUID from a host ID, sequence number, and the current time * * @param Hexadecimal | int | string | null $node A 48-bit number representing the hardware address; this number may * be represented as an integer or a hexadecimal string * @param int | null $clockSeq A 14-bit number used to help avoid duplicates that could arise when the clock is set * backwards in time or if the node ID changes * * @return UuidInterface A UuidInterface instance that represents a version 1 UUID */ public static function uuid1($node = null, ?int $clockSeq = null): UuidInterface { return self::getFactory()->uuid1($node, $clockSeq); } /** * Returns a version 2 (DCE Security) UUID from a local domain, local identifier, host ID, clock sequence, and the current time * * @param int $localDomain The local domain to use when generating bytes, according to DCE Security * @param IntegerObject | null $localIdentifier The local identifier for the given domain; this may be a UID or GID * on POSIX systems, if the local domain is "person" or "group," or it may be a site-defined identifier if the * local domain is "org" * @param Hexadecimal | null $node A 48-bit number representing the hardware address * @param int | null $clockSeq A 14-bit number used to help avoid duplicates that could arise when the clock is set * backwards in time or if the node ID changes (in a version 2 UUID, the lower 8 bits of this number are * replaced with the domain). * * @return UuidInterface A UuidInterface instance that represents a version 2 UUID */ public static function uuid2( int $localDomain, ?IntegerObject $localIdentifier = null, ?Hexadecimal $node = null, ?int $clockSeq = null ): UuidInterface { return self::getFactory()->uuid2($localDomain, $localIdentifier, $node, $clockSeq); } /** * Returns a version 3 (name-based) UUID based on the MD5 hash of a namespace ID and a name * * @param UuidInterface | string $ns The namespace (must be a valid UUID) * @param string $name The name to use for creating a UUID * * @return UuidInterface A UuidInterface instance that represents a version 3 UUID * * @pure */ public static function uuid3($ns, string $name): UuidInterface { /** @phpstan-ignore possiblyImpure.methodCall */ return self::getFactory()->uuid3($ns, $name); } /** * Returns a version 4 (random) UUID * * @return UuidInterface A UuidInterface instance that represents a version 4 UUID */ public static function uuid4(): UuidInterface { return self::getFactory()->uuid4(); } /** * Returns a version 5 (name-based) UUID based on the SHA-1 hash of a namespace ID and a name * * @param UuidInterface | string $ns The namespace (must be a valid UUID) * @param string $name The name to use for creating a UUID * * @return UuidInterface A UuidInterface instance that represents a version 5 UUID * * @pure */ public static function uuid5($ns, string $name): UuidInterface { /** @phpstan-ignore possiblyImpure.methodCall */ return self::getFactory()->uuid5($ns, $name); } /** * Returns a version 6 (reordered Gregorian time) UUID from a host ID, sequence number, and the current time * * @param Hexadecimal | null $node A 48-bit number representing the hardware address * @param int | null $clockSeq A 14-bit number used to help avoid duplicates that could arise when the clock is set * backwards in time or if the node ID changes * * @return UuidInterface A UuidInterface instance that represents a version 6 UUID */ public static function uuid6( ?Hexadecimal $node = null, ?int $clockSeq = null ): UuidInterface { return self::getFactory()->uuid6($node, $clockSeq); } /** * Returns a version 7 (Unix Epoch time) UUID * * @param DateTimeInterface | null $dateTime An optional date/time from which to create the version 7 UUID. If not * provided, the UUID is generated using the current date/time. * * @return UuidInterface A UuidInterface instance that represents a version 7 UUID */ public static function uuid7(?DateTimeInterface $dateTime = null): UuidInterface { $factory = self::getFactory(); if (method_exists($factory, 'uuid7')) { /** @var UuidInterface */ return $factory->uuid7($dateTime); } throw new UnsupportedOperationException('The provided factory does not support the uuid7() method'); } /** * Returns a version 8 (custom format) UUID * * The bytes provided may contain any value according to your application's needs. Be aware, however, that other * applications may not understand the semantics of the value. * * @param string $bytes A 16-byte octet string. This is an open blob of data that you may fill with 128 bits of * information. Be aware, however, bits 48 through 51 will be replaced with the UUID version field, and bits 64 * and 65 will be replaced with the UUID variant. You MUST NOT rely on these bits for your application needs. * * @return UuidInterface A UuidInterface instance that represents a version 8 UUID * * @pure */ public static function uuid8(string $bytes): UuidInterface { /** @phpstan-ignore possiblyImpure.methodCall */ $factory = self::getFactory(); if (method_exists($factory, 'uuid8')) { /** * @var UuidInterface * @phpstan-ignore possiblyImpure.methodCall */ return $factory->uuid8($bytes); } throw new UnsupportedOperationException('The provided factory does not support the uuid8() method'); } }
php
MIT
8429c78ca35a09f27565311b98101e2826affde0
2026-01-04T15:03:10.515964Z
false
ramsey/uuid
https://github.com/ramsey/uuid/blob/8429c78ca35a09f27565311b98101e2826affde0/src/DeprecatedUuidInterface.php
src/DeprecatedUuidInterface.php
<?php /** * This file is part of the ramsey/uuid library * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com> * @license http://opensource.org/licenses/MIT MIT */ declare(strict_types=1); namespace Ramsey\Uuid; use DateTimeInterface; use Ramsey\Uuid\Converter\NumberConverterInterface; /** * This interface encapsulates deprecated methods for ramsey/uuid * * @immutable */ interface DeprecatedUuidInterface { /** * @deprecated This method will be removed in 5.0.0. There is no alternative recommendation, so plan accordingly. */ public function getNumberConverter(): NumberConverterInterface; /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see FieldsInterface} instance. * * @return string[] */ public function getFieldsHex(): array; /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see FieldsInterface} instance. If it is a * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqHiAndReserved()}. */ public function getClockSeqHiAndReservedHex(): string; /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see FieldsInterface} instance. If it is a * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqLow()}. */ public function getClockSeqLowHex(): string; /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see FieldsInterface} instance. If it is a * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeq()}. */ public function getClockSequenceHex(): string; /** * @deprecated In ramsey/uuid version 5.0.0, this will be removed from the interface. It is available at * {@see UuidV1::getDateTime()}. */ public function getDateTime(): DateTimeInterface; /** * @deprecated This method will be removed in 5.0.0. There is no direct alternative, but the same information may be * obtained by splitting in half the value returned by {@see UuidInterface::getHex()}. */ public function getLeastSignificantBitsHex(): string; /** * @deprecated This method will be removed in 5.0.0. There is no direct alternative, but the same information may be * obtained by splitting in half the value returned by {@see UuidInterface::getHex()}. */ public function getMostSignificantBitsHex(): string; /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see FieldsInterface} instance. If it is a * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getNode()}. */ public function getNodeHex(): string; /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see FieldsInterface} instance. If it is a * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeHiAndVersion()}. */ public function getTimeHiAndVersionHex(): string; /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see FieldsInterface} instance. If it is a * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeLow()}. */ public function getTimeLowHex(): string; /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see FieldsInterface} instance. If it is a * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeMid()}. */ public function getTimeMidHex(): string; /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see FieldsInterface} instance. If it is a * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimestamp()}. */ public function getTimestampHex(): string; /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see FieldsInterface} instance. If it is a * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getVariant()}. */ public function getVariant(): ?int; /** * @deprecated Use {@see UuidInterface::getFields()} to get a {@see FieldsInterface} instance. If it is a * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getVersion()}. */ public function getVersion(): ?int; }
php
MIT
8429c78ca35a09f27565311b98101e2826affde0
2026-01-04T15:03:10.515964Z
false