Open geovanygameros opened 15 hours ago
@geovanygameros that syntax for regexp is for version 2 of traefik
for v3, you can replace with either:
HostRegexp(`.+`)
or
HostRegexp(`^.+\.domain\.com$`)
Hey @djsisson, thanks for the answer. I updated my app's container labels with:
HostRegexp(`.+`)
also with:
HostRegexp(`^.+\.mydomain\.com$`)
And restarted the app and proxy, but I still have the same issue.
Also, I'm doing all these updates on the Coolify UI. I don't know if this has any influence
@geovanygameros can you paste your proxy logs:
docxker logs coolify-proxy
Error Message and Logs
I've been following this documentation to set up a wildcard domain for one application with no success.
What I want to achieve is the following setup for a SaaS application:
I have several projects with a defined domain and they are working fine. However, I want all the rest subdomains to be sent to App 3
Steps to Reproduce
I set up a wildcard A DNS record in Cloudflare pointing to my server's IP address (
*.mydomain.com
)Based on your documentation, I ended up with a proxy file like this:
Then in my application's container labels, I'm following the "SaaS" instructions. So I have something like this:
Then after restarting the proxy and my app, I get the following error when I go to any subdomain. E.g.
customer1.mydomain.com
(for the subdomains that are explicitly defined like "App 1" "App 2", they work fine)Am I missing something?
Example Repository URL
No response
Coolify Version
v4.0.0-beta.370
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Ubuntu 24.04.1 LTS
Additional Information
I saw these similar discussions but none of them have a clear answer: