🧶 Updated ES host
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user