🧶 Updated ES host

This commit is contained in:
2022-03-29 15:22:48 -07:00
parent 93f4b2e931
commit 362fd51de0

View File

@@ -8,9 +8,9 @@ import {
MongoosasticModel, MongoosasticModel,
MongoosasticPluginOpts, MongoosasticPluginOpts,
} from "mongoosastic-ts/dist/types"; } from "mongoosastic-ts/dist/types";
const ELASTICSEARCH_HOST = process.env.ELASTICSEARCH_URI || "http://localhost:9200";
export const eSClient = new Client({ export const eSClient = new Client({
node: "http://localhost:9200", node: ELASTICSEARCH_HOST,
auth: { auth: {
username: "elastic", username: "elastic",
password: "password", password: "password",