R
Railwayβ€’14mo ago
sactrom

private networking connect front to server

Hi, I am trying to connect my angular app with my server made with nestJS, I really don't understand at all how private networking works, in my enviroments i am doing this, it is correct? serverUrl: 'https://gateway.railway.internal:3000', or, when I can see the port from my server? this is the default nestjs port but i don t know if is the same in railway, is the url ok or not, thank you
6 Replies
Percy
Percyβ€’14mo ago
Project ID: 3a912af4-59a3-41ea-838e-72eab5c3579f
sactrom
sactromOPβ€’14mo ago
3a912af4-59a3-41ea-838e-72eab5c3579f
Brody
Brodyβ€’14mo ago
angular does client side rendering, this means the clients browser will also be making the api calls, thus you need to use the public domain of your service when making the api calls from your angular app, if a client could make a call to an api on the private network, well it wouldn't be much a private network now would it lol cc @Melissa improvements for the private networking documentation, perhaps a nice diagram like the ones used in the recent blogs?
sactrom
sactromOPβ€’14mo ago
thank you
Brody
Brodyβ€’14mo ago
any other questions? πŸ™‚
sactrom
sactromOPβ€’14mo ago
no, it's all πŸ˜…
Want results from more Discord servers?
Add your server