2024-01-10 13:41:05 +00:00
|
|
|
<div>
|
2024-06-07 09:01:10 +00:00
|
|
|
<x-slot:title>
|
|
|
|
{{ data_get_str($database, 'name')->limit(10) }} > Configuration | Coolify
|
|
|
|
</x-slot>
|
2024-01-07 15:23:41 +00:00
|
|
|
<h1>Configuration</h1>
|
2024-04-12 10:44:49 +00:00
|
|
|
<livewire:project.shared.configuration-checker :resource="$database" />
|
2024-01-07 15:23:41 +00:00
|
|
|
<livewire:project.database.heading :database="$database" />
|
2024-05-06 11:58:19 +00:00
|
|
|
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }" class="flex flex-col h-full gap-8 pt-6 sm:flex-row">
|
2024-05-06 12:30:50 +00:00
|
|
|
<div class="flex flex-col items-start gap-2 min-w-fit">
|
2024-05-05 16:41:15 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'general' && 'menu-item-active'"
|
2024-01-07 15:23:41 +00:00
|
|
|
@click.prevent="activeTab = 'general';
|
|
|
|
window.location.hash = 'general'"
|
|
|
|
href="#">General</a>
|
2024-05-05 16:41:15 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'environment-variables' && 'menu-item-active'"
|
2024-01-07 15:23:41 +00:00
|
|
|
@click.prevent="activeTab = 'environment-variables'; window.location.hash = 'environment-variables'"
|
|
|
|
href="#">Environment
|
|
|
|
Variables</a>
|
2024-05-05 16:41:15 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'servers' && 'menu-item-active'"
|
2024-02-07 13:55:06 +00:00
|
|
|
@click.prevent="activeTab = 'servers';
|
|
|
|
window.location.hash = 'servers'"
|
|
|
|
href="#">Servers
|
2024-01-07 15:23:41 +00:00
|
|
|
</a>
|
2024-05-05 16:41:15 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'storages' && 'menu-item-active'"
|
2024-01-07 15:23:41 +00:00
|
|
|
@click.prevent="activeTab = 'storages';
|
|
|
|
window.location.hash = 'storages'"
|
|
|
|
href="#">Storages
|
|
|
|
</a>
|
2024-05-05 16:41:15 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'import' && 'menu-item-active'"
|
2024-01-10 14:42:54 +00:00
|
|
|
@click.prevent="activeTab = 'import';
|
|
|
|
window.location.hash = 'import'" href="#">Import
|
|
|
|
Backup
|
|
|
|
</a>
|
2024-05-05 16:41:15 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'webhooks' && 'menu-item-active'"
|
2024-01-07 15:23:41 +00:00
|
|
|
@click.prevent="activeTab = 'webhooks'; window.location.hash = 'webhooks'" href="#">Webhooks
|
|
|
|
</a>
|
2024-05-05 16:41:15 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'resource-limits' && 'menu-item-active'"
|
2024-01-07 15:23:41 +00:00
|
|
|
@click.prevent="activeTab = 'resource-limits';
|
|
|
|
window.location.hash = 'resource-limits'"
|
|
|
|
href="#">Resource Limits
|
|
|
|
</a>
|
2024-05-05 16:41:15 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'resource-operations' && 'menu-item-active'"
|
2024-01-22 15:08:18 +00:00
|
|
|
@click.prevent="activeTab = 'resource-operations'; window.location.hash = 'resource-operations'"
|
|
|
|
href="#">Resource Operations
|
2024-01-22 14:12:38 +00:00
|
|
|
</a>
|
2024-06-20 11:17:06 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'metrics' && 'menu-item-active'"
|
|
|
|
@click.prevent="activeTab = 'metrics'; window.location.hash = 'metrics'" href="#">Metrics
|
|
|
|
</a>
|
2024-05-05 16:41:15 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'tags' && 'menu-item-active'"
|
2024-02-02 10:50:28 +00:00
|
|
|
@click.prevent="activeTab = 'tags'; window.location.hash = 'tags'" href="#">Tags
|
|
|
|
</a>
|
2024-05-05 16:41:15 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'danger' && 'menu-item-active'"
|
2024-01-07 15:23:41 +00:00
|
|
|
@click.prevent="activeTab = 'danger';
|
|
|
|
window.location.hash = 'danger'"
|
|
|
|
href="#">Danger Zone
|
|
|
|
</a>
|
|
|
|
</div>
|
2024-05-05 15:23:25 +00:00
|
|
|
<div class="w-full">
|
2024-01-07 15:23:41 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'general'" class="h-full">
|
|
|
|
@if ($database->type() === 'standalone-postgresql')
|
|
|
|
<livewire:project.database.postgresql.general :database="$database" />
|
|
|
|
@elseif ($database->type() === 'standalone-redis')
|
|
|
|
<livewire:project.database.redis.general :database="$database" />
|
|
|
|
@elseif ($database->type() === 'standalone-mongodb')
|
|
|
|
<livewire:project.database.mongodb.general :database="$database" />
|
|
|
|
@elseif ($database->type() === 'standalone-mysql')
|
|
|
|
<livewire:project.database.mysql.general :database="$database" />
|
|
|
|
@elseif ($database->type() === 'standalone-mariadb')
|
|
|
|
<livewire:project.database.mariadb.general :database="$database" />
|
2024-04-10 13:00:46 +00:00
|
|
|
@elseif ($database->type() === 'standalone-keydb')
|
|
|
|
<livewire:project.database.keydb.general :database="$database" />
|
|
|
|
@elseif ($database->type() === 'standalone-dragonfly')
|
|
|
|
<livewire:project.database.dragonfly.general :database="$database" />
|
|
|
|
@elseif ($database->type() === 'standalone-clickhouse')
|
|
|
|
<livewire:project.database.clickhouse.general :database="$database" />
|
2024-01-07 15:23:41 +00:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="activeTab === 'environment-variables'">
|
|
|
|
<livewire:project.shared.environment-variable.all :resource="$database" />
|
|
|
|
</div>
|
2024-02-07 13:55:06 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'servers'">
|
2024-01-07 15:23:41 +00:00
|
|
|
<livewire:project.shared.destination :resource="$database" />
|
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="activeTab === 'storages'">
|
|
|
|
<livewire:project.service.storage :resource="$database" />
|
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="activeTab === 'webhooks'">
|
|
|
|
<livewire:project.shared.webhooks :resource="$database" />
|
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="activeTab === 'resource-limits'">
|
|
|
|
<livewire:project.shared.resource-limits :resource="$database" />
|
|
|
|
</div>
|
2024-01-10 13:33:21 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'import'">
|
|
|
|
<livewire:project.database.import :resource="$database" />
|
|
|
|
</div>
|
2024-01-22 15:08:18 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'resource-operations'">
|
|
|
|
<livewire:project.shared.resource-operations :resource="$database" />
|
2024-01-22 14:12:38 +00:00
|
|
|
</div>
|
2024-06-20 11:17:06 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'metrics'">
|
|
|
|
<livewire:project.shared.metrics :resource="$database" />
|
|
|
|
</div>
|
2024-02-02 10:50:28 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'tags'">
|
|
|
|
<livewire:project.shared.tags :resource="$database" />
|
|
|
|
</div>
|
2024-01-07 15:23:41 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'danger'">
|
|
|
|
<livewire:project.shared.danger :resource="$database" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-01-10 13:41:05 +00:00
|
|
|
</div>
|