lrf402788946 4 年之前
父節點
當前提交
0e45177d28
共有 1 個文件被更改,包括 43 次插入39 次删除
  1. 43 39
      config/config.prod.js

+ 43 - 39
config/config.prod.js

@@ -1,39 +1,43 @@
-'use strict';
-
-module.exports = () => {
-  const config = (exports = {});
-
-  config.logger = {
-    // level: 'DEBUG',
-    // consoleLevel: 'DEBUG',
-  };
-
-  // mongoose config
-  config.mongoose = {
-    url: 'mongodb://127.0.0.1:27017/servicezhwl',
-    options: {
-      user: 'admin',
-      pass: 'admin',
-      authSource: 'admin',
-      useUnifiedTopology: true,
-      useNewUrlParser: true,
-      useCreateIndex: true,
-    },
-  };
-  // redis config
-  config.redis = {
-    client: {
-      port: 6379, // Redis port
-      host: '127.0.0.1', // Redis host
-      password: 123456,
-      db: 0,
-    },
-  };
-
-  config.project = {
-    userAuth: 'http://127.0.0.1:4000/api/role/auth',
-    mission: 'http://127.0.0.1:4001/api/mission',
-  };
-
-  return config;
-};
+'use strict';
+
+module.exports = () => {
+  const config = (exports = {});
+
+  config.logger = {
+    // level: 'DEBUG',
+    // consoleLevel: 'DEBUG',
+  };
+
+  // mongoose config
+  config.mongoose = {
+    url: 'mongodb://127.0.0.1:27017/servicezhwl',
+    options: {
+      user: 'admin',
+      pass: 'admin',
+      authSource: 'admin',
+      useUnifiedTopology: true,
+      useNewUrlParser: true,
+      useCreateIndex: true,
+    },
+  };
+  // redis config
+  config.redis = {
+    client: {
+      port: 6379, // Redis port
+      host: '127.0.0.1', // Redis host
+      password: 123456,
+      db: 0,
+    },
+  };
+  config.cluster = {
+    listen: {
+      port: 7009,
+    },
+  };
+  config.project = {
+    userAuth: 'http://127.0.0.1:4000/api/role/auth',
+    mission: 'http://127.0.0.1:4001/api/mission',
+  };
+
+  return config;
+};