R
Railway16mo ago
alyson

Configuring a Custom Domain

Hello! Hope you guys are doing well! I would like to know if this is how I configure a Domain in the Railway, or is something missing. I added my domain, and I added the information provided by the settings according to the image I sent, in Google/domains that way. Do I just have to wait for the "Waiting for DNS update · Show instructions" status to update automatically?
Solution:
Solution First I did what the railway said in Project settings > Domains > Custom Domain, already with the domain purchased: https://discord.com/channels/713503345364697088/1138471505496379412/1139540551956447345 ...
Jump to solution
8 Replies
Percy
Percy16mo ago
Project ID: b62b596e-1a25-4559-a32c-c74d00634378
Brody
Brody16mo ago
Google domains does not support root level cnames, you will want to use cloudflare's nameservers, they have a guide for that here https://developers.cloudflare.com/dns/zone-setups/full-setup/setup/
alyson
alysonOP16mo ago
Brody, this is the correct way to configure? I did exactly what railway said. railway sad to add a CNAME whit this another values, but I'm not sure if it's correctly.
root
root16mo ago
That looks good.
alyson
alysonOP16mo ago
Thx for your help, Brody! I finally got it.
Brody
Brody16mo ago
awsome!
Solution
alyson
alyson16mo ago
Solution First I did what the railway said in Project settings > Domains > Custom Domain, already with the domain purchased: https://discord.com/channels/713503345364697088/1138471505496379412/1139540551956447345 Next, I did what it says in this documentation that Brody made available: https://discord.com/channels/713503345364697088/1138471505496379412/1138506056830558398 I put the Cloudflare Nameservers in Custom nameservers (Active), on Google Domains. Now, I changed the SSL/TLS settings to full in Cloudflare (the orange cloud): https://discord.com/channels/713503345364697088/1138471505496379412/1139556236312989706 Now: DNS>Records A set CNAME, www (sobdomaim), railway token. Last but not least... as I'm developing with Django, I added my domain to CSRF_TRUSTED_ORIGINS and ALLOWED_HOSTS:
CSRF_TRUSTED_ORIGINS = [
'https://*.yourdomain.com',
'https://*.yourdomain.up.railway.app'
]

ALLOWED_HOSTS = ['yourdomain.com', 'www.yourdomain.com', 'yourdomain.up.railway.app', '0.0.0.1']
CSRF_TRUSTED_ORIGINS = [
'https://*.yourdomain.com',
'https://*.yourdomain.up.railway.app'
]

ALLOWED_HOSTS = ['yourdomain.com', 'www.yourdomain.com', 'yourdomain.up.railway.app', '0.0.0.1']
Want results from more Discord servers?
Add your server