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
Percy
Percy2y ago
Project ID: N/A
Brody
Brody2y ago
unfortunately not at the moment, but it's being worked on so.. soon™️
GetPsyched
GetPsychedOP2y ago
Oh that's cool. I'll be sure to check #📢|announcements :)
GetPsyched
GetPsychedOP2y ago
Ah, I can see the updates here?
Brody
Brody2y ago
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
GetPsyched
GetPsychedOP2y ago
Sounds great. I'll stay tuned Thanks!
eirk
eirk2y ago
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.
GetPsyched
GetPsychedOP2y ago
How?
GetPsyched
GetPsychedOP2y ago
@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
GetPsyched
GetPsychedOP2y ago
One problem I can see is that the PORT will not be known to the other services
Brody
Brody2y ago
there's no internal networking domain or not, you can only access other services by their domain
GetPsyched
GetPsychedOP2y ago
So, localhost is inaccessible?
Brody
Brody2y ago
you can access it, but you will only be accessing the localhost of the same container
GetPsyched
GetPsychedOP2y ago
Right, and it's not necessary if other services that share a project also share the same container?
Brody
Brody2y ago
that would not change anything you'd still have to access other services by their domain regardless of location
GetPsyched
GetPsychedOP2y ago
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
Brody
Brody2y ago
api call to the domain of service c
GetPsyched
GetPsychedOP2y ago
yes, to the local domain
Brody
Brody2y ago
not possible at the moment nope, public domain
GetPsyched
GetPsychedOP2y ago
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 reason
Brody
Brody2y ago
because all services are isolated that's just how railway works at the moment
GetPsyched
GetPsychedOP2y ago
In their own containers?
Brody
Brody2y ago
yes
GetPsyched
GetPsychedOP2y ago
Makes sense. What's the ETA on this BTW?
Brody
Brody2y ago
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
GetPsyched
GetPsychedOP2y ago
No worries, I have the link. Thanks!
Brody
Brody2y ago
no problem!
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Brody
Brody2y ago
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
Want results from more Discord servers?
Add your server