builtbyphillip
HOBBYOP
6 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?
1 Replies
6 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 using referenced variables.