Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions doc-src/guide/node-configuring.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,23 @@ AWS.config.apiVersion = '2012-05-04';
### Configuring a Proxy

If you cannot connect to the internet directly, the SDK supports the use of
HTTP or HTTPS proxies through global or per-service configuration options. To
set a proxy, pass the `proxy` option to the `httpOptions` setting of your
config object. This is how you could set a global proxy:
HTTP or HTTPS proxies through the use of a third party HTTP agent such as
[proxy-agent](https://github.com/TooTallNate/node-proxy-agent). You can visit
[npmjs.org](http://npmjs.org) for a list of other proxy libraries.

##### Installation

```javascript
npm install proxy-agent --save
```

##### In your code

```javascript
var proxy = require('proxy-agent');

AWS.config.update({
httpOptions: {
proxy: 'http://localhost:8080'
}
httpOptions: { agent: proxy('http://internal.proxy.com') }
});

var s3 = new AWS.S3();
Expand Down