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
4 Replies
Project ID:
N/A
NA
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
worth noting that you would need to use a public url if the requests to your backend are made client side