R
Railway14mo ago
Muijf

TCP Proxy wildcard domain

I made a TCP proxy that I would like to have a custom wildcard domain for. Is this possible?
26 Replies
Percy
Percy14mo ago
Project ID: b9134439-1819-4a42-ad95-ff7a31509e22
Muijf
MuijfOP14mo ago
b9134439-1819-4a42-ad95-ff7a31509e22
Fragly
Fragly14mo ago
yea very easy too *.example.com <- wildcard subdomain ( i assume you meant wildcard subdomains )
Muijf
MuijfOP14mo ago
for tcp, not http
Fragly
Fragly14mo ago
oh my bad, not sure about TCP proxy
Muijf
MuijfOP14mo ago
Thanks anyways
Brody
Brody14mo ago
not currently possible, what's the usecase if I may ask?
Muijf
MuijfOP14mo ago
Super basic tcp proxy used for minecraft servers Trying to read the subdomain, get the target ip from a database and pass packets between the client and server
Brody
Brody14mo ago
why does that involve the need for a wildcard subdomain?
Muijf
MuijfOP14mo ago
Every server registered will have their own subdomain, and should be able to connect to the server using the proxy
Brody
Brody14mo ago
you would need to run an external proxy with host masking
Muijf
MuijfOP14mo ago
So the external proxy I already have, I just need to host mask to the TCP proxy address I get from railway? I've been trying to do that, but without success. Not sure how I would go ahead and do that
Brody
Brody14mo ago
literally just set the fixed host header to the railway tcp proxy domain when your proxy makes a request to the railway proxy domain
Muijf
MuijfOP14mo ago
I am not sure I know what you mean by that. The proxy is running on railway. Are you saying I need to deploy it elsewhere?
Brody
Brody14mo ago
correct
Muijf
MuijfOP14mo ago
But then I wouldn't need railway for any of it Are custom domains for tcp proxies planned?
Brody
Brody14mo ago
that's fair good question
Muijf
MuijfOP14mo ago
I would need to have replicas in as many regions as possible, because I don't want it to affect latency for players obviously. Railway would make that easy
Brody
Brody14mo ago
railway does not yet offer multi region replicas
Muijf
MuijfOP14mo ago
I know, but I heard they were coming soon, or so I thought
Brody
Brody14mo ago
it's soon ™️
Muijf
MuijfOP14mo ago
I have a long way of development to go anyway, I need it to work in one region for now Anyone official who could answer the question?
Brody
Brody14mo ago
ive already asked the team, will come back when/if I get an answer
Muijf
MuijfOP14mo ago
Alright
Brody
Brody14mo ago
not planned for now, you would have to use a proxy with host masking, I know fastly can do this, and I'm pretty sure if fastly can, cloudflare can too
Muijf
MuijfOP14mo ago
Alright thanks
Want results from more Discord servers?
Add your server