Skip to content

Commit

Permalink
Fix basic auth for elasticsearch module
Browse files Browse the repository at this point in the history
  • Loading branch information
aegyed91 committed Oct 15, 2017
1 parent 8cfa5de commit f310b46
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 f310b46

Please sign in to comment.