bootbot icon indicating copy to clipboard operation
bootbot copied to clipboard

Setting proxy

Open kelkmere opened this issue 7 years ago • 1 comments

Hi, I am using this library behind a corporate firewall. Any external request would require first passing through a proxy. For the request library, I can do so by setting the HTTPS_PROXY environment variable. However I am not too familiar with the node-fetch library.

kelkmere avatar Oct 11 '17 12:10 kelkmere

I think we can do this by leveraging a library like http-proxy-agent and use it like in the example here: https://github.com/bitinn/node-fetch/issues/79

But we'll need to add support through an environment variable and/or an option in the BootBot class constructor.

Charca avatar Nov 28 '17 12:11 Charca