I'm losing my mind trying to get private networking to work.
amiralsad
HOBBYOP

2 months ago

I'm running multiple services in my project and I'm referencing these services between each other. I thought "Perfect opportunity for private networking!" I've set up "PORT" as an environment variable in each service (just to be sure) and set multiple shared variables in the form: "http://${{myservicename.RAILWAY_PRIVATE_DOMAIN}}:{myservicename.PORT}"

Nothing seems to work. I've looked at the docs and my project is new so it should support IPv4. If anyone has gone through this suffering and come out wiser please help.

$10 Bounty

2 Replies

2 months ago

Project-level shared variables do not support variable references.

Please use service level reference variables.


Status changed to Awaiting User Response Railway about 2 months ago


brody

Project-level shared variables do not support variable references.Please use service level reference variables.

amiralsad
HOBBYOP

2 months ago

Just tried it without the shared variables, but I'm still facing issues. The services still can't understand the URLs of the other services. Still using the same format:
OTHER_SERVICE_URL=http://${{myservicename.RAILWAY_PRIVATE_DOMAIN}}:${{myservicename.PORT}}


Loading...