feat: add elasticsearch
This commit is contained in:
parent
a67ca5f277
commit
1f7b4a24e6
1 changed files with 7 additions and 0 deletions
7
src/services/elasticsearch.ts
Normal file
7
src/services/elasticsearch.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { Client } from "@elastic/elasticsearch";
|
||||
|
||||
const elasticsearch = new Client({
|
||||
node: `${process.env.ELASTICSEARCH_PROTOCOL}://${process.env.ELASTICSEARCH_HOST}:${process.env.ELASTICSEARCH_PORT}`,
|
||||
});
|
||||
|
||||
export default elasticsearch;
|
||||
Loading…
Add table
Add a link
Reference in a new issue