WildCard SubDomain
Hey Everyone! Can someone please guide me how to add wildcard domain in the application domain section, i want to have 100s of sub domain for my app, but manually adding each of them in Domain or Traefik yml is not efficient. So Can someone please tell me how to add wildcard Domain so that i dont have to handle each sub domain.
12 Replies
I think this is depended on the provider. Some allow you to have A record
*.yourdomain.com
point to 12.34.56.78
(your Dokploy' IP) and with this you can set anything inside dokploy and it just works. I do this way on ClouDNS and it works with 2 of my servers.
When I work with my friend, some of their providers do NOT allow to add *
so this is not Dokploy limitation or setup.i am using Cloudflare and have added * wildcard A record. Issue is when adding wildcard * in domain config of application, the Dokploy/traefik don't let the request go through to app, it only let it through when i added the name of subdomain in Domain config section, for e.g: ny.abc.com . It does not work with *.abc.com
As i have large number of subdomain requirement i want some kind of Wildcard ability.
i have same issue, the subdomain cannot be access until we manually added the records to cloudflare
when I still used EasyPanel (similar to Dokploy), I saw they have some extra steps for Cloudflare, this is why I break up with any friend who use that service and punch the client if I had a chance to meet them in person
just kiddin but that what I would like to do if that didn't cause me jailed
i just solved with restart the traefik instance on each domain added to update the dns list
Im having the same issue
I have the same issue!
@Siumauricio sorry, but can you please help me?
Use hostregex to match a domain based on regular expression https://doc.traefik.io/traefik/reference/routing-configuration/http/router/rules-and-priority/#host-and-hostregexp
Traefik HTTP Routers Rules & Priority Documentation - Traefik
In Traefik Proxy, an HTTP router is in charge of connecting incoming requests to the Services that can handle them. Read the technical documentation.
you can modify the traefik config by yourself
thanks
it's working now