🔧 Fixes to transporter configuration

This commit is contained in:
2022-01-27 20:30:32 -08:00
parent 9f81acc78c
commit 34266c9d48
4 changed files with 163 additions and 159 deletions

View File

@@ -35,7 +35,7 @@ const brokerConfig: BrokerOptions = {
// Namespace of nodes to segment your nodes on the same network.
namespace: "",
// Unique node identifier. Must be unique in a namespace.
nodeID: null,
nodeID: "threetwo-metadata-service",
// Custom metadata store. Store here what you want. Accessing: `this.broker.metadata`
metadata: {},
@@ -64,7 +64,7 @@ const brokerConfig: BrokerOptions = {
// More info: https://moleculer.services/docs/0.14/networking.html
// Note: During the development, you don't need to define it because all services will be loaded locally.
// In production you can set it via `TRANSPORTER=nats://localhost:4222` environment variable.
transporter: "redis", // "NATS"
transporter: "redis://localhost:6379", // "NATS"
// Define a cacher.
// More info: https://moleculer.services/docs/0.14/caching.html