#White label domain?

7 messages · Page 1 of 1 (latest)

lean whale
#

Is it possible to allow "white label" domains on Railway? For example if my main domain is app.domain.com can I let my users use their own domains like app.theirdomain.com to point to my app.domain.com? Is it just a CNAME pointing at app.domain.com or is there anything needed to do in Railway?

Project ID: 312b74d3-7061-448f-a297-539dd2bfbb7e

green sunBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

opaque valleyBOT
#

Project ID: 312b74d3-7061-448f-a297-539dd2bfbb7e

icy torrent
#

they would need to do host masking, sure someone could set your domain as a cname on their domain, but once they make a request from their domain, railway sees their domain instead of yours and you'd end up with a 404 because their domain isn't in railways system since railway uses the host to route to the correct app

#

this also means they would need to generate their own ssl certs for their domain since in this scenario their domain isn't in railway so railway isn't generating an ssl cert for them

#

I have done this before, I used fastly, they can do both host masking and a free ssl cert for the domain, then I was able to use a domain to access the railway app that I had never put into the railway domains

lean whale
#

Ah ok, thanks!

I saw that you can add multiple domains to a project. Can I perhaps add the customers domains to the project using the Railway API? Is there a limit of the amount of domains that can be added? I do it like this on Vercel.