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
Add proxy start functionality when selecting a proxy type
Andras Bacsaicee6b540334a
diff --git a/app/Actions/Proxy/StartProxy.php b/app/Actions/Proxy/StartProxy.phpindex 99206606dd..e106c18011 100644--- a/app/Actions/Proxy/StartProxy.php+++ b/app/Actions/Proxy/StartProxy.php@@ -15,6 +15,9 @@ class StartProxy{try {$proxyType = $server->proxyType();+ if ($proxyType === 'NONE') {+ return 'OK';+ }$commands = collect([]);$proxy_path = get_proxy_path();$configuration = CheckConfiguration::run($server);diff --git a/app/Livewire/Server/Proxy.php b/app/Livewire/Server/Proxy.phpindex 98dd758611..1e23605ff2 100644--- a/app/Livewire/Server/Proxy.php+++ b/app/Livewire/Server/Proxy.php@@ -4,6 +4,7 @@ namespace App\Livewire\Server;use App\Actions\Proxy\CheckConfiguration;use App\Actions\Proxy\SaveConfiguration;+use App\Actions\Proxy\StartProxy;use App\Models\Server;use Livewire\Component;use Illuminate\Support\Str;@@ -41,6 +42,9 @@ class Proxy extends Component$this->server->proxy->set('type', $proxy_type);$this->server->save();$this->selectedProxy = $this->server->proxy->type;+ if ($this->selectedProxy !== 'NONE') {+ StartProxy::run($this->server, false);+ }$this->dispatch('proxyStatusUpdated');}