123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- /* eslint valid-jsdoc: "off" */
- 'use strict';
- /**
- * @param {Egg.EggAppInfo} appInfo app info
- */
- module.exports = appInfo => {
- /**
- * 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 + '_1663725200927_6862';
- // add your middleware config here
- config.middleware = [];
- // add your user config here
- const userConfig = {
- // myAppName: 'egg',
- };
- // 进程设置
- config.cluster = {
- listen: {
- port: 11011,
- },
- };
- // 路由设置
- config.routePrefix = '/disk/api';
- config.dirRoot = 'D:\\temp\\temp';
- // 检查的盘符
- config.checkDrive = 'D:';
- // 占用空间警告线
- config.redLine = 80; // 百分制
- // 邮件发送人
- config.sender = {
- user: 'myhope1977@163.com', // 邮箱账号
- pass: 'RZGYKLOQUTRCNLEO', // 邮箱stmp授权码
- };
- // 邮件接收人,多个人用 "," 分隔
- config.receiver = '402788946@qq.com';
- return {
- ...config,
- ...userConfig,
- };
- };
|