Skip to content

Commit

Permalink
Add support for http auth
Browse files Browse the repository at this point in the history
  • Loading branch information
myoung34 committed Sep 25, 2017
1 parent 729f9ba commit 371f06a
Show file tree
Hide file tree
Showing 3 changed files with 2,163 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handlers/shipElasticsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ exports.process = function(config) {
host: config.elasticsearch.host
};

if (config.elasticsearch.httpAuth) {
esConfig.httpAuth = config.elasticsearch.httpAuth;
}

if (config.elasticsearch.useAWS) {
esConfig.connectionClass = require('http-aws-es');
esConfig.amazonES = {
Expand Down
Loading

0 comments on commit 371f06a

Please sign in to comment.