feat: add basic auth support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user