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

**URL:** <https://discuss.elastic.co/t/using-elasticsearch-js-from-inside-a-corporate-network-proxy-config/58061>\
**Category:** Elasticsearch\
**Created:** [August 15, 2016, 7:25pm UTC](https://discuss.elastic.co/t/using-elasticsearch-js-from-inside-a-corporate-network-proxy-config/58061 "2016-08-15T19:25:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael.lindeboom](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@michael.lindeboom](https://discuss.elastic.co/u/michael.lindeboom)\
**Post date:** [August 15, 2016, 7:25pm UTC](https://discuss.elastic.co/t/using-elasticsearch-js-from-inside-a-corporate-network-proxy-config/58061/1 "2016-08-15T19:25:49Z")

</div>

I am using the JavaScript (nodejs) client from inside a corporate network to access a cluster hosted by [Elastic.co](http://Elastic.co) (AWS). There does not seem to be any clear way to set the configuration to use my corporate proxy ([proxy-server.corp.com](http://proxy-server.corp.com)).

var client = new elasticsearch.Client({  
host: '[proxy-server.corp.com:8080](http://proxy-server.corp.com:8080) [http://6c9625.us-east-1.aws.found.io:9200](http://6c9625.us-east-1.aws.found.io:9200)',  
log: 'trace'  
});

Any advise would be appreciated.

thanks

Mike on a corporate network

---

<div class="post-metadata">

**Author:** ![JoarSvensson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joarsvensson/32/8740_2.png) [@JoarSvensson](https://discuss.elastic.co/u/JoarSvensson)\
**Post date:** [August 16, 2016, 7:46am UTC](https://discuss.elastic.co/t/using-elasticsearch-js-from-inside-a-corporate-network-proxy-config/58061/2 "2016-08-16T07:46:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:27pm UTC](https://discuss.elastic.co/t/using-elasticsearch-js-from-inside-a-corporate-network-proxy-config/58061/3 "2017-07-05T22:27:35Z")

</div>


