How can I connect my personal domain to the site?

2 years ago

I bought the domain netrix.fun from this site and wanted to use it for my site, but there were some difficulties. I do not quite understand what and where to insert, I first time connecting the domain to the site, so I apologize in advance if I ask something stupid

34 Replies

2 years ago

49c5f0bc-621a-4388-8576-9a3edb59e080


2 years ago

that register does not support root level cnames, you will need to use cloudflare's nameservers.
cloudflare has a guide for that here -


2 years ago

Do you know of any other site where you can buy a domain to use Railway data there?


2 years ago

you dont need to buy a new domain, im not sure how you got that out of what i said, you simply need to use cloudflare's nameservers


2 years ago

Got it, I'll try to figure it out. Thank you


2 years ago

read cloudflare's guide


2 years ago

I did everything according to the guide you gave, updating servernames for my domain on the registrar's site. Now I need to connect the data from railway to cloudflare?

1252350159329824800


2 years ago

I'm not sure where you got those IP addresses from but railway does not use IPs for anything, remove them and replace them with the CNAME you got from Railway


2 years ago

so?

1252350924643504000


2 years ago

if that's the CNAME railway gave you, yep


2 years ago

Yes, that's the data Railway gave me.


2 years ago

1252351643303809300


2 years ago

Should it be something like this? Or will the status also change, for example to "Active"?


2 years ago

you are using a cloudflare proxy so that status is correct


2 years ago

within cloudflare go and set your SSL/TLS settings to "Full"


2 years ago

done


2 years ago

does it work?


2 years ago

yea

1252352385104478200


2 years ago

thanks you


2 years ago

no problem!


2 years ago

I have another small question, how can I add subdomains?


2 years ago

the same way you added the root domain


2 years ago

Something like that?

1252352844380766200


2 years ago

not quite

  • Name refers to just the subdomain (or @ for the root)

  • that's the same target as you've used previously, you need to add another domain to your service to get another CNAME

  • you'll likely want to have the API subdomain on a different railway service


2 years ago

Got it, I need that last point


2 years ago

This requires bringing up another service or can be done like this:

1252353891530707200


2 years ago

yes, add another service to the project and deploy your backend, it would make no sense to have an api subdomain on the service that serves your frontend


2 years ago

Yes, I understand that it needs to be connected to a servlet that provides the backend, but this is a test site, so I'd like to learn as much as possible


2 years ago

test or not it would make no sense to have an api subdomain on the service that serves the frontend


2 years ago

Just if the backend is on a different domain, but I want to have a subdomain, do I have to specify it in the Networking section or do I need a new service for each subdomain?


2 years ago

the backend does not need to be on a different domain, use a subdomain on another service


2 years ago

you do not need a new service for each subdomain, but like I said it makes no sense to have the api subdomain on the service that serves your frontend, create another service for the backend and add the api subdomain to that service


2 years ago

Yeah, that's what I meant. Thank you for explaining it so thoroughly


2 years ago

<:1010:1173874936306221126>


Loading...