An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
feat: db proxy logs
Andras Bacsai4667f96b4099
diff --git a/app/Livewire/Project/Database/Clickhouse/General.php b/app/Livewire/Project/Database/Clickhouse/General.phpindex 7fe9c1ce0f..33a339e845 100644--- a/app/Livewire/Project/Database/Clickhouse/General.php+++ b/app/Livewire/Project/Database/Clickhouse/General.php@@ -4,12 +4,14 @@ namespace App\Livewire\Project\Database\Clickhouse;use App\Actions\Database\StartDatabaseProxy;use App\Actions\Database\StopDatabaseProxy;+use App\Models\Server;use App\Models\StandaloneClickhouse;use Exception;use Livewire\Component;class General extends Component{+ public Server $server;public StandaloneClickhouse $database;public ?string $db_url = null;public ?string $db_url_public = null;@@ -43,10 +45,11 @@ class General extends Componentif ($this->database->is_public) {$this->db_url_public = $this->database->get_db_url();}+ $this->server = data_get($this->database,'destination.server');}public function instantSaveAdvanced() {try {- if (!$this->database->destination->server->isLogDrainEnabled()) {+ if (!$this->server->isLogDrainEnabled()) {$this->database->is_log_drain_enabled = false;$this->dispatch('error', 'Log drain is not enabled on the server. Please enable it first.');return;diff --git a/app/Livewire/Project/Database/Dragonfly/General.php b/app/Livewire/Project/Database/Dragonfly/General.phpindex 0a4adf269f..d9f1290bca 100644--- a/app/Livewire/Project/Database/Dragonfly/General.php+++ b/app/Livewire/Project/Database/Dragonfly/General.php@@ -4,6 +4,7 @@ namespace App\Livewire\Project\Database\Dragonfly;use App\Actions\Database\StartDatabaseProxy;use App\Actions\Database\StopDatabaseProxy;+use App\Models\Server;use App\Models\StandaloneDragonfly;use Exception;use Livewire\Component;@@ -12,6 +13,7 @@ class General extends Component{protected $listeners = ['refresh'];+ public Server $server;public StandaloneDragonfly $database;public ?string $db_url = null;public ?string $db_url_public = null;@@ -41,10 +43,11 @@ class General extends Componentif ($this->database->is_public) {$this->db_url_public = $this->database->get_db_url();}+ $this->server = data_get($this->database,'destination.server');}public function instantSaveAdvanced() {try {- if (!$this->database->destination->server->isLogDrainEnabled()) {+ if (!$this->server->isLogDrainEnabled()) {$this->database->is_log_drain_enabled = false;$this->dispatch('error', 'Log drain is not enabled on the server. Please enable it first.');return;diff --git a/app/Livewire/Project/Database/Keydb/General.php b/app/Livewire/Project/Database/Keydb/General.phpindex 536f743f2b..222b8a2fc8 100644--- a/app/Livewire/Project/Database/Keydb/General.php+++ b/app/Livewire/Project/Database/Keydb/General.php@@ -4,6 +4,7 @@ namespace App\Livewire\Project\Database\Keydb;use App\Actions\Database\StartDatabaseProxy;use App\Actions\Database\StopDatabaseProxy;+use App\Models\Server;use App\Models\StandaloneKeydb;use Exception;use Livewire\Component;@@ -12,6 +13,7 @@ class General extends Component{protected $listeners = ['refresh'];+ public Server $server;public StandaloneKeydb $database;public ?string $db_url = null;public ?string $db_url_public = null;@@ -43,10 +45,12 @@ class General extends Componentif ($this->database->is_public) {$this->db_url_public = $this->database->get_db_url();}+ $this->server = data_get($this->database,'destination.server');+}public function instantSaveAdvanced() {try {- if (!$this->database->destination->server->isLogDrainEnabled()) {+ if (!$this->server->isLogDrainEnabled()) {$this->database->is_log_drain_enabled = false;$this->dispatch('error', 'Log drain is not enabled on the server. Please enable it first.');return;diff --git a/app/Livewire/Project/Database/Mariadb/General.php b/app/Livewire/Project/Database/Mariadb/General.phpindex c0c67898fd..f0a7deb827 100644--- a/app/Livewire/Project/Database/Mariadb/General.php+++ b/app/Livewire/Project/Database/Mariadb/General.php@@ -4,6 +4,7 @@ namespace App\Livewire\Project\Database\Mariadb;use App\Actions\Database\StartDatabaseProxy;use App\Actions\Database\StopDatabaseProxy;+use App\Models\Server;use App\Models\StandaloneMariadb;use Exception;use Livewire\Component;@@ -12,6 +13,7 @@ class General extends Component{protected $listeners = ['refresh'];+ public Server $server;public StandaloneMariadb $database;public ?string $db_url = null;public ?string $db_url_public = null;@@ -50,10 +52,12 @@ class General extends Componentif ($this->database->is_public) {$this->db_url_public = $this->database->get_db_url();}+ $this->server = data_get($this->database,'destination.server');+}public function instantSaveAdvanced() {try {- if (!$this->database->destination->server->isLogDrainEnabled()) {+ if (!$this->server->isLogDrainEnabled()) {$this->database->is_log_drain_enabled = false;$this->dispatch('error', 'Log drain is not enabled on the server. Please enable it first.');return;diff --git a/app/Livewire/Project/Database/Mongodb/General.php b/app/Livewire/Project/Database/Mongodb/General.phpindex 3c1271065e..3cce20bafe 100644--- a/app/Livewire/Project/Database/Mongodb/General.php+++ b/app/Livewire/Project/Database/Mongodb/General.php@@ -4,6 +4,7 @@ namespace App\Livewire\Project\Database\Mongodb;use App\Actions\Database\StartDatabaseProxy;use App\Actions\Database\StopDatabaseProxy;+use App\Models\Server;use App\Models\StandaloneMongodb;use Exception;use Livewire\Component;@@ -12,6 +13,7 @@ class General extends Component{protected $listeners = ['refresh'];+ public Server $server;public StandaloneMongodb $database;public ?string $db_url = null;public ?string $db_url_public = null;@@ -48,11 +50,13 @@ class General extends Componentif ($this->database->is_public) {$this->db_url_public = $this->database->get_db_url();}+ $this->server = data_get($this->database,'destination.server');+}public function instantSaveAdvanced(){try {- if (!$this->database->destination->server->isLogDrainEnabled()) {+ if (!$this->server->isLogDrainEnabled()) {$this->database->is_log_drain_enabled = false;$this->dispatch('error', 'Log drain is not enabled on the server. Please enable it first.');return;diff --git a/app/Livewire/Project/Database/Mysql/General.php b/app/Livewire/Project/Database/Mysql/General.phpindex a1fb9201a4..d7d5ae89f0 100644--- a/app/Livewire/Project/Database/Mysql/General.php+++ b/app/Livewire/Project/Database/Mysql/General.php@@ -4,6 +4,7 @@ namespace App\Livewire\Project\Database\Mysql;use App\Actions\Database\StartDatabaseProxy;use App\Actions\Database\StopDatabaseProxy;+use App\Models\Server;use App\Models\StandaloneMysql;use Exception;use Livewire\Component;@@ -13,6 +14,7 @@ class General extends Componentprotected $listeners = ['refresh'];public StandaloneMysql $database;+ public Server $server;public ?string $db_url = null;public ?string $db_url_public = null;@@ -50,11 +52,12 @@ class General extends Componentif ($this->database->is_public) {$this->db_url_public = $this->database->get_db_url();}+ $this->server = data_get($this->database,'destination.server');}public function instantSaveAdvanced(){try {- if (!$this->database->destination->server->isLogDrainEnabled()) {+ if (!$this->server->isLogDrainEnabled()) {$this->database->is_log_drain_enabled = false;$this->dispatch('error', 'Log drain is not enabled on the server. Please enable it first.');return;diff --git a/app/Livewire/Project/Database/Postgresql/General.php b/app/Livewire/Project/Database/Postgresql/General.phpindex 79d91e7aa1..4d5d918de7 100644--- a/app/Livewire/Project/Database/Postgresql/General.php+++ b/app/Livewire/Project/Database/Postgresql/General.php@@ -4,6 +4,7 @@ namespace App\Livewire\Project\Database\Postgresql;use App\Actions\Database\StartDatabaseProxy;use App\Actions\Database\StopDatabaseProxy;+use App\Models\Server;use App\Models\StandalonePostgresql;use Exception;use Livewire\Component;@@ -13,6 +14,7 @@ use function Aws\filter;class General extends Component{public StandalonePostgresql $database;+ public Server $server;public string $new_filename;public string $new_content;public ?string $db_url = null;@@ -57,11 +59,12 @@ class General extends Componentif ($this->database->is_public) {$this->db_url_public = $this->database->get_db_url();}+ $this->server = data_get($this->database,'destination.server');}public function instantSaveAdvanced(){try {- if (!$this->database->destination->server->isLogDrainEnabled()) {+ if (!$this->server->isLogDrainEnabled()) {$this->database->is_log_drain_enabled = false;$this->dispatch('error', 'Log drain is not enabled on the server. Please enable it first.');return;diff --git a/app/Livewire/Project/Database/Redis/General.php b/app/Livewire/Project/Database/Redis/General.phpindex a894626b00..aafd8495c0 100644--- a/app/Livewire/Project/Database/Redis/General.php+++ b/app/Livewire/Project/Database/Redis/General.php@@ -4,6 +4,7 @@ namespace App\Livewire\Project\Database\Redis;use App\Actions\Database\StartDatabaseProxy;use App\Actions\Database\StopDatabaseProxy;+use App\Models\Server;use App\Models\StandaloneRedis;use Exception;use Livewire\Component;@@ -12,6 +13,7 @@ class General extends Component{protected $listeners = ['refresh'];+ public Server $server;public StandaloneRedis $database;public ?string $db_url = null;public ?string $db_url_public = null;@@ -43,10 +45,12 @@ class General extends Componentif ($this->database->is_public) {$this->db_url_public = $this->database->get_db_url();}+ $this->server = data_get($this->database,'destination.server');+}public function instantSaveAdvanced() {try {- if (!$this->database->destination->server->isLogDrainEnabled()) {+ if (!$this->server->isLogDrainEnabled()) {$this->database->is_log_drain_enabled = false;$this->dispatch('error', 'Log drain is not enabled on the server. Please enable it first.');return;diff --git a/database/migrations/new_services.php b/database/seeders/new_services.phpsimilarity index 100%rename from database/migrations/new_services.phprename to database/seeders/new_services.phpdiff --git a/resources/views/livewire/project/database/clickhouse/general.blade.php b/resources/views/livewire/project/database/clickhouse/general.blade.phpindex 91f12a94b8..78a2c4952b 100644--- a/resources/views/livewire/project/database/clickhouse/general.blade.php+++ b/resources/views/livewire/project/database/clickhouse/general.blade.php@@ -15,8 +15,8 @@@if ($database->started_at)<div class="flex gap-2">- <x-forms.input label="Initial Username" id="database.clickhouse_admin_user" placeholder="If empty: clickhouse"- readonly helper="You can only change this in the database." />+ <x-forms.input label="Initial Username" id="database.clickhouse_admin_user"+ placeholder="If empty: clickhouse" readonly helper="You can only change this in the database." /><x-forms.input label="Initial Password" id="database.clickhouse_admin_password" type="password" requiredreadonly helper="You can only change this in the database." /></div>@@ -34,9 +34,6 @@<div class="flex items-end gap-2"><x-forms.input placeholder="3000:5432" id="database.ports_mappings" 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" />- <x-forms.input placeholder="5432" disabled="{{ $database->is_public }}" id="database.public_port"- label="Public Port" />- <x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" /></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."@@ -47,6 +44,23 @@type="password" readonly wire:model="db_url_public" />@endif</div>+ <div>+ <h3 class="py-2">Proxy</h3>+ <div class="flex items-end gap-2">+ <x-forms.input placeholder="5432" disabled="{{ data_get($database, 'is_public') }}"+ id="database.public_port" label="Public Port" />+ <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" lazy />+ </x-slot:content>+ <x-forms.button disabled="{{ !data_get($database, 'is_public') }}" @click="slideOverOpen=true"+ class="w-28">Proxy Logs</x-forms.button>+ </x-slide-over>+ <x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />+ </div>+ </div></form><h3 class="pt-4">Advanced</h3><div class="flex flex-col">diff --git a/resources/views/livewire/project/database/dragonfly/general.blade.php b/resources/views/livewire/project/database/dragonfly/general.blade.phpindex f9552f0378..c6ee13fa3f 100644--- a/resources/views/livewire/project/database/dragonfly/general.blade.php+++ b/resources/views/livewire/project/database/dragonfly/general.blade.php@@ -16,9 +16,6 @@<div class="flex items-end gap-2"><x-forms.input placeholder="3000:5432" id="database.ports_mappings" 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" />- <x-forms.input placeholder="5432" disabled="{{ $database->is_public }}" id="database.public_port"- label="Public Port" />- <x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" /></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."@@ -29,6 +26,23 @@type="password" readonly wire:model="db_url_public" />@endif</div>+ <div>+ <h3 class="py-2">Proxy</h3>+ <div class="flex items-end gap-2">+ <x-forms.input placeholder="5432" disabled="{{ data_get($database, 'is_public') }}"+ id="database.public_port" label="Public Port" />+ <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" lazy />+ </x-slot:content>+ <x-forms.button disabled="{{ !data_get($database, 'is_public') }}" @click="slideOverOpen=true"+ class="w-28">Proxy Logs</x-forms.button>+ </x-slide-over>+ <x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />+ </div>+ </div>{{-- <x-forms.textareahelper="<a target='_blank' class='underline dark:text-white' href='https://raw.githubusercontent.com/Snapchat/KeyDB/unstable/keydb.conf'>KeyDB Default Configuration</a>"label="Custom Dragonfly Configuration" rows="10" id="database.keydb_conf" /> --}}diff --git a/resources/views/livewire/project/database/keydb/general.blade.php b/resources/views/livewire/project/database/keydb/general.blade.phpindex 152b3c6cda..d1134d73d1 100644--- a/resources/views/livewire/project/database/keydb/general.blade.php+++ b/resources/views/livewire/project/database/keydb/general.blade.php@@ -17,9 +17,6 @@<div class="flex items-end gap-2"><x-forms.input placeholder="3000:5432" id="database.ports_mappings" 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" />- <x-forms.input placeholder="5432" disabled="{{ $database->is_public }}" id="database.public_port"- label="Public Port" />- <x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" /></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."@@ -30,6 +27,23 @@type="password" readonly wire:model="db_url_public" />@endif</div>+ <div>+ <h3 class="py-2">Proxy</h3>+ <div class="flex items-end gap-2">+ <x-forms.input placeholder="5432" disabled="{{ data_get($database, 'is_public') }}"+ id="database.public_port" label="Public Port" />+ <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" lazy />+ </x-slot:content>+ <x-forms.button disabled="{{ !data_get($database, 'is_public') }}" @click="slideOverOpen=true"+ class="w-28">Proxy Logs</x-forms.button>+ </x-slide-over>+ <x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />+ </div>+ </div><x-forms.textareahelper="<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="database.keydb_conf" />diff --git a/resources/views/livewire/project/database/mariadb/general.blade.php b/resources/views/livewire/project/database/mariadb/general.blade.phpindex 7f0596b5c6..ddb35a6bc4 100644--- a/resources/views/livewire/project/database/mariadb/general.blade.php+++ b/resources/views/livewire/project/database/mariadb/general.blade.php@@ -45,9 +45,6 @@<div class="flex items-end gap-2"><x-forms.input placeholder="3000:5432" id="database.ports_mappings" 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" />- <x-forms.input placeholder="5432" disabled="{{ $database->is_public }}" id="database.public_port"- label="Public Port" />- <x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" /></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."@@ -58,6 +55,23 @@type="password" readonly wire:model="db_url_public" />@endif</div>+ <div>+ <h3 class="py-2">Proxy</h3>+ <div class="flex items-end gap-2">+ <x-forms.input placeholder="5432" disabled="{{ data_get($database, 'is_public') }}"+ id="database.public_port" label="Public Port" />+ <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" lazy />+ </x-slot:content>+ <x-forms.button disabled="{{ !data_get($database, 'is_public') }}" @click="slideOverOpen=true"+ class="w-28">Proxy Logs</x-forms.button>+ </x-slide-over>+ <x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />+ </div>+ </div><x-forms.textarea label="Custom MariaDB Configuration" rows="10" id="database.mariadb_conf" /><h3 class="pt-4">Advanced</h3><div class="flex flex-col">diff --git a/resources/views/livewire/project/database/mongodb/general.blade.php b/resources/views/livewire/project/database/mongodb/general.blade.phpindex b405985a83..a5017b21f8 100644--- a/resources/views/livewire/project/database/mongodb/general.blade.php+++ b/resources/views/livewire/project/database/mongodb/general.blade.php@@ -18,9 +18,11 @@@if ($database->started_at)<div class="flex flex-col gap-2"><x-forms.input label="Initial Username" id="database.mongo_initdb_root_username"- placeholder="If empty: postgres" helper="If you change this in the database, please sync it here, otherwise automations (like backups) won't work." />+ placeholder="If empty: postgres"+ helper="If you change this in the database, please sync it here, otherwise automations (like backups) won't work." /><x-forms.input label="Initial Password" id="database.mongo_initdb_root_password" type="password"- required helper="If you change this in the database, please sync it here, otherwise automations (like backups) won't work." />+ required+ helper="If you change this in the database, please sync it here, otherwise automations (like backups) won't work." /><x-forms.input label="Initial Database" id="database.mongo_initdb_database"placeholder="If empty, it will be the same as Username." readonlyhelper="You can only change this in the database." />@@ -39,9 +41,6 @@<div class="flex items-end gap-2"><x-forms.input placeholder="3000:5432" id="database.ports_mappings" 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" />- <x-forms.input placeholder="5432" disabled="{{ $database->is_public }}" id="database.public_port"- label="Public Port" />- <x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" /></div><x-forms.input label="Mongo URL (internal)"helper="If you change the user/password/port, this could be different. This is with the default values."@@ -52,6 +51,23 @@type="password" readonly wire:model="db_url_public" />@endif</div>+ <div>+ <h3 class="py-2">Proxy</h3>+ <div class="flex items-end gap-2">+ <x-forms.input placeholder="5432" disabled="{{ data_get($database, 'is_public') }}"+ id="database.public_port" label="Public Port" />+ <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" lazy />+ </x-slot:content>+ <x-forms.button disabled="{{ !data_get($database, 'is_public') }}" @click="slideOverOpen=true"+ class="w-28">Proxy Logs</x-forms.button>+ </x-slide-over>+ <x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />+ </div>+ </div><x-forms.textarea label="Custom MongoDB Configuration" rows="10" id="database.mongo_conf" /><h3 class="pt-4">Advanced</h3><div class="flex flex-col">diff --git a/resources/views/livewire/project/database/mysql/general.blade.php b/resources/views/livewire/project/database/mysql/general.blade.phpindex 539948b2e7..85cbef0dd6 100644--- a/resources/views/livewire/project/database/mysql/general.blade.php+++ b/resources/views/livewire/project/database/mysql/general.blade.php@@ -45,9 +45,6 @@<div class="flex items-end gap-2"><x-forms.input placeholder="3000:5432" id="database.ports_mappings" 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" />- <x-forms.input placeholder="5432" disabled="{{ $database->is_public }}" id="database.public_port"- label="Public Port" />- <x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" /></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."@@ -58,6 +55,23 @@type="password" readonly wire:model="db_url_public" />@endif</div>+ <div>+ <h3 class="py-2">Proxy</h3>+ <div class="flex items-end gap-2">+ <x-forms.input placeholder="5432" disabled="{{ data_get($database, 'is_public') }}"+ id="database.public_port" label="Public Port" />+ <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" lazy />+ </x-slot:content>+ <x-forms.button disabled="{{ !data_get($database, 'is_public') }}" @click="slideOverOpen=true"+ class="w-28">Proxy Logs</x-forms.button>+ </x-slide-over>+ <x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />+ </div>+ </div><x-forms.textarea label="Custom Mysql Configuration" rows="10" id="database.mysql_conf" /><h3 class="pt-4">Advanced</h3><div class="flex flex-col">diff --git a/resources/views/livewire/project/database/postgresql/general.blade.php b/resources/views/livewire/project/database/postgresql/general.blade.phpindex e0ce81d8e2..718c44f97d 100644--- a/resources/views/livewire/project/database/postgresql/general.blade.php+++ b/resources/views/livewire/project/database/postgresql/general.blade.php@@ -26,7 +26,8 @@<x-forms.input label="Image" id="database.image" requiredhelper="For all available images, check here:<br><br><a target='_blank' href='https://hub.docker.com/_/postgres'>https://hub.docker.com/_/postgres</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 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 flex-col gap-2">@@ -57,10 +58,8 @@<div class="flex items-end gap-2"><x-forms.input placeholder="3000:5432" id="database.ports_mappings" 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" />- <x-forms.input placeholder="5432" disabled="{{ $database->is_public }}" id="database.public_port"- label="Public Port" />- <x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" /></div>+<x-forms.input label="Postgres 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" />@@ -70,6 +69,23 @@type="password" readonly wire:model="db_url_public" />@endif</div>+ <div>+ <h3 class="py-2">Proxy</h3>+ <div class="flex items-end gap-2">+ <x-forms.input placeholder="5432" disabled="{{ data_get($database, 'is_public') }}"+ id="database.public_port" label="Public Port" />+ <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" lazy />+ </x-slot:content>+ <x-forms.button disabled="{{ !data_get($database, 'is_public') }}" @click="slideOverOpen=true"+ class="w-28">Proxy Logs</x-forms.button>+ </x-slide-over>+ <x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />+ </div>+ </div><x-forms.textarea label="Custom PostgreSQL Configuration" rows="10" id="database.postgres_conf" /></form><h3 class="pt-4">Advanced</h3>diff --git a/resources/views/livewire/project/database/redis/general.blade.php b/resources/views/livewire/project/database/redis/general.blade.phpindex 48d3eadd49..ceb12a8029 100644--- a/resources/views/livewire/project/database/redis/general.blade.php+++ b/resources/views/livewire/project/database/redis/general.blade.php@@ -17,9 +17,6 @@<div class="flex items-end gap-2"><x-forms.input placeholder="3000:5432" id="database.ports_mappings" 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" />- <x-forms.input placeholder="5432" disabled="{{ $database->is_public }}" id="database.public_port"- label="Public Port" />- <x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" /></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."@@ -30,8 +27,25 @@type="password" readonly wire:model="db_url_public" />@endif</div>+ <div>+ <h3 class="py-2">Proxy</h3>+ <div class="flex items-end gap-2">+ <x-forms.input placeholder="5432" disabled="{{ data_get($database, 'is_public') }}"+ id="database.public_port" label="Public Port" />+ <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" lazy />+ </x-slot:content>+ <x-forms.button disabled="{{ !data_get($database, 'is_public') }}" @click="slideOverOpen=true"+ class="w-28">Proxy Logs</x-forms.button>+ </x-slide-over>+ <x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />+ </div>+ </div><x-forms.textarea- helper="<a target='_blank' class='dark:text-white underline' href='https://raw.githubusercontent.com/redis/redis/7.2/redis.conf'>Redis Default Configuration</a>"+ helper="<a target='_blank' class='underline dark:text-white' href='https://raw.githubusercontent.com/redis/redis/7.2/redis.conf'>Redis Default Configuration</a>"label="Custom Redis Configuration" rows="10" id="database.redis_conf" /><h3 class="pt-4">Advanced</h3><div class="flex flex-col">diff --git a/resources/views/livewire/project/shared/get-logs.blade.php b/resources/views/livewire/project/shared/get-logs.blade.phpindex e558473386..b8e10890d4 100644--- a/resources/views/livewire/project/shared/get-logs.blade.php+++ b/resources/views/livewire/project/shared/get-logs.blade.php@@ -34,7 +34,7 @@}}"><div class="flex items-center gap-2 ">- @if ($resource?->type() === 'application')+ @if ($resource?->type() === 'application' || str($resource?->type())->startsWith('standalone'))<h4>{{ $container }}</h4>@else<h3>{{ str($container)->beforeLast('-')->headline() }}</h3>