How to override node.js http to use a proxy for all outbound requests -


i created node.js app reaches out social media sites , caches our public feeds. i'm using existing npm modules facilitate accessing social media api's. works charm in dev environment on our production environment requests timing out because need go through proxy.

without having modify npm modules how can make outbound requests go through proxy?

use http.globalagent property. let intercept requests running in process. can modify requests formatted proxy server.

http://nodejs.org/api/http.html#http_http_globalagent

another option create proxy exception application.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -