Setup for consuming external web APIs from internal app

Hi NGinx users,

Not sure if this is off topic.

Need help on what would be the recommended setup/architecture for
consuming
external web apis (e.g. twitter, Facebook APIs) securely from an
application deployed in an internal network. And how NGINX can augment
in
this use case.

This is what I have in mind but I’m not sure if this is a supported
setup
of nginx.

InternalAPP --> (DMZ) NGINX -> external web api.

Appreciate any advise :slight_smile:

Regards,
Chino

Hi Chino,

Could you please explain your architecture in more detail? So far it
looks
like you’re protecting the Internet from your application, and not vice
versa.
AFAIK, most API don’t do callbacks, so you don’t need to expose your app
to
the outside callers. Simply permit outgoing connections in your
firewall.

On Wednesday, August 19, 2015 05:57:34 PM Chino Aureus wrote:

of nginx.

InternalAPP --> (DMZ) NGINX -> external web api.

Appreciate any advise :slight_smile:

Regards,
Chino

Best regards,
Styopa S…

Hi,
On 08/19/2015 11:57 AM, Chino Aureus wrote:

This is what I have in mind but I’m not sure if this is a supported
setup of nginx.

InternalAPP → (DMZ) NGINX → external web api.

Appreciate any advise :slight_smile:

If you’re trying to limit your application calls to outside, ex. let’s
say your app can connect only to:

api.google.com

or

this seems more a job for a forwar proxy, typically squid.

Regards,
Chino

Frederik