mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
pathprefix
This commit is contained in:
parent
6c71d168c4
commit
5f104c58f2
1 changed files with 1 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue