secure/hide "api.anothersite.com" from public and only allow "mysite.com" to access it via 127.0.0.1:50010 internally

2018-07-27 Thread Dan Tullis via nginx
FYI - I believe I figured it out. Suggestions welcomed. Here is what I did: On the frontend: Instead of doing GETs and POSTs to "api.anothersite.com/api/messages" I now do the call to "mysite.com/api/messages" On the backend: added an additional "location" similar to:  location /api/messages { 

secure/hide "api.anothersite.com" from public and only allow "mysite.com" to access it via 127.0.0.1:50010 internally

2018-07-26 Thread Dan Tullis via nginx
I would like to hide a backend API REST server from public view and have it accessed from frontend web server locally/internally. Is this possible? Below are my setup and configs: angular/nodejs frontend app, say it is "mysite.com" running on server at 127.0.0.1:51910 nodejs backend app, say