coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
31.88k stars 1.64k forks source link

[Bug]: Two ghost installations clash and crashes Traefik #3224

Open AlejandroAkbal opened 4 weeks ago

AlejandroAkbal commented 4 weeks ago

Description

Hi, some months ago I was able to put Ghost on a subdirectory of another website in Coolify

Let's say I have

I could have B inside A on a subdirectory like example/blog

But now it seems like requests are not redirected to website B, it shows 404 of website A

Minimal Reproduction (if possible, example repository)

  1. Create a website of any kind
  2. Create a ghost website
  3. Set the URL to something like https://example.com:2368/blog
  4. It does not work :(

Exception or Error

No response

Version

v4.0.0-beta.323

Cloud?

AlejandroAkbal commented 3 weeks ago

Basically this commit allowed ghost on subdirectory @andrasbacsai https://github.com/coollabsio/coolify/commit/543f983e41f594483d54fb2f769234ebf1e2863d

AlejandroAkbal commented 3 weeks ago

Okay, the issue is having multiple ghost services, the traefik.http.middlewares.redir-ghost middleware is clashing with other projects, because it's duplicated

Please fix it @andrasbacsai by making them unique based on the project name

Opswatch commented 2 weeks ago

Running into the same issue as well