2 months ago
Hello,
On a Pro plan, how many custom domains can I add? I heard somewhere that it is 20. But, if I want more, how can I request for it and are there any additional charges for it?
3 Replies
2 months ago
Hello,
Correct, it is 20 for the pro plan.
May I ask what your use case is?
Status changed to Awaiting User Response Railway • 2 months ago
2 months ago
I have a LMS like website which customers (coaches) may want to have their domain for it. I have a similar setup for a LMS I am using. My custom domain for them is hmba.zelner.com. And when they got me to add academy CNAME as a DNS record on my own website (harishmarnad.com), I was able to direct academy.harishmarnad.com to their subdomain.
Similarly, I let coaches create subdomains on my plaform (hmba.dev.supercoachai.app) but when I tried to add a cname (devgo) in my personal website (harishmarnad.com) to point to this subdomain, railway is saying academy.harishmarnad.com should point to it directly and not via cname like I have in zenler LMS.
Given this, either I need to make it work like zenler with your help or I may need to be able to add custom domains to railway as and when I get a request from a coaching customer. Hence wanted to know the limit and how far I can take it and the process for it.
Please let me know the best way to proceed and the process for it.
Status changed to Awaiting Railway Response Railway • 2 months ago
2 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • 2 months ago
Status changed to Awaiting Conductor Response brody • 2 months ago
2 months ago
If I understand the flow correctly:
On your service, clients can generate a subdomain
You want those clients to be able to bind a custom domain to that subdomain (via CNAME)
Do you think a reverse proxy might work for your use-case? It could work in two ways:
Manually
You can manually create reverse proxy services for clients and provide them the CNAME of the reverse proxy, where the reverse proxy would proxy their custom domain to your domain
Automatically
You can build a reverse proxy that communicates with your service to find custom domains; if a request comes in, it checks with the registered custom domains and proxies it appropriately.
When a client registers a custom domain:
automatically find a free reverse proxy service (<20 domains registered) via the Railway API (
projectsquery ->domainsquery)then register the custom domain there (
customDomainCreatemutation)and then present its CNAME record to the client to register in their DNS (
customDomainCreatemutation ->status.dnsRecords)
If no reverse proxy service has free spots available then:
create one (with the Railway API via
serviceCreatemutation)and provide that service's CNAME record to the client instead (
customDomainCreatemutation ->status.dnsRecords)
Side Note: Remember to manage CORS in this process too
Status changed to Awaiting User Response Railway • 2 months ago
2 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 2 months ago