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 dynamic proxy configuration setup in StartProxy.php and update proxyPath() in Server.php
Andras Bacsai52120e7a380b
diff --git a/app/Actions/Proxy/StartProxy.php b/app/Actions/Proxy/StartProxy.phpindex a781ab4427..7051975860 100644--- a/app/Actions/Proxy/StartProxy.php+++ b/app/Actions/Proxy/StartProxy.php@@ -66,6 +66,8 @@ class StartProxy} catch (\Throwable $e) {ray($e);throw $e;+ } finally {+ $server->setupDynamicProxyConfiguration();}}}diff --git a/app/Models/Server.php b/app/Models/Server.phpindex 3cf20d7ae6..b110189bb3 100644--- a/app/Models/Server.php+++ b/app/Models/Server.php@@ -279,6 +279,9 @@ $schema://$host {$base_path = config('coolify.base_config_path');$proxyType = $this->proxyType();$proxy_path = "$base_path/proxy";+ // TODO: should use /traefik for already exisiting configurations?+ // Should move everything except /caddy and /nginx to /traefik+ // The code needs to be modified as well, so maybe it does not worth itif ($proxyType === ProxyTypes::TRAEFIK_V2->value) {$proxy_path = $proxy_path;} else if ($proxyType === ProxyTypes::CADDY->value) {