🪢 Refactoring elasticsearch configuration
This commit is contained in:
@@ -3,8 +3,9 @@ var mexp = require('mongoose-elasticsearch-xp').v7;
|
||||
const paginate = require("mongoose-paginate-v2");
|
||||
|
||||
const { Client } = require("@elastic/elasticsearch");
|
||||
console.log("YENADADADADA", Client)
|
||||
const eSClient = new Client({
|
||||
node: "http://ghost:9200",
|
||||
node: "http://tower.local:9200",
|
||||
auth: {
|
||||
username: "elastic",
|
||||
password: "password",
|
||||
|
||||
@@ -33,7 +33,7 @@ import {
|
||||
*/
|
||||
const brokerConfig: BrokerOptions = {
|
||||
// Namespace of nodes to segment your nodes on the same network.
|
||||
namespace: "",
|
||||
namespace: "threetwo-core-services",
|
||||
// Unique node identifier. Must be unique in a namespace.
|
||||
nodeID: null,
|
||||
// Custom metadata store. Store here what you want. Accessing: `this.broker.metadata`
|
||||
|
||||
16645
package-lock.json
generated
16645
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@@ -4,8 +4,8 @@
|
||||
"description": "My Moleculer-based microservices project",
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.json",
|
||||
"dev": "ts-node ./node_modules/moleculer/bin/moleculer-runner.js --envfile .env/service.env --hot --repl --config moleculer.config.ts services/**/*.service.ts",
|
||||
"start": "moleculer-runner --envfile .env/service.env --config dist/moleculer.config.js",
|
||||
"dev": "ts-node ./node_modules/moleculer/bin/moleculer-runner.js --hot --repl --config moleculer.config.ts services/**/*.service.ts",
|
||||
"start": "moleculer-runner --config dist/moleculer.config.js",
|
||||
"cli": "moleculer connect NATS",
|
||||
"ci": "jest --watch",
|
||||
"test": "jest --coverage",
|
||||
@@ -29,13 +29,13 @@
|
||||
"eslint-plugin-prefer-arrow": "^1.2.2",
|
||||
"jest": "^27.2.5",
|
||||
"jest-cli": "^27.2.5",
|
||||
"moleculer-repl": "^0.6.6",
|
||||
"moleculer-repl": "^0.7.0",
|
||||
"ts-jest": "^25.3.0",
|
||||
"ts-node": "^8.8.1",
|
||||
"typescript": "^3.9.10"
|
||||
},
|
||||
"dependencies": {
|
||||
"@elastic/elasticsearch": "^7.15.0",
|
||||
"@elastic/elasticsearch": "^7.16.0",
|
||||
"@root/walk": "^1.1.0",
|
||||
"@types/jest": "^25.1.4",
|
||||
"@types/mkdirp": "^1.0.0",
|
||||
@@ -67,7 +67,7 @@
|
||||
"node-7z": "^3.0.0",
|
||||
"node-calibre": "^2.1.1",
|
||||
"node-unrar-js": "^1.0.2",
|
||||
"sharp": "^0.28.1",
|
||||
"sharp": "^0.28.3",
|
||||
"socket.io": "^4.4.0",
|
||||
"threetwo-ui-typings": "^1.0.11",
|
||||
"through2": "^4.0.2",
|
||||
|
||||
@@ -4,10 +4,7 @@ import chokidar from "chokidar";
|
||||
import path from "path";
|
||||
import fs from "fs";
|
||||
import { IExtractionOptions, IFolderData } from "threetwo-ui-typings";
|
||||
import { createServer } from "http";
|
||||
import { Server, Socket } from "socket.io";
|
||||
import { SocketIOMixin } from "../mixins/socket.io.mixin";
|
||||
const SOCKET_HOST = process.env.DOCKER_HOST || `localhost`;
|
||||
export const io = SocketIOMixin();
|
||||
export default class ApiService extends Service {
|
||||
public constructor(broker: ServiceBroker) {
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
|
||||
const { Client } = require("@elastic/elasticsearch");
|
||||
const client = new Client({
|
||||
node: "http://ghost:9200",
|
||||
node: "http://tower.local:9200",
|
||||
auth: {
|
||||
username: "elastic",
|
||||
password: "password",
|
||||
|
||||
Reference in New Issue
Block a user