Skip to content

[Bug]: Coolify incorrectly applies stripprefix middleware to appwrite-console causing redirect loops #6545

@ChiragAgg5k

Description

@ChiragAgg5k

Error Message and Logs

When deploying Appwrite using Coolify, the automatically generated Traefik configuration for the appwrite-console service includes a stripprefix middleware that causes infinite redirect loops and "too many redirects" errors.

Coolify automatically generates the following Traefik labels for appwrite-console:

labels:
  - traefik.http.middlewares.{instance}-appwrite-console-stripprefix.stripprefix.prefixes=/console
  - traefik.http.routers.{instance}-appwrite-console.middlewares={instance}-appwrite-console-stripprefix,gzip
  - traefik.http.routers.{instance}-appwrite-console.rule=Host(`{domain}`) && PathPrefix(`/console`)

Currently, users have to manually edit the console container settings to remove the stripprefix option. But there needs to be a way to disable this by default.

Steps to Reproduce

  1. Deploy Appwrite using Coolify
  2. Access the console at https://your-domain.com/console
  3. Browser shows "too many redirects" error
  4. Check network tab - infinite 302 redirects between root and /console

Example Repository URL

No response

Coolify Version

v4.0.0-beta.426

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

No response

Additional Information

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions