|
@@ -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 {
|