R
Railway5mo ago
lunix

API To add custom domains

I'm working on a project and this project has a feature where user can use their custom domain, I'm wondering if there's an API for that
9 Replies
Percy
Percy5mo ago
Project ID: 860385b6-ff1f-418e-8a19-4d09dffe609a
lunix
lunix5mo ago
860385b6-ff1f-418e-8a19-4d09dffe609a also idk what its called i think Domain forwarding or domain redirecting, so basically : my project creates feedback boards, like this -> https://lunarfeed.up.railway.app/b/lunar i want to have it so the user can use their own domain, so for example -> https://test.com/feedback I'm not sure if that's domain forwarding or what but is there an API to do something like that in railway?
Brody
Brody5mo ago
you could use the railway api to add a domain to your service and then provide the users with the cname value that railway gave you. things to note with this method, the hobby plan has a custom domains limit of 2 (per service), and the pro has a custom domain limit of 10 (per service) once on pro you may contact the team for an increased limit at likely an additional cost. another idea I have but haven't tested it, you could use cloudflare tunnel, and cloudflare's cert manager, that would bypass all domains and public networking on railway allowing you to setup your domains in cloudflare
lunix
lunix4mo ago
could you explain how i would use the cloudflare’s cert manager?
Brody
Brody4mo ago
ive never done it myself, but im sure they have docs for that
lunix
lunix4mo ago
what should i search for? is there a name for it? also what would that be called anyways, domain forwarding or what? sorry i’m quite new to this
Brody
Brody4mo ago
im sorry but im in no position to guide anybody on that, it was just an idea and ive never done anything like it myself
lunix
lunix4mo ago
you're good, thank you and thanks for your time
Brody
Brody4mo ago
happy to help where I can
Want results from more Discord servers?
Add your server
More Posts