Can I use wildcard public domains as a cname target?
t-c-k
PROOP

a year ago

I have a multi tenant nodejs service with a wildcard domain set up and using cloudflare (eg *.site.mydomain.com). Users access their area by using their unique subdomain (eg tenant1.site.mydomain.com).

I would like the ability for tenants to use their own domain. (Eg they could add a CNAME www.tenant1.com -> tenants1.site.mydomain.com) (or a non-wildcard domain like sites.mydomain.com).

Is this possible or do I have to add a custom domain in railway for each custom tenant domain? I

2 Replies

t-c-k
PROOP

a year ago

88d5f437-9098-4e18-9e7a-25810f85b433


brody
EMPLOYEE

a year ago

you can do this, but you have to manage the domain in cloudflare and use snippits to overwrite the host header since we only do host based routing


Loading...