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
Andras Bacsaiabdaeb10c565
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.phpindex c43dc6adce..58bfb635b7 100644--- a/app/Jobs/ApplicationDeploymentJob.php+++ b/app/Jobs/ApplicationDeploymentJob.php@@ -400,8 +400,8 @@ COPY --from={$this->application->uuid}:{$this->git_commit}-build /app/{$this->ap$http_label = "{$this->application->uuid}-{$slug}-http";$https_label = "{$this->application->uuid}-{$slug}-https";- // Set labels for httpsif ($schema === 'https') {+ // Set labels for https$labels[] = "traefik.http.routers.{$https_label}.rule=Host(`{$host}`) && PathPrefix(`{$path}`)";$labels[] = "traefik.http.routers.{$https_label}.middlewares=gzip";if ($path !== '/') {@@ -411,6 +411,9 @@ COPY --from={$this->application->uuid}:{$this->git_commit}-build /app/{$this->ap$labels[] = "traefik.http.routers.{$https_label}.tls=true";$labels[] = "traefik.http.routers.{$https_label}.tls.certresolver=letsencrypt";++ // Set labels for http (redirect to https)+ $labels[] = "traefik.http.routers.{$http_label}.rule=Host(`{$host}`) && PathPrefix(`{$path}`)";if ($this->application->settings->is_force_https) {$labels[] = "traefik.http.routers.{$http_label}.middlewares=redirect-to-https";}