|
@@ -0,0 +1,88 @@
|
|
|
+
|
|
|
+
|
|
|
+'use strict';
|
|
|
+const ip = 'host.docker.internal'
|
|
|
+
|
|
|
+ * @param {Egg.EggAppInfo} appInfo app info
|
|
|
+ */
|
|
|
+module.exports = appInfo => {
|
|
|
+
|
|
|
+ * built-in config
|
|
|
+ * @type {Egg.EggAppConfig}
|
|
|
+ **/
|
|
|
+ const config = (exports = {});
|
|
|
+
|
|
|
+
|
|
|
+ config.keys = appInfo.name + '_1665483162811_546';
|
|
|
+
|
|
|
+
|
|
|
+ config.middleware = [];
|
|
|
+
|
|
|
+
|
|
|
+ const userConfig = {
|
|
|
+
|
|
|
+ };
|
|
|
+
|
|
|
+ config.redis = {
|
|
|
+ client: {
|
|
|
+ port: 6379,
|
|
|
+ host: ip,
|
|
|
+ password: '123456',
|
|
|
+ db: 9,
|
|
|
+ },
|
|
|
+ };
|
|
|
+
|
|
|
+ config.cluster = {
|
|
|
+ listen: {
|
|
|
+ port: 14002,
|
|
|
+ },
|
|
|
+ };
|
|
|
+
|
|
|
+ config.dbName = 'service-email';
|
|
|
+ config.mongoose = {
|
|
|
+ url: `mongodb://${ip}:27017/${config.dbName}`,
|
|
|
+ options: {
|
|
|
+ user: 'admin',
|
|
|
+ pass: 'admin',
|
|
|
+ authSource: 'admin',
|
|
|
+ useNewUrlParser: true,
|
|
|
+ useCreateIndex: true,
|
|
|
+ },
|
|
|
+ };
|
|
|
+
|
|
|
+ config.sender = {
|
|
|
+ free: {
|
|
|
+ from: '福瑞科技',
|
|
|
+ user: 'myhope1977@163.com',
|
|
|
+ pass: 'RZGYKLOQUTRCNLEO',
|
|
|
+ },
|
|
|
+ tehq: {
|
|
|
+ from: '天恩活泉',
|
|
|
+ user: 'gzsdcsmfzyxgs@163.com',
|
|
|
+ pass: 'URWCTDJNYKVOBBRN',
|
|
|
+ },
|
|
|
+ jcyjdtglpt: {
|
|
|
+ from: '基础研究动态管理平台',
|
|
|
+ user: 'myhope1977@163.com',
|
|
|
+ pass: 'RZGYKLOQUTRCNLEO',
|
|
|
+ },
|
|
|
+ shoppingOne: {
|
|
|
+ from: '丽姐品牌内衣店',
|
|
|
+ user: 'myhope1977@163.com',
|
|
|
+ pass: 'RZGYKLOQUTRCNLEO',
|
|
|
+ },
|
|
|
+ wx: {
|
|
|
+ from: 'wx服务',
|
|
|
+ user: 'myhope1977@163.com',
|
|
|
+ pass: 'RZGYKLOQUTRCNLEO',
|
|
|
+ },
|
|
|
+ };
|
|
|
+
|
|
|
+ config.devPerson = '402788946@qq.com';
|
|
|
+
|
|
|
+ config.routePrefix = '/semail/api';
|
|
|
+ return {
|
|
|
+ ...config,
|
|
|
+ ...userConfig,
|
|
|
+ };
|
|
|
+};
|