Using elasticsearch.js from inside a corporate network. Proxy config?

I am using the JavaScript (nodejs) client from inside a corporate network to access a cluster hosted by (AWS). There does not seem to be any clear way to set the configuration to use my corporate proxy (

var client = new elasticsearch.Client({
host: '',
log: 'trace'

Any advise would be appreciated.


Mike on a corporate network

I'm not sure but I think this is something you would want to set up on the server running Node and not within the Elasticsearch client itself.