config.default.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* eslint valid-jsdoc: "off" */
  2. 'use strict';
  3. /**
  4. * @param {Egg.EggAppInfo} appInfo app info
  5. */
  6. module.exports = appInfo => {
  7. /**
  8. * built-in config
  9. * @type {Egg.EggAppConfig}
  10. **/
  11. const config = (exports = {});
  12. // use for cookie sign key, should change to your own and keep security
  13. config.keys = appInfo.name + '_1665737297528_5907';
  14. // add your middleware config here
  15. config.middleware = [];
  16. // add your user config here
  17. const userConfig = {
  18. // myAppName: 'egg',
  19. };
  20. // 进程设置
  21. config.cluster = {
  22. listen: {
  23. port: 14003,
  24. },
  25. };
  26. // 项目配置
  27. config.appConfig = {
  28. free: {
  29. accessKeyId: 'LTAI5tRTS3rXJTgf2Fqp8tGg',
  30. accessKeySecret: 'g6DkQvBA4R7e9BEkPlQLhz683pq1SP',
  31. template: {
  32. bind: {
  33. signName: '长春市福瑞科技有限公司',
  34. templateCode: 'SMS_254730020',
  35. },
  36. },
  37. },
  38. tehq: {
  39. accessKeyId: 'LTAI5tRrgdb7WsECfBEenGSr',
  40. accessKeySecret: 'gbxMvKX1urb0y0m39nV2NYaf3pmXSU',
  41. template: {
  42. bind: {
  43. signName: '天恩活泉',
  44. templateCode: 'SMS_254670650',
  45. },
  46. login: {
  47. signName: '天恩活泉',
  48. templateCode: 'SMS_254680639',
  49. },
  50. },
  51. },
  52. };
  53. // 路由设置
  54. config.routePrefix = '/sms/api';
  55. return {
  56. ...config,
  57. ...userConfig,
  58. };
  59. };