config.uat.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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: '127.0.0.1',
  16. // 端口号
  17. port: '3306',
  18. // 用户名
  19. user: 'zh_calc',
  20. // 密码
  21. password: 'zh@)!(3850calc',
  22. // 数据库名
  23. database: 'calculation',
  24. multipleStatements: true,
  25. },
  26. // 是否加载到 app 上,默认开启
  27. app: true,
  28. // 是否加载到 agent 上,默认关闭
  29. agent: false,
  30. };
  31. // 表名前缀
  32. config.tablePrefix = 'zh_';
  33. // redis设置
  34. config.redis = {
  35. client: {
  36. host: '127.0.0.1',
  37. port: '6379',
  38. password: 'zh@)!(3850calc',
  39. db: '0',
  40. },
  41. agent: true,
  42. version: '1.0.0',
  43. };
  44. // session配置
  45. config.session = {
  46. key: 'ZHC_SESS',
  47. maxAge: 7 * 24 * 3600 * 1000, // 7天
  48. httpOnly: true,
  49. encrypt: true,
  50. //renew: true, // session临近过期更新过期时间
  51. rolling: true, // 每次都更新session有效期
  52. };
  53. // wx扫码登录
  54. config.wxCode = {
  55. appid: 'wx5320cd30cecdbd68',
  56. appsecret: 'ca7c0dbd9e94dc3b1c3b0e73865743f4',
  57. };
  58. config.oss = {
  59. clients: {
  60. signPdf: {
  61. bucket: 'measure-sign-pdf',
  62. },
  63. fujian: {
  64. bucket: 'jiliang-qa',
  65. },
  66. },
  67. default: {
  68. accessKeyId: 'LTAIALMjBHOs9PLA',
  69. accessKeySecret: 'HSnULQs87wAJhcziAdyRv3GZ4EYctc',
  70. endpoint: 'oss-cn-shenzhen-internal.aliyuncs.com',
  71. timeout: '60s',
  72. },
  73. };
  74. config.fujianOssPath = 'https://jiliang-qa-oss.smartcost.com.cn/uat/';
  75. config.fujianOssFolder = 'uat/';
  76. config.syncUrl = 'http://sync.jluat.smartcost.com.cn/';
  77. // 项目管理跳转路径
  78. config.managementPath = 'http://pmqa.smartcost.com.cn';
  79. config.managementProxyPath = 'http://192.168.1.76:2020';
  80. return config;
  81. };