R
Railway2y ago
m1rza

Which of these do I need to set to have my domain point to my Railways app with "www." and without?

a45af505-1c73-4eb1-82a2-a15c9c5bd2f8 I'm trying to use my domain without www. to point to my railway app because user's found a way to get the Railways link of my app public again.
40 Replies
Percy
Percy2y ago
Project ID: a45af505-1c73-4eb1-82a2-a15c9c5bd2f8
Percy
Percy2y ago
You will need to set a CNAME record at the root of your domain that points to your deployment.
⚠️ experimental feature
Finn
Finn2y ago
user's found a way to get the Railways link of my app public again.
this shouldnt really matter tbh. just block requests comming to that domain or something what issue are you having with your domain?
m1rza
m1rza2y ago
The issues is this: when user go to https://www.warno-armory.com/, they get the correct page and link. The links are important since its about stats of units of a competitive RTS. However, if users use http://warno-armory.com/, they're redirected to https://yawa.up.railway.app/. I'd like to avoid that but my domain provider seems to be... suboptimal. Now this entire hosting/domain/redirecting thing is new to me. I've been in fintech for the past 6 years and I haven't had to host a web app ever. tldr: i'd like http://warno-armory.com/ as well as https://www.warno-armory.com/ to lead to https://www.warno-armory.com/
m1rza
m1rza2y ago
Is this the way to go?
m1rza
m1rza2y ago
Railway Docs
Exposing Your App | Railway Docs
Documentation for Railway
Finn
Finn2y ago
For the * record maybe change the www.... To the railway DNS name
m1rza
m1rza2y ago
Alright, I did. Now https://warno-armory.com/ times out but https://www.warno-armory.com/ works. warno-armory.com is back up and redirecting to the Railway link again.
m1rza
m1rza2y ago
I've also added warno-armory.com as a domain in Railway. Is this wrong? The guide is confusing me.
m1rza
m1rza2y ago
Server Fault
Can we have multiple CNAMES for a single Name?
I need this for load balancing. For example, I've two azure storage accounts (say a and b) and the blob addresses for those are a.blob.core.windows.net and b.blob.core.windows.net. Both of them store
Finn
Finn2y ago
Ah yes. And then I think if you do the thing above again it should work. Hopefully
m1rza
m1rza2y ago
I'll right I'll reset and wait 6 hours for the DNS to catch up.
Finn
Finn2y ago
Oh. Usually it works instantly for me Or like a min max
m1rza
m1rza2y ago
Alright, lets see if this works
Finn
Finn2y ago
I think the top record should also point to the railway domain. But I could be wrong < hopefully someone else can chime in >
m1rza
m1rza2y ago
alright lets test that
m1rza
m1rza2y ago
welp @Finn - uses centos it didn't work. :/ Using http://warno-armory.com (without the www) redirects to yawa.up (which is wrong). Using https://warno-armory.com times out.
Finn
Finn2y ago
this is how i did it
Finn
Finn2y ago
not sure how that wouldnt work for you EmotiPensive
m1rza
m1rza2y ago
Did you do anything in Railway? This looks like an entry at your domain provider, right?
Finn
Finn2y ago
Finn
Finn2y ago
yea that same as you https://spot.finndore.dev eg
m1rza
m1rza2y ago
Things is, my shit domain provider doesn't let me leave this field empty:
Finn
Finn2y ago
ah yeah you will have to use cloudflare. had the same issue with google domains
m1rza
m1rza2y ago
oh
Percy
Percy2y ago
You can use cloud flare to set up a CNAME alias.
⚠️ experimental feature
Finn
Finn2y ago
lol theres a section on the docs its quite rough though EmotiPensive
m1rza
m1rza2y ago
yeah in that case i'll just fucking let it be man 😄 Thank you for your help, I'll look into Cloudflare and maybe do it maybe live without it, idk.
Finn
Finn2y ago
lmfao i just switched to vercel for me frontend yeah
m1rza
m1rza2y ago
What's that? I'm a backend dev, but I can make shit frontends that are serviceable. I mean look at this Mona Lisa UI man https://www.warno-armory.com/armory/v89358_oudinot_hotfix
Finn
Finn2y ago
lol. its just a pas like railway thats meant for mainly frontends. I host my backends here and frontends on vercle gawd dam thats actually an asthetic
m1rza
m1rza2y ago
Yeah, I'm going for a cold war vibe (the game is set in the cold war era).
Finn
Finn2y ago
working out well then!
m1rza
m1rza2y ago
Thanks man, glad you like it. 😄 Do you have any tips? Other than like, add flags for nations etc. That's already on the agenda.
Finn
Finn2y ago
ugh not really i think you got the astheic down tbh maybe add some ctr scanlines Sus
m1rza
m1rza2y ago
oh damn that would actually look cool like in the background amma look into that dunno how'd i do it 😄
Finn
Finn2y ago
or in the forground with some distorsion like your actually looking at. crt
m1rza
m1rza2y ago
uh i think the community would hang me for that
angelo
angelo2y ago
@pobunjenik used to play hella Wargame EE and RD - love this project Will lock thread if you got set up right
m1rza
m1rza2y ago
You're welcome to join us in WARNO. 🙂 Its not quit done yet, as the www. domain works, but the one without www. doesn't. 😦
Want results from more Discord servers?
Add your server