|
@@ -6,11 +6,11 @@ const { jwt } = require('./config.secret');
|
|
|
* @param {Egg.EggAppInfo} appInfo app info
|
|
|
*/
|
|
|
module.exports = appInfo => {
|
|
|
-/**
|
|
|
- * built-in config
|
|
|
- * @type {Egg.EggAppConfig}
|
|
|
- **/
|
|
|
- const config = exports = {};
|
|
|
+ /**
|
|
|
+ * 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';
|
|
@@ -20,7 +20,7 @@ module.exports = appInfo => {
|
|
|
|
|
|
// add your user config here
|
|
|
const userConfig = {
|
|
|
- // myAppName: 'egg',
|
|
|
+ // myAppName: 'egg',
|
|
|
};
|
|
|
|
|
|
// add your config here
|
|
@@ -45,7 +45,15 @@ module.exports = appInfo => {
|
|
|
expiresIn: '1d',
|
|
|
issuer: 'servicezhwl',
|
|
|
};
|
|
|
-
|
|
|
+ // redis config
|
|
|
+ config.redis = {
|
|
|
+ client: {
|
|
|
+ port: 6379, // Redis port
|
|
|
+ host: '127.0.0.1', // Redis host
|
|
|
+ password: 123456,
|
|
|
+ db: 0,
|
|
|
+ },
|
|
|
+ };
|
|
|
// config.amqp = {
|
|
|
// client: {
|
|
|
// hostname: '127.0.0.1',
|