|
@@ -22,27 +22,27 @@ module.exports = () => {
|
|
// 认证回调地址
|
|
// 认证回调地址
|
|
config.authUrl = '/api/auth';
|
|
config.authUrl = '/api/auth';
|
|
|
|
|
|
- // // mq config
|
|
|
|
- // config.amqp = {
|
|
|
|
- // client: {
|
|
|
|
- // hostname: '127.0.0.1',
|
|
|
|
- // username: 'wy',
|
|
|
|
- // password: '1',
|
|
|
|
- // vhost: 'smart',
|
|
|
|
- // },
|
|
|
|
- // app: true,
|
|
|
|
- // agent: true,
|
|
|
|
- // };
|
|
|
|
-
|
|
|
|
- // // redis config
|
|
|
|
- // config.redis = {
|
|
|
|
- // client: {
|
|
|
|
- // port: 6379, // Redis port
|
|
|
|
- // host: '127.0.0.1', // Redis host
|
|
|
|
- // password: null,
|
|
|
|
- // db: 0,
|
|
|
|
- // },
|
|
|
|
- // };
|
|
|
|
|
|
+ // mq config
|
|
|
|
+ config.amqp = {
|
|
|
|
+ client: {
|
|
|
|
+ hostname: '127.0.0.1',
|
|
|
|
+ username: 'wy',
|
|
|
|
+ password: '1',
|
|
|
|
+ vhost: 'smart',
|
|
|
|
+ },
|
|
|
|
+ app: true,
|
|
|
|
+ agent: true,
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ // redis config
|
|
|
|
+ config.redis = {
|
|
|
|
+ client: {
|
|
|
|
+ port: 6379, // Redis port
|
|
|
|
+ host: '127.0.0.1', // Redis host
|
|
|
|
+ password: null,
|
|
|
|
+ db: 0,
|
|
|
|
+ },
|
|
|
|
+ };
|
|
|
|
|
|
config.mongoose = {
|
|
config.mongoose = {
|
|
url: 'mongodb://localhost:27017/train',
|
|
url: 'mongodb://localhost:27017/train',
|