2 months ago
Hi everyone!
I'm working on a SaaS with custom hostnames support hosted on Railway and am running into a bit of a problem:
We're using Cloudflare for SaaS to serve custom hostnames. We managed to get this to work using a TCP proxy on Railway so we have a raw port, and then just creating a reroute rule (or whatever it's called) to change the port to the one given. The problem however is that as far as i can see Cloudflare SaaS doesn't support apex (root domain) proxying, so we will need some other way to redirect users to the www version. I was thinking of a simple VPS or something but was wondering if you have any better ideas. (rerolling the tcp proxy until we get port 80? :)
1 Replies
2 months ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • about 2 months ago
2 months ago
If you're using Cloudflare's DNS service, you should be able to set up WAF such that all traffic to @ is redirected to www, though Cloudflare's DNS service itself already supports CNAME flattening.