White label domain?
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
4 Replies
Project ID:
312b74d3-7061-448f-a297-539dd2bfbb7e
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
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.
yes you can, there is no current limit to speak of, however its not an officially supported use-case so there is a non-zero chance that in the future they could impose a limit for the amount of domains you can add, so if you plan on adding a lot of domains, i would not rely on that