Turistforeningen / node-s3-uploader

Flexible and efficient resize, rename, and upload images to Amazon S3 disk storage. Uses the official AWS Node SDK for transfer, and ImageMagick for image processing. Support for multiple image versions targets.
https://www.npmjs.com/package/s3-uploader
MIT License
241 stars 54 forks source link

[Feature Request] - Proxy Support #139

Open JonatanSalas opened 6 years ago

JonatanSalas commented 6 years ago

Our apps, are behind a proxy network, we're using this library for one of our projects. It would be really nice, if you add support for proxy.

https://aws.amazon.com/es/blogs/developer/using-the-aws-sdk-for-javascript-from-behind-a-proxy/

var AWS = require('aws-sdk');
var proxy = require('proxy-agent');

AWS.config.update({
  httpOptions: { 
    agent: proxy('http://user:password@internal.proxy.com') 
  }
});

var s3 = new AWS.S3({region: 'us-west-2'});
s3.getObject({Bucket: 'bucket', Key: 'key'}, function (err, data) {
  console.log(err, data);
});

Would you mind if I make you a PR?