Not expose API publicly
Can I have a localhost API on one of my services that another service in the same project can access but no service outside of the project can access, i.e., no forwarding to a public URL (xxx.up.railway.app)
31 Replies
Project ID:
N/A
You might find these helpful:
- Deployment Services Question(s)
- How do I connect service to service without exposing it to the internet?
- Postgres access control
⚠️ experimental feature
unfortunately not at the moment, but it's being worked on so.. soon™️
Oh that's cool. I'll be sure to check #📢|announcements :)
Ah, I can see the updates here?
it's possible but the feature request for multiples of the same plugin was completed a bit ago and the feedback thread for that was never updated, so I think the #📢|announcements channel and the change logs would be your best bet for updates regarding the platform
Sounds great. I'll stay tuned
Thanks!
https://tailscale.com can do it rn
Tailscale
Tailscale
Tailscale is a zero config VPN for building secure networks. Install on any device in minutes. Remote access from any network or physical location.
@Brody if this is off doesn't that fix my issue? Or does this mean my other services within the same project also cannot access
localhost
One problem I can see is that the
PORT
will not be known to the other servicesthere's no internal networking domain or not, you can only access other services by their domain
So,
localhost
is inaccessible?you can access it, but you will only be accessing the localhost of the same container
Right, and it's not necessary if other services that share a project also share the same container?
that would not change anything
you'd still have to access other services by their domain regardless of location
Wdym
I just want the in my Project A, my service B can send an API call to my service C
Without service C being exposed to a public domain
api call to the domain of service c
yes, to the local domain
not possible at the moment
nope, public domain
Yeah, I remember that from the prev discussion
My simple question is, why can I not just access
localhost
of service C?
Because they might not share the same container?
Or some other reasonbecause all services are isolated
that's just how railway works at the moment
In their own containers?
yes
Makes sense. What's the ETA on this BTW?
you'd have to check the feedback thread for that in their canny board, I'm too sleepy to link it for you right now, sorry
No worries, I have the link. Thanks!
no problem!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
please do not ping my out of the blue like that, #🛂|readme #6
with that being said, there's no eta, you can use the public domains to access the services from each other