Add support for regex host and priority for domain
What problem will this feature address?
I am trying to deploy Zrok which create custom host on the fly like ******.share.example.com using docker compose.
Describe the solution you'd like
Add the possibility for specifying if the host must be regexed and the priority when creating the domain. For example in my case: zrok.share.example.com -> zrok-controller:18080 with priority 1 *.share.example.com -> zrok-frontend:80 with priority 100
Describe alternatives you've considered
I have tried to update the traefik directory without success
Additional context
No response
Will you send a PR to implement it?
Yes
Your prio should be the other way around Higher number = higher priority So you would want a named sub domain matched before the wildcard
Regexp rule would be
^.+\.share\.example\.com$
Don't forget to use dns challenge for let's encrypt or add wildcard cert manually as http challenge does not work for wildcards.
I have added priority.
In the case where priority > 0 the correct traefik label is added.
Could you take a look at https://github.com/traxyax/dokploy/tree/host-regex