From 8c005435b5425fcc82dd92f029e0d6999703e941 Mon Sep 17 00:00:00 2001 From: ShadowArcanist Date: Sun, 21 Sep 2025 23:59:46 +0530 Subject: [PATCH 1/5] Added confirmation modal for switching proxies --- .../components/modal-confirmation.blade.php | 3 +- .../views/livewire/server/proxy.blade.php | 34 +++++++++---------- 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/resources/views/components/modal-confirmation.blade.php b/resources/views/components/modal-confirmation.blade.php index 0d185782f..1c82614a6 100644 --- a/resources/views/components/modal-confirmation.blade.php +++ b/resources/views/components/modal-confirmation.blade.php @@ -11,6 +11,7 @@ 'content' => null, 'checkboxes' => [], 'actions' => [], + 'warningMessage' => null, 'confirmWithText' => true, 'confirmationText' => 'Confirm Deletion', 'confirmationLabel' => 'Please confirm the execution of the actions by entering the Name below', @@ -228,7 +229,7 @@
The following actions will be performed:
diff --git a/resources/views/livewire/server/proxy.blade.php b/resources/views/livewire/server/proxy.blade.php index db2fd2827..9100fc2a0 100644 --- a/resources/views/livewire/server/proxy.blade.php +++ b/resources/views/livewire/server/proxy.blade.php @@ -4,24 +4,22 @@
@if ($selectedProxy !== 'NONE')
-
-

Configuration

- @if ($server->proxy->status === 'exited' || $server->proxy->status === 'removing') - Switch - Proxy - @else - Switch Proxy - @endif - Save -
-
- - Before switching proxies, please read this. -
+
+

Configuration

+ @if ($server->proxy->status === 'exited' || $server->proxy->status === 'removing') + @can('update', $server) + + + @endcan + @else + Switch Proxy + @endif + Save +

Advanced

Date: Mon, 22 Sep 2025 00:05:26 +0530 Subject: [PATCH 2/5] Added description text on Proxy configuration title --- resources/views/livewire/server/proxy.blade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/views/livewire/server/proxy.blade.php b/resources/views/livewire/server/proxy.blade.php index 9100fc2a0..e61acbec4 100644 --- a/resources/views/livewire/server/proxy.blade.php +++ b/resources/views/livewire/server/proxy.blade.php @@ -20,7 +20,8 @@ @endif Save
-

Advanced

+
Configure your proxy settings and advanced options.
+

Advanced

Date: Mon, 22 Sep 2025 00:09:49 +0530 Subject: [PATCH 3/5] Added (Coolify Proxy) to the proxy name on Configuration page New users can easily understand Traefik or Caddy is being used as the Coolify proxy --- resources/views/livewire/server/proxy.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/livewire/server/proxy.blade.php b/resources/views/livewire/server/proxy.blade.php index e61acbec4..652322d32 100644 --- a/resources/views/livewire/server/proxy.blade.php +++ b/resources/views/livewire/server/proxy.blade.php @@ -36,9 +36,9 @@ @endif
@if ($server->proxyType() === ProxyTypes::TRAEFIK->value) -

Traefik

+

Traefik (Coolify Proxy)

@elseif ($server->proxyType() === 'CADDY') -

Caddy

+

Caddy (Coolify Proxy)

@endif @if ( $server->proxy->last_applied_settings && From 24fdac624d57ba7c8d1cab2d8e40e3855a60040b Mon Sep 17 00:00:00 2001 From: ShadowArcanist Date: Mon, 22 Sep 2025 00:15:02 +0530 Subject: [PATCH 4/5] Improved spacing between titles on proxy configuration page --- resources/views/livewire/server/proxy.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/livewire/server/proxy.blade.php b/resources/views/livewire/server/proxy.blade.php index 652322d32..4c330725d 100644 --- a/resources/views/livewire/server/proxy.blade.php +++ b/resources/views/livewire/server/proxy.blade.php @@ -22,7 +22,7 @@
Configure your proxy settings and advanced options.

Advanced

-
+
@if ($proxySettings) -
+
Date: Mon, 22 Sep 2025 00:26:08 +0530 Subject: [PATCH 5/5] Moved Proxy config reset button from bottom of the editor to next to the proxy name --- .../views/livewire/server/proxy.blade.php | 58 ++++++++++--------- 1 file changed, 32 insertions(+), 26 deletions(-) diff --git a/resources/views/livewire/server/proxy.blade.php b/resources/views/livewire/server/proxy.blade.php index 4c330725d..aa6b9b7cd 100644 --- a/resources/views/livewire/server/proxy.blade.php +++ b/resources/views/livewire/server/proxy.blade.php @@ -8,7 +8,8 @@

Configuration

@if ($server->proxy->status === 'exited' || $server->proxy->status === 'removing') @can('update', $server) - @@ -35,11 +36,30 @@ id="redirectUrl" label="Redirect to (optional)" /> @endif
- @if ($server->proxyType() === ProxyTypes::TRAEFIK->value) -

Traefik (Coolify Proxy)

- @elseif ($server->proxyType() === 'CADDY') -

Caddy (Coolify Proxy)

- @endif + @php + $proxyTitle = $server->proxyType() === ProxyTypes::TRAEFIK->value ? 'Traefik (Coolify Proxy)' : 'Caddy (Coolify Proxy)'; + @endphp + @if ($server->proxyType() === ProxyTypes::TRAEFIK->value || $server->proxyType() === 'CADDY') +
+

{{ $proxyTitle }}

+ @if($proxySettings) + @can('update', $server) + + + @endcan + @endif +
+ @endif @if ( $server->proxy->last_applied_settings && $server->proxy->last_saved_settings !== $server->proxy->last_applied_settings) @@ -52,26 +72,12 @@
@if ($proxySettings) -
- - @can('update', $server) - - - @endcan -
+
+ +
@endif