feat: add basic auth support

This commit is contained in:
2018-11-02 12:11:54 -07:00
parent 0834274166
commit 420c845cbc
2 changed files with 3 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ export default async function(indexName, opts = {}) {
const client = new elasticsearch.Client({
host: opts.elasticsearch.host,
log: opts.elasticsearch.log,
httpAuth: opts.elasticsearch.auth,
});
// make sure we can connect to the node