2 years ago
I currently have a lot of next.js applications already deployed to railway that use cloudflare tunnels and the internal hostname of the railway container.
I'm having an issue when trying to deploy a container with Go. I've tried setting the hostname to the internal container, but my site is not reachable. I'm wondering if anyone else has successfully deployed a go application to railway with cloudflare tunnels. I think it may be related to my scratch container in that maybe scratch can't resolve the DNS hostname due to missing binaries on the machine?
21 Replies
2 years ago
Are you using docker?
2 years ago
n/a
2 years ago
N/A
2 years ago
For Go apps you would want to listen to a blank hostname, aka :$PORT
As that will listen on IPv6 and IPv4, IPv6 is needed because the private network is IPv6 only.
I'm trying to configure my fiber server to use tcp6 when deployed to railway since it seems like the hostname doesn't resolve unless it's ip6?
2 years ago
is this what you're trying to host?

2 years ago
it was probably a cache issue
I was also trying to resolve hostnames inside the container and it seems like ipv4 wasn't supported?
2 years ago
Correct, it is IPv6 only




