private networking port
builtbyphillip
HOBBYOP

5 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

yellowmacaroni
PRO

5 months ago

You can access a service's private networking URL through the RAILWAYPRIVATEDOMAIN 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](http://${{Service.RAILWAY_PRIVATE_DOMAIN}}:PORT) using referenced variables.


Loading...