|
@@ -7,14 +7,13 @@
|
|
|
*/
|
|
|
module.exports = appInfo => {
|
|
|
/**
|
|
|
- * built-in config
|
|
|
- * @type {Egg.EggAppConfig}
|
|
|
- **/
|
|
|
+ * built-in config
|
|
|
+ * @type {Egg.EggAppConfig}
|
|
|
+ **/
|
|
|
const config = (exports = {});
|
|
|
|
|
|
// use for cookie sign key, should change to your own and keep security
|
|
|
- config.keys =
|
|
|
- appInfo.name + '_1579225760252_7743';
|
|
|
+ config.keys = appInfo.name + '_1579225760252_7743';
|
|
|
|
|
|
// add your middleware config here
|
|
|
config.middleware = [];
|
|
@@ -27,28 +26,27 @@ module.exports = appInfo => {
|
|
|
// add your config here
|
|
|
config.cluster = {
|
|
|
listen: {
|
|
|
- port: 9005,
|
|
|
+ port: 9009,
|
|
|
},
|
|
|
};
|
|
|
|
|
|
config.mongoose = {
|
|
|
url: 'mongodb://localhost:27017/platform',
|
|
|
options: {
|
|
|
- // user: 'demo',
|
|
|
- // pass: 'demo',
|
|
|
- // authSource: 'admin',
|
|
|
- // useNewUrlParser: true,
|
|
|
- // useCreateIndex: true,
|
|
|
- // useUnifiedTopology: true,
|
|
|
+ user: 'admin',
|
|
|
+ pass: 'admin',
|
|
|
+ authSource: 'admin',
|
|
|
+ useNewUrlParser: true,
|
|
|
+ useCreateIndex: true,
|
|
|
+ useUnifiedTopology: true,
|
|
|
},
|
|
|
};
|
|
|
- // mq config
|
|
|
config.amqp = {
|
|
|
client: {
|
|
|
hostname: '127.0.0.1',
|
|
|
- username: 'live',
|
|
|
- password: '1qaz2wsx',
|
|
|
- vhost: 'live',
|
|
|
+ username: 'visit',
|
|
|
+ password: 'visit',
|
|
|
+ vhost: 'visit',
|
|
|
},
|
|
|
app: true,
|
|
|
agent: true,
|