Railway - Godaddy - Cloudflare

Hi everybody! I'm planning to migrate my site today from Godaddy DNS to cloudflare following these link guides https://docs.railway.app/deploy/exposing-your-app https://developers.cloudflare.com/dns/zone-setups/full-setup/setup/ All this time I have only been working with subdomains created in Godaddy and then pointed to the railway CNAMES those subdomains worked properly for 5 months. but now that we plan to move the main domain to work in Railway, we noticed that it is required to work with Cloudflare. the question is... What are the things we should take care to migrate everything to cloudflare? Domain and subdomains - we have a gap of 10 hours before users start work with the app tomorrow. We were starting the process this afternoon but decided to do it at night to avoid the services being down.
Railway Docs
Exposing Your App | Railway Docs
Documentation for Railway
Change your nameservers (Full setup) · Cloudflare DNS docs
If you want to use Cloudflare as your primary DNS provider and manage your DNS records on Cloudflare, your domain should be using a full setup.
No description
44 Replies
Percy
Percy7mo ago
Project ID: f4ffaf00-bf8e-4fc7-8e95-9d64d9995b8d
danielthames
danielthames7mo ago
f4ffaf00-bf8e-4fc7-8e95-9d64d9995b8d
MantisInABox
MantisInABox7mo ago
10 hours is a long time, and thankfully Cloudflare is fast, but do be aware that DNS propagation can take up to 72 hours or more... When you setup the domain with cloudflare, it will automatically detect your current DNS records and import them, so this is a huge help. You will want to ensure that once you have everything setup, go to the SSL settings for your domain in cloudflare and set them to FULL and nothing else. To setup your root domain, you will need to do it as a cname just like your subdomains. Other than those tips, everything else should be smooth sailing. You can tag me if you run into any issues
danielthames
danielthames7mo ago
Awesome! everything sounds good I'll start it in 5 hours then. thanks for the reply.
MantisInABox
MantisInABox7mo ago
No problem
danielthames
danielthames7mo ago
Hello! I'm trying to configure my new DNS into Cloudflare Any idea why I'm getting this message?
No description
No description
MantisInABox
MantisInABox7mo ago
You will need to look at your existing records and delete the A record for your root domain Then add the cname The cname replaces the A record
danielthames
danielthames7mo ago
this one, right?
MantisInABox
MantisInABox7mo ago
Yes, you want to delete that one I saw the image before it was removed
danielthames
danielthames7mo ago
ok, adding it......
No description
danielthames
danielthames7mo ago
I removed that one just in case
danielthames
danielthames7mo ago
No description
MantisInABox
MantisInABox7mo ago
Perfect!
danielthames
danielthames7mo ago
it is pointing to my previous page from godaddy though
MantisInABox
MantisInABox7mo ago
And your SSL settings are set to Full, yes? It will take some time for DNS to propagate
danielthames
danielthames7mo ago
correct
No description
MantisInABox
MantisInABox7mo ago
DNS can take up to 72 hours to propagate. It could also be serving a cached version to you Try a different browser
danielthames
danielthames7mo ago
Ok I will wait then
MantisInABox
MantisInABox7mo ago
When I move from one host to another, I usually deploy at the new host with a small change to the site... Something that isn't noticable to users, but would be to me, that way I can check that everything is properly configured
Brody
Brody7mo ago
margin: -1px;
danielthames
danielthames7mo ago
Do you see something wrong here? what I'm expecting from qrupones.com is to work with the new landing page built with next js
Brody
Brody7mo ago
i see you have www pointed to your cname, that wont work, youd need to do the www to non www redirect in cloudflare
danielthames
danielthames7mo ago
https://qrupones-production.up.railway.app/ this will be the new landing page
QRupones - Potencia la ReCompra y Fidelización de Clientes
Escanea, ahorra, disfruta. Impulsando lealtad, generando ahorro. Incentiva a tus clientes a volver a tu negocio, beneficiándolos con cupones de descuentos para premiar su fidelidad e incentivar las recompras!
danielthames
danielthames7mo ago
Should I delete that?
Brody
Brody7mo ago
very nice not delete, you would just need to do the redirect in cloudflare
MantisInABox
MantisInABox7mo ago
www is not really needed at all anymore... It's an unnecessary subdomain that legacy providers like GoDaddy keep in place
Brody
Brody7mo ago
true true
danielthames
danielthames7mo ago
ok, should I delete it then? or I can keep it; that doesn't matter?
Brody
Brody7mo ago
do you need www? if you leave it as it is there will be an ssl error on the www subdomain
danielthames
danielthames7mo ago
oh got it! I will delete it then since it's not important as Vin said
danielthames
danielthames7mo ago
something I need to touch here?
No description
Brody
Brody7mo ago
nope
MantisInABox
MantisInABox7mo ago
Everything looks good When you setup the domain, did you enable the https redirect option?
danielthames
danielthames7mo ago
Perfect! I will put an alarm in 5 hours then to check if this worked oh yeah! force https always That option from cloudflare during the setup steps
MantisInABox
MantisInABox7mo ago
Yeah, that's the one
danielthames
danielthames7mo ago
All right! thanks for the help guys I will let you know if everything works tomorrow morning. Have a nice weekend
Brody
Brody7mo ago
you too!
MantisInABox
MantisInABox7mo ago
No problem. It should auto resolve once cloudflare does it's thing
danielthames
danielthames7mo ago
Good morning! You were right Brody! If I add www this ends in an empty page with the railway logo. but if I remove the www. from the url the site is already working. I think I will need to create a redirection in Cloudflare. I had removed the www DNS but cloudflare showed a message that it should be created. that's why I have recreated it.
danielthames
danielthames7mo ago
you see?
No description
danielthames
danielthames7mo ago
Do you think this should work?
No description
danielthames
danielthames7mo ago
It works now! Screenshots for fuuture readers... this last one with only www.qrupones.com solved the issue for me!
No description
No description
Brody
Brody7mo ago
awesome!
MantisInABox
MantisInABox7mo ago
Glad it's working for you. You really shouldn't have to create all those rules. But if it's working now, it's working and that's all that matters