From 5f104c58f2218d9e110970dfec5f84f2c618951e Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 17 May 2023 13:21:51 +0200 Subject: [PATCH] pathprefix --- app/Jobs/DeployApplicationJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/DeployApplicationJob.php b/app/Jobs/DeployApplicationJob.php index fee1920be..f5a257095 100644 --- a/app/Jobs/DeployApplicationJob.php +++ b/app/Jobs/DeployApplicationJob.php @@ -397,7 +397,7 @@ COPY --from={$this->application->uuid}:{$this->git_commit}-build /app/{$this->ap $slug = Str::slug($url); $label_id = "{$this->application->uuid}-{$slug}"; if ($path === '/') { - $labels[] = "traefik.http.routers.{$label_id}.rule=Host(`{$host}`) && Path(`{$path}`)"; + $labels[] = "traefik.http.routers.{$label_id}.rule=Host(`{$host}`) && PathPrefix(`{$path}`)"; } else { $labels[] = "traefik.http.routers.{$label_id}.rule=Host(`{$host}`) && PathPrefix(`{$path}`)"; $labels[] = "traefik.http.routers.{$label_id}.middlewares={$label_id}-stripprefix";