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
Percy12mo ago
Project ID: f4ffaf00-bf8e-4fc7-8e95-9d64d9995b8d
danielthames
danielthamesOP12mo ago
f4ffaf00-bf8e-4fc7-8e95-9d64d9995b8d
MantisInABox
MantisInABox12mo 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
danielthamesOP12mo ago
Awesome! everything sounds good I'll start it in 5 hours then. thanks for the reply.
MantisInABox
MantisInABox12mo ago
No problem
danielthames
danielthamesOP12mo 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
MantisInABox12mo 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
danielthamesOP12mo ago
this one, right?
MantisInABox
MantisInABox12mo ago
Yes, you want to delete that one I saw the image before it was removed
danielthames
danielthamesOP12mo ago
ok, adding it......
No description
danielthames
danielthamesOP12mo ago
I removed that one just in case
danielthames
danielthamesOP12mo ago
No description
MantisInABox
MantisInABox12mo ago
Perfect!
danielthames
danielthamesOP12mo ago
it is pointing to my previous page from godaddy though
MantisInABox
MantisInABox12mo ago
And your SSL settings are set to Full, yes? It will take some time for DNS to propagate
danielthames
danielthamesOP12mo ago
correct
No description
MantisInABox
MantisInABox12mo 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
danielthamesOP12mo ago
Ok I will wait then
MantisInABox
MantisInABox12mo 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
Brody12mo ago
margin: -1px;
danielthames
danielthamesOP12mo 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
Brody12mo 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
danielthamesOP12mo 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
danielthamesOP12mo ago
Should I delete that?
Brody
Brody12mo ago
very nice not delete, you would just need to do the redirect in cloudflare
MantisInABox
MantisInABox12mo ago
www is not really needed at all anymore... It's an unnecessary subdomain that legacy providers like GoDaddy keep in place
Brody
Brody12mo ago
true true
danielthames
danielthamesOP12mo ago
ok, should I delete it then? or I can keep it; that doesn't matter?
Brody
Brody12mo ago
do you need www? if you leave it as it is there will be an ssl error on the www subdomain
danielthames
danielthamesOP12mo ago
oh got it! I will delete it then since it's not important as Vin said
danielthames
danielthamesOP12mo ago
something I need to touch here?
No description
Brody
Brody12mo ago
nope
MantisInABox
MantisInABox12mo ago
Everything looks good When you setup the domain, did you enable the https redirect option?
danielthames
danielthamesOP12mo 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
MantisInABox12mo ago
Yeah, that's the one
danielthames
danielthamesOP12mo ago
All right! thanks for the help guys I will let you know if everything works tomorrow morning. Have a nice weekend
Brody
Brody12mo ago
you too!
MantisInABox
MantisInABox12mo ago
No problem. It should auto resolve once cloudflare does it's thing
danielthames
danielthamesOP12mo 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
danielthamesOP12mo ago
you see?
No description
danielthames
danielthamesOP12mo ago
Do you think this should work?
No description
danielthames
danielthamesOP12mo 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
Brody12mo ago
awesome!
MantisInABox
MantisInABox12mo 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
Want results from more Discord servers?
Add your server