Kaynağa Gözat

更改端口号 和 本地配置

liuyu 5 yıl önce
ebeveyn
işleme
377fe2dfa3
2 değiştirilmiş dosya ile 22 ekleme ve 3 silme
  1. 1 1
      config/config.default.js
  2. 21 2
      config/config.local.js

+ 1 - 1
config/config.default.js

@@ -35,7 +35,7 @@ module.exports = appInfo => {
   // add your config here
   config.cluster = {
     listen: {
-      port: 8103,
+      port: 8106,
     },
   };
 

+ 21 - 2
config/config.local.js

@@ -8,9 +8,28 @@ module.exports = () => {
     consoleLevel: 'DEBUG',
   };
 
-  // mongoose config
+  // mq config
+  config.amqp = {
+    client: {
+      hostname: '127.0.0.1',
+      username: 'wy',
+      password: '1',
+      vhost: 'smart',
+    },
+    app: true,
+    agent: true,
+  };
+
   config.mongoose = {
-    url: 'mongodb://172.17.116.100:27017/smart',
+    url: 'mongodb://localhost:27017/smart',
+    options: {
+      user: 'demo',
+      pass: 'demo',
+      authSource: 'admin',
+      useNewUrlParser: true,
+      useCreateIndex: true,
+      useUnifiedTopology: true,
+    },
   };
 
   return config;