config.remoteqa.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. 'use strict';
  2. /**
  3. * 开发环境相关配置
  4. *
  5. * @author CaiAoLin
  6. * @date 2017/8/29
  7. * @version
  8. */
  9. module.exports = appInfo => {
  10. const config = {};
  11. // 数据库配置
  12. config.mysql = {
  13. client: {
  14. // host
  15. host: 'smartcost.in.8866.org',
  16. // 端口号
  17. port: '26905',
  18. // 用户名
  19. user: 'zh_dev',
  20. // 密码
  21. password: 'zongheng2019',
  22. // 数据库名
  23. database: 'calculation',
  24. // database: 'calc_copy_pro',
  25. },
  26. // 是否加载到 app 上,默认开启
  27. app: true,
  28. // 是否加载到 agent 上,默认关闭
  29. agent: false,
  30. };
  31. // redis设置
  32. config.redis = {
  33. client: {
  34. host: 'smartcost.in.8866.org',
  35. port: '26906',
  36. password: 'zongheng2019',
  37. db: '0',
  38. },
  39. agent: true,
  40. };
  41. // session配置
  42. config.session = {
  43. key: 'ZHC_SESS',
  44. maxAge: 7 * 24 * 3600 * 1000, // 7天
  45. httpOnly: true,
  46. encrypt: true,
  47. //renew: true, // session临近过期更新过期时间
  48. rolling: true, // 每次都更新session有效期
  49. };
  50. config.min = false;
  51. return config;
  52. };