config.default.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 + '_1624959227229_4804';
  14. // add your middleware config here
  15. config.middleware = [];
  16. // add your user config here
  17. const userConfig = {
  18. // myAppName: 'egg',
  19. };
  20. config.cluster = {
  21. listen: {
  22. port: 19999,
  23. },
  24. };
  25. config.amqp = {
  26. client: {
  27. hostname: '127.0.0.1',
  28. username: 'visit',
  29. password: 'visit',
  30. vhost: 'platform',
  31. },
  32. app: true,
  33. agent: true,
  34. };
  35. config.redis = {
  36. client: {
  37. port: 6379, // Redis port
  38. host: '127.0.0.1', // Redis host
  39. password: '123456',
  40. db: 3,
  41. },
  42. };
  43. // 服务器发布路径
  44. config.baseUrl = 'http://broadcast.waityou24.cn';
  45. config.wxapi = {
  46. baseUrl: 'http://wx.cc-lotus.info', // 微信网关地址
  47. kjzl: {
  48. appid: 'wxcf1b5457939b0932',
  49. appSecret: 'f9a947c4a11f5304fc0bcabef98093d8',
  50. },
  51. jlstcompany: {
  52. appid: 'wx696d9dc3f5c25e42',
  53. appSecret: 'b794494632f448f56a6e722f57b42bc9',
  54. },
  55. jlstcoupons: {
  56. appid: 'wxc98fa7131638a37c',
  57. appSecret: 'f55f1734ee919a8e4eac64aea67f350a',
  58. },
  59. free: {
  60. appid: 'wxdf3ed83c095be97a',
  61. appSecret: 'd85dbe075c090cb12ce416bbda8e698c',
  62. },
  63. };
  64. return {
  65. ...config,
  66. ...userConfig,
  67. };
  68. };