#How can I connect my personal domain to the site?

34 messages · Page 1 of 1 (latest)

neat skiff
#

I bought the domain netrix.fun from this site https://www.ukraine.com.ua/ 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

inner surgeBOT
#

Project ID: 49c5f0bc-621a-4388-8576-9a3edb59e080

steel bridge
neat skiff
steel bridge
#

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

neat skiff
steel bridge
#

read cloudflare's guide

neat skiff
# steel bridge read cloudflare's guide

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?

steel bridge
#

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

steel bridge
#

if that's the CNAME railway gave you, yep

neat skiff
#

Yes, that's the data Railway gave me.

#

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

steel bridge
#

you are using a cloudflare proxy so that status is correct

#

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

neat skiff
#

done

steel bridge
#

does it work?

neat skiff
#

thanks you

steel bridge
#

no problem!

neat skiff
#

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

steel bridge
#

the same way you added the root domain

neat skiff
steel bridge
#

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
neat skiff
#

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

steel bridge
#

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

neat skiff
steel bridge
#

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

neat skiff
#

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?

steel bridge
#

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

neat skiff