R
Railway4mo ago
Hys

reference internal url as api

Hello, i don't know how can i reference the internal url to use as my api for my front currently using it like this i'm dumb af and its probably pretty simple but i've always used it like this but its gonna be called out alot and now i don't want to pay for egress and stuff
No description
No description
4 Replies
Percy
Percy4mo ago
Project ID: N/A
Hys
HysOP4mo ago
NA
Fragly
Fragly4mo ago
You can use it like so: http://back.railway.internal:PORT/ note the http and :PORT specification (you dont have to specify port if it's running in port 80, obviously) If you mean reference asn service variable reference, you can use RAILWAY_PRIVATE_DOMAIN
Brody
Brody4mo ago
worth noting that you would need to use a public url if the requests to your backend are made client side
Want results from more Discord servers?
Add your server