Private variable reference
lolideppt123
HOBBYOP

a year ago

I have a React frontend and Django backend. I tried using https://${service_name.RAILWAY_PRIVATE_DOMAIN}} for my base_url variable and I'm not able to hit my backend endpoint. So I've used the RAILWAY_PUBLIC_DOMAIN and it works. Does this mean I can't use the private domain for this service?

Solved

4 Replies

brody
EMPLOYEE

a year ago

Hello,

A user's browser does not have access to the private network, wouldn't be a very private network if they did haha.

So yes, you do have to use the public url in this context.

Best,

Brody


Status changed to Awaiting User Response Railway about 1 year ago


lolideppt123
HOBBYOP

a year ago

Okay. so in my React frontend variable reference for base_url should be https://${{django.RAILWAY_PUBLIC_DOMAIN}}?


Status changed to Awaiting Railway Response Railway about 1 year ago


brody
EMPLOYEE

a year ago

Correct!


Status changed to Awaiting User Response Railway about 1 year ago


lolideppt123
HOBBYOP

a year ago

Okay thanks!


Status changed to Awaiting Railway Response Railway about 1 year ago


Status changed to Solved brody about 1 year ago


Loading...