Wildcard DNS? That means like *.domain.com will not accept connections on all subdomain now my NodeJS app can accordingly handle that if A.domain.com is valid then process the request else drop, Is that so?
The pattern I need is visco-*.domain.com, Where * is user’s ID
Sure, See there is a site https://dnsdumpster.com/ which can simply reveal the DNS arch of a domain. Now there are several users to my site and for each of them I want to create a subdomain like: user-workspace-123.domain.com, user-workspace-234.domain.com like wise,
Now it won’t be possible to map each subdomain with a DNS, Right? So how do I make this thing dynamic. I can tell nginx to listen on user-workspace-*.domain.com, But how Cloudflare?
The best I can think of as an answer or solution is the handling of routes within the framework used, however I suggest this:
Configure Cloudflare dns with a wildcard record: *.yourdomain.tld
so that subdomains can get https along with its corresponding certificate
-Configure _redirects to handle routes more information at: https://developers.cloudflare.com/pages/platform/redirects/
in the case that you use Cloudflare Page although I don’t know how to achieve it; You could also make use of the redirection rules but they are limited in the free plan
or as suggested before with the handling of the api either through the cli or with curl