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
fixes
Andras Bacsai3575972c43b2
diff --git a/app/Actions/Proxy/CheckProxySettingsInSync.php b/app/Actions/Proxy/CheckProxySettingsInSync.phpindex 0ffbff74b3..e4d565bc1e 100644--- a/app/Actions/Proxy/CheckProxySettingsInSync.php+++ b/app/Actions/Proxy/CheckProxySettingsInSync.php@@ -8,13 +8,13 @@ use Illuminate\Support\Str;class CheckProxySettingsInSync{- public function __invoke(Server $server)+ public function __invoke(Server $server, bool $reset = false){$proxy_path = config('coolify.proxy_config_path');$output = instantRemoteProcess(["cat $proxy_path/docker-compose.yml",], $server, false);- if (is_null($output)) {+ if (is_null($output) || $reset) {$final_output = Str::of(getProxyConfiguration($server))->trim()->value;} else {$final_output = Str::of($output)->trim()->value;diff --git a/app/Http/Livewire/Server/Proxy.php b/app/Http/Livewire/Server/Proxy.phpindex 94b331495b..22d4e84967 100644--- a/app/Http/Livewire/Server/Proxy.php+++ b/app/Http/Livewire/Server/Proxy.php@@ -65,7 +65,7 @@ class Proxy extends Componentpublic function checkProxySettingsInSync(){try {- $this->proxy_settings = resolve(CheckProxySettingsInSync::class)($this->server);+ $this->proxy_settings = resolve(CheckProxySettingsInSync::class)($this->server, true);} catch (\Exception $e) {return generalErrorHandler($e);}diff --git a/app/Jobs/DeployApplicationJob.php b/app/Jobs/DeployApplicationJob.phpindex 31159d2dfb..71c965fac3 100644--- a/app/Jobs/DeployApplicationJob.php+++ b/app/Jobs/DeployApplicationJob.php@@ -17,6 +17,7 @@ use Illuminate\Support\Facades\Storage;use Spatie\Activitylog\Models\Activity;use Symfony\Component\Yaml\Yaml;use Illuminate\Support\Str;+use Spatie\Url\Url;class DeployApplicationJob implements ShouldQueue{@@ -376,8 +377,10 @@ COPY --from={$this->application->uuid}:{$this->git_commit}-build /app/{$this->ap$labels[] = 'coolify.type=application';$labels[] = 'coolify.name=' . $this->application->name;if ($this->application->fqdn) {+ $url = Url::fromString($this->application->fqdn);+ $host = $url->getHost();$labels[] = 'traefik.enable=true';- $labels[] = "traefik.http.routers.container.rule=Host(`{$this->application->fqdn}`)";+ $labels[] = "traefik.http.routers.container.rule=Host(`{$host}`)";}return $labels;}diff --git a/resources/views/livewire/server/proxy.blade.php b/resources/views/livewire/server/proxy.blade.phpindex 3487b57e45..2ce8d85b81 100644--- a/resources/views/livewire/server/proxy.blade.php+++ b/resources/views/livewire/server/proxy.blade.php@@ -41,6 +41,9 @@wire:click.prevent="installProxy">Apply</x-inputs.button>+ <x-inputs.button isBold wire:click.prevent="checkProxySettingsInSync">+ Default+ </x-inputs.button><textarea wire:model.defer="proxy_settings" class="w-full" rows="30"></textarea></form>@endisset