config.default.js 863 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 + '_1629889590707_2425';
  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: 6199,
  23. },
  24. };
  25. config.multipart = {
  26. mode: 'file',
  27. };
  28. config.serverPort = '8090';
  29. config.serverIp = 'baoan.fwedzgc.com'; // 106.12.161.200;222.169.249.162
  30. // config.serverPort = '8001';
  31. // config.serverIp = 'localhost'; // 106.12.161.200
  32. return {
  33. ...config,
  34. ...userConfig,
  35. };
  36. };