lrf 3 năm trước cách đây
mục cha
commit
956b802fa2
2 tập tin đã thay đổi với 20 bổ sung20 xóa
  1. 1 1
      config/config.default.js
  2. 19 19
      config/config.prod.js

+ 1 - 1
config/config.default.js

@@ -40,7 +40,7 @@ module.exports = appInfo => {
     agent: true,
   };
   // 接收队列名称
-  config.queue = 'platform/V2/server-user';
+  config.queue = 'platform/V1/server-user';
   // 发送队列名称
   config.sendQueue = {
     logs: 'freeAdmin/server-logs',

+ 19 - 19
config/config.prod.js

@@ -7,26 +7,26 @@ module.exports = () => {
     level: 'INFO',
     consoleLevel: 'INFO',
   };
-  // config.dbName = 'new-platform';
-  // config.mongoose = {
-  //   url: `mongodb://localhost:27017/${config.dbName}`,
-  //   options: {
-  //     user: 'admin',
-  //     pass: 'admin',
-  //     authSource: 'admin',
-  //     useNewUrlParser: true,
-  //     useCreateIndex: true,
-  //   },
-  // };
+  config.dbName = 'platform-v1';
+  config.mongoose = {
+    url: `mongodb://localhost:27017/${config.dbName}`,
+    options: {
+      user: 'admin',
+      pass: 'admin',
+      authSource: 'admin',
+      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.redis = {
+    client: {
+      port: 6379, // Redis port
+      host: '127.0.0.1', // Redis host
+      password: 123456,
+      db: 0,
+    },
+  };
 
   config.export = {
     root_path: '/usr/local/workspace/server/service-file/upload',