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
Project ID:
a45af505-1c73-4eb1-82a2-a15c9c5bd2f8
You will need to set a CNAME record at the root of your domain that points to your deployment.
⚠️ experimental feature
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?
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/
Is this the way to go?
If not, do I add anything here (as perhttps://docs.railway.app/deploy/exposing-your-app#add-a-custom-domain) ?
For the * record maybe change the
www....
To the railway DNS nameAlright, 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.
I've also added warno-armory.com as a domain in Railway. Is this wrong? The guide is confusing me.
There is also this https://serverfault.com/questions/574072/can-we-have-multiple-cnames-for-a-single-name
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
Ah yes. And then I think if you do the thing above again it should work. Hopefully
I'll right I'll reset and wait 6 hours for the DNS to catch up.
Oh. Usually it works instantly for me
Or like a min max
Alright, lets see if this works
I think the top record should also point to the railway domain. But I could be wrong
< hopefully someone else can chime in >
alright lets test that
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.
this is how i did it
not sure how that wouldnt work for you
Did you do anything in Railway?
This looks like an entry at your domain provider, right?
Things is, my shit domain provider doesn't let me leave this field empty:
ah yeah
you will have to use cloudflare. had the same issue with google domains
oh
You can use cloud flare to set up a CNAME alias.
⚠️ experimental feature
lol
theres a section on the docs
its quite rough though
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.
lmfao i just switched to vercel for me frontend yeah
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
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
Yeah, I'm going for a cold war vibe (the game is set in the cold war era).
working out well then!
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.
ugh not really i think you got the astheic down tbh
maybe add some ctr scanlines
oh damn that would actually look cool
like in the background
amma look into that
dunno how'd i do it 😄
or in the forground with some distorsion like your actually looking at. crt
uh i think the community would hang me for that
@pobunjenik used to play hella Wargame EE and RD - love this project
Will lock thread if you got set up right
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. 😦