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
refactor(server): simplify proxy path logic and remove unnecessary conditions
Andras Bacsai5b9df7fd4530
diff --git a/app/Models/Server.php b/app/Models/Server.phpindex caf65cc58b..89f6ad2185 100644--- a/app/Models/Server.php+++ b/app/Models/Server.php@@ -486,19 +486,13 @@ $schema://$host {$base_path = config('constants.coolify.base_config_path');$proxyType = $this->proxyType();$proxy_path = "$base_path/proxy";- // TODO: should use /traefik for already existing configurations?- // Should move everything except /caddy and /nginx to /traefik- // The code needs to be modified as well, so maybe it does not worth it+if ($proxyType === ProxyTypes::TRAEFIK->value) {- // Do nothing+ $proxy_path = '/';} elseif ($proxyType === ProxyTypes::CADDY->value) {$proxy_path = $proxy_path.'/caddy';} elseif ($proxyType === ProxyTypes::NGINX->value) {- if (isDev()) {- $proxy_path = '/var/lib/docker/volumes/coolify_dev_coolify_data/_data/proxy/nginx';- } else {- $proxy_path = $proxy_path.'/nginx';- }+ $proxy_path = $proxy_path.'/nginx';}return $proxy_path;