liuyu hace 5 años
padre
commit
4298225681
Se han modificado 2 ficheros con 9 adiciones y 10 borrados
  1. 6 7
      config/config.default.js
  2. 3 3
      config/config.local.js

+ 6 - 7
config/config.default.js

@@ -61,27 +61,26 @@ module.exports = appInfo => {
   // 学生详细信息
   // 学生详细信息
   config.strDirMq = '/api/stud/registers/';
   config.strDirMq = '/api/stud/registers/';
 
 
-  // mq config
   config.amqp = {
   config.amqp = {
     client: {
     client: {
       hostname: '127.0.0.1',
       hostname: '127.0.0.1',
-      username: 'wy',
-      password: '1',
+      username: 'smart',
+      password: 'smart123',
       vhost: 'smart',
       vhost: 'smart',
     },
     },
     app: true,
     app: true,
     agent: true,
     agent: true,
   };
   };
 
 
+  // mongoose config
   config.mongoose = {
   config.mongoose = {
-    url: 'mongodb://localhost:27017/smart',
+    url: 'mongodb://127.0.0.1:27017/smart',
     options: {
     options: {
-      user: 'demo',
-      pass: 'demo',
+      user: 'root',
+      pass: 'Ziyouyanfa#@!',
       authSource: 'admin',
       authSource: 'admin',
       useNewUrlParser: true,
       useNewUrlParser: true,
       useCreateIndex: true,
       useCreateIndex: true,
-      useUnifiedTopology: true,
     },
     },
   };
   };
 
 

+ 3 - 3
config/config.local.js

@@ -9,9 +9,9 @@ module.exports = () => {
   };
   };
 
 
   // mongoose config
   // mongoose config
-  // config.mongoose = {
-  //   url: 'mongodb://172.17.116.100:27017/smart',
-  // };
+  config.mongoose = {
+    url: 'mongodb://172.17.116.100:27017/smart',
+  };
 
 
   return config;
   return config;
 };
 };