private networking port
builtbyphillip
HOBBYOP

9 months ago

I am trying to use the private networking in my go project, but when deploying it is giving me a port error. What should the env variable be for accessing another API within the same environment?

$10 Bounty

1 Replies

9 months ago

You can access a service's private networking URL through the RAILWAY_PRIVATE_DOMAIN env variable but this doesn't include the protocol or port and as far as I am aware there is no railway provided env variable for the port so your env variable should look like http://${{Service.RAILWAY_PRIVATE_DOMAIN}}:PORT using referenced variables.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...