Wildcard domain on cloudflare on worker and pages

I have a node js application app.butterflye.com where user can create workspaces and under this workspaces they can create channels and post the updates on it.
now what i have to do is, While creating the workspace user can provide a domain now this domain will be linked to there channels and act as a subdomain for the channles below is an example :
User 1
Workspace : User 1 Workspace Domain Name: abc Channles channle-a link : abc.app.butterflye.com/channle-a
channel-b
link : abc.butterflye.com/channle-b User 2
Workspace : User 2 Workspace
Domain Name: xyz
Channles channle-neo
link : xyz.butterflye.com/channle-neo channel-john
link : xyz.butterflye.com/channle-john
domain name could be anything the user will provide. I have configured butterflye.com on godaddy. How can we configure it with the dynamic sub-domain the user will provide.
1 Reply
Chaika
Chaika3mo ago
How does this relate to Cloudflare at all if you're not using CF DNS, and using a nodejs app? The answer is a wildcard cert (*.butterfly.com) and wildcard dns records and then handling the different hostnames in your app
Want results from more Discord servers?
Add your server