Skip to content

Commit

Permalink
Merge pull request #16 from tsm91/fix/basic-auth
Browse files Browse the repository at this point in the history
Fix basic auth for elasticsearch module
  • Loading branch information
mcollina authored Oct 16, 2017
2 parents 8cfa5de + f310b46 commit 3a35a26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pino-elasticsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function pinoElasticSearch (opts) {
const client = new elasticsearch.Client({
host: opts.host ? opts.host + ':' + opts.port : undefined,
auth: opts.user ? opts.user + ':' + opts.password : undefined,
httpAuth: opts.user ? opts.user + ':' + opts.password : undefined,
connectionClass: opts['aws-credentials'] ? require('http-aws-es') : undefined,
awsConfig: opts['aws-credentials'] ? AWS.config.loadFromPath(opts['aws-credentials']) : undefined,
log: {
Expand Down

0 comments on commit 3a35a26

Please sign in to comment.