Skip to content

[Bug]: Domain/URL parses happens before trim #6478

@QarthO

Description

@QarthO

Error Message and Logs

When setting a domain for a service, the trim happens after URL validation. This is most noticeable when using multiple domains.

For example if i wanted to have mydomain.com and myotherdomain.com point to my app, then:

https://mydomain.com,https://myotherdomain.com will work while https://mydomain.com, https://myotherdomain.com will fail, (by fail, only the 2nd url will not work, the 1st url will still work/point to the app)

Steps to Reproduce

  1. create new service
  2. define domain as https://mydomain.com, https://myotherdomain.com
  3. the 2nd domain will not go to the service since url validation sees " https" and not "https"

Example Repository URL

No response

Coolify Version

v4.0.0-beta.424

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 24.04 LTS

Additional Information

No response

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