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
Fix Mux as env variable.
Joao Patricio982f5beaf5e6
diff --git a/app/Actions/Proxy/InstallProxy.php b/app/Actions/Proxy/InstallProxy.phpindex fb908b3d46..84429c7cf9 100644--- a/app/Actions/Proxy/InstallProxy.php+++ b/app/Actions/Proxy/InstallProxy.php@@ -19,6 +19,7 @@ class InstallProxy);$activity = remoteProcess([+ "docker network ls --format '{{.Name}}' | grep '^coolify$' || docker network create coolify",'mkdir -p projects','mkdir -p projects/proxy','mkdir -p projects/proxy/letsencrypt',diff --git a/bootstrap/helpers.php b/bootstrap/helpers.phpindex d913fb94fa..2fc9b77b8a 100644--- a/bootstrap/helpers.php+++ b/bootstrap/helpers.php@@ -87,7 +87,7 @@ if (!function_exists('generateSshCommand')) {$delimiter = 'EOF-COOLIFY-SSH';Storage::disk('local')->makeDirectory('.ssh');$ssh_command = "ssh ";- if ($isMux) {+ if ($isMux && config('coolify.mux_enabled')) {$ssh_command .= '-o ControlMaster=auto -o ControlPersist=1m -o ControlPath=/var/www/html/storage/app/.ssh/ssh_mux_%h_%p_%r ';}$ssh_command .= "-i {$private_key_location} "diff --git a/config/coolify.php b/config/coolify.phpindex 5438c7dab2..95960c6480 100644--- a/config/coolify.php+++ b/config/coolify.php@@ -2,4 +2,6 @@return ['version' => '4.0.0-nightly.2',++ 'mux_enabled' => env('MUX_ENABLED', true),];diff --git a/vite.config.js b/vite.config.jsindex ede21f48cc..d999b843ce 100644--- a/vite.config.js+++ b/vite.config.js@@ -6,9 +6,9 @@ export default defineConfig({host: "0.0.0.0",hmr: process.env.GITPOD_WORKSPACE_URL? {- // Due to port fowarding, we have to replace+ // Due to port forwarding, we have to replace// 'https' with the forwarded port, as this- // is the URI created by Gitpod.+ // is the URI created by GitPod.host: process.env.GITPOD_WORKSPACE_URL.replace("https://","5173-"