Skip to content

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.

fix

Andras Bacsaie635dc431630
diff --git a/app/Http/Livewire/Server/Proxy.php b/app/Http/Livewire/Server/Proxy.php
index 22d4e84967..f248325c7f 100644
--- a/app/Http/Livewire/Server/Proxy.php
+++ b/app/Http/Livewire/Server/Proxy.php
@@ -62,7 +62,7 @@ class Proxy extends Component
return generalErrorHandler($e);
}
}
- public function checkProxySettingsInSync()
+ public function resetProxy()
{
try {
$this->proxy_settings = resolve(CheckProxySettingsInSync::class)($this->server, true);
@@ -70,4 +70,12 @@ class Proxy extends Component
return generalErrorHandler($e);
}
}
+ public function checkProxySettingsInSync()
+ {
+ try {
+ $this->proxy_settings = resolve(CheckProxySettingsInSync::class)($this->server);
+ } catch (\Exception $e) {
+ return generalErrorHandler($e);
+ }
+ }
}
diff --git a/resources/views/livewire/server/proxy.blade.php b/resources/views/livewire/server/proxy.blade.php
index 2ce8d85b81..537e23ba18 100644
--- a/resources/views/livewire/server/proxy.blade.php
+++ b/resources/views/livewire/server/proxy.blade.php
@@ -23,7 +23,8 @@
@endif
<x-inputs.button isBold wire:click="stopProxy">Stop</x-inputs.button>
<span x-data="{ showConfiguration: false }">
- <x-inputs.button isBold x-on:click="showConfiguration = !showConfiguration">Show Configuration
+ <x-inputs.button isBold x-on:click.prevent="showConfiguration = !showConfiguration">Show
+ Configuration
</x-inputs.button>
<div class="pt-4">
<livewire:activity-monitor />
@@ -41,7 +42,7 @@
wire:click.prevent="installProxy">
Apply
</x-inputs.button>
- <x-inputs.button isBold wire:click.prevent="checkProxySettingsInSync">
+ <x-inputs.button isBold wire:click.prevent="resetProxy">
Default
</x-inputs.button>
<textarea wire:model.defer="proxy_settings" class="w-full" rows="30"></textarea>