Browse Source

更改配置

liuyu 5 years ago
parent
commit
a5dd2e3f08
3 changed files with 11 additions and 19 deletions
  1. 10 11
      config/config.default.js
  2. 0 7
      config/config.secret.js
  3. 1 1
      package.json

+ 10 - 11
config/config.default.js

@@ -39,12 +39,6 @@ module.exports = appInfo => {
     },
   };
 
-  config.multipart = {
-    fileSize: '50mb', // 文件大小
-    mode: 'file', // 文件模式
-    whitelist: [ '.xlsx' ], // 文件类型白名单
-  };
-
   // mongoose config
   config.mongoose = {
     url: 'mongodb://127.0.0.1:27017/smart',
@@ -57,11 +51,16 @@ module.exports = appInfo => {
     },
   };
 
-  // JWT config
-  config.jwt = {
-    ...jwt,
-    expiresIn: '1d',
-    issuer: 'jobs',
+  // mq配置
+  config.amqp = {
+    client: {
+      hostname: '127.0.0.1',
+      username: 'smart',
+      password: 'smart123',
+      vhost: 'smart',
+    },
+    app: true,
+    agent: true,
   };
 
   return {

+ 0 - 7
config/config.secret.js

@@ -1,7 +0,0 @@
-'use strict';
-
-module.exports = {
-  jwt: {
-    secret: 'Ziyouyanfa!@#',
-  },
-};

+ 1 - 1
package.json

@@ -12,7 +12,7 @@
     "egg-scripts": "^2.11.0",
     "jsonwebtoken": "^8.5.1",
     "naf-framework-mongoose": "^0.6.11",
-    "silly-datetime": "^0.1.2",
+    "silly-datetime": "^0.1.2"
   },
   "devDependencies": {
     "autod": "^3.1.0",