12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- /* 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 + '_1665483162811_546';
- // add your middleware config here
- config.middleware = [];
- // add your user config here
- const userConfig = {
- // myAppName: 'egg',
- };
- // redis设置
- config.redis = {
- client: {
- port: 6379, // Redis port
- host: '127.0.0.1', // Redis host
- password: '123456',
- db: 9,
- },
- };
- // 进程设置
- config.cluster = {
- listen: {
- port: 14002,
- },
- };
- // 数据库设置
- config.dbName = 'service-email';
- config.mongoose = {
- url: `mongodb://localhost:27017/${config.dbName}`,
- options: {
- user: 'admin',
- pass: 'admin',
- authSource: 'admin',
- useNewUrlParser: true,
- useCreateIndex: true,
- },
- };
- // 邮件发送人
- config.sender = {
- free: {
- from: '福瑞科技',
- user: 'myhope1977@163.com', // 邮箱账号
- pass: 'RZGYKLOQUTRCNLEO', // 邮箱stmp授权码
- },
- tehq: {
- from: '天恩活泉',
- user: 'gzsdcsmfzyxgs@163.com',
- pass: 'URWCTDJNYKVOBBRN',
- },
- jcyjdtglpt: {
- from: '基础研究动态管理平台',
- user: 'myhope1977@163.com',
- pass: 'RZGYKLOQUTRCNLEO',
- },
- shoppingOne: {
- from: '丽姐品牌内衣店',
- user: 'myhope1977@163.com', // 邮箱账号
- pass: 'RZGYKLOQUTRCNLEO', // 邮箱stmp授权码
- },
- wx: {
- from: 'wx服务',
- user: 'myhope1977@163.com', // 邮箱账号
- pass: 'RZGYKLOQUTRCNLEO', // 邮箱stmp授权码
- },
- };
- // 开发人员邮箱,","分隔
- config.devPerson = '402788946@qq.com';
- // 路由设置
- config.routePrefix = '/semail/api';
- return {
- ...config,
- ...userConfig,
- };
- };
|