diff --git a/backend/external/elasticsearch.ts b/backend/external/elasticsearch.ts index cc996c4..f57745a 100644 --- a/backend/external/elasticsearch.ts +++ b/backend/external/elasticsearch.ts @@ -28,7 +28,8 @@ export const client = new Client({ node: process.env.ELASTICSEARCH_HOST, auth: { username: 'elastic', - password: process.env.ELASTICSEARCH_PASSWORD || "" + password: process.env.ELASTICSEARCH_PASSWORD || "", + apiKey: process.env.ELASTICSEARCH_APIKEY || "" } });