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: generated fqdn for SERVICE_FQDN_APP_3000 magic envs
Andras Bacsaid0518153fb05
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex abfde71353..cd27794661 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -2985,7 +2985,11 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int// Get magic environments where we need to preset the FQDNif ($key->startsWith('SERVICE_FQDN_')) {// SERVICE_FQDN_APP or SERVICE_FQDN_APP_3000- $fqdnFor = $key->after('SERVICE_FQDN_')->lower()->value();+ if (substr_count(str($key)->value(), '_') === 3) {+ $fqdnFor = $key->after('SERVICE_FQDN_')->beforeLast('_')->lower()->value();+ } else {+ $fqdnFor = $key->after('SERVICE_FQDN_')->lower()->value();+ }if ($isApplication) {$fqdn = generateFqdn($server, "{$resource->name}-$uuid");} elseif ($isService) {