config.uat.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. // 企业微信代开发模板信息(uat版本)
  59. config.qywx = {
  60. suiteID: 'dka00967439b7dcdad',
  61. suiteSecret: 'w_i_VDjKcGquwWCZdpFEcxK52TvaI2z6eXvZB28Hm84',
  62. token: 'ab0IV95Hm5exQ',
  63. encodingAESKey: 'hNuILriaRQZYaNiUNCCyUphBO38N5VXkP135IsRAEDX',
  64. };
  65. config.hisOssPath = 'uat/';
  66. config.stashOssPath = 'stash/uat/';
  67. config.oss = {
  68. clients: {
  69. signPdf: {
  70. bucket: 'measure-sign-pdf',
  71. },
  72. fujian: {
  73. bucket: 'jiliang-qa',
  74. },
  75. his: {
  76. bucket: 'jiliang-his',
  77. }
  78. },
  79. default: {
  80. accessKeyId: 'LTAIALMjBHOs9PLA',
  81. accessKeySecret: 'HSnULQs87wAJhcziAdyRv3GZ4EYctc',
  82. endpoint: 'oss-cn-shenzhen-internal.aliyuncs.com',
  83. timeout: '60s',
  84. },
  85. };
  86. config.fujianOssPath = 'https://jiliang-qa-oss-cdn.smartcost.com.cn/uat/';
  87. config.fujianOssFolder = 'uat/';
  88. config.syncUrl = 'https://jluat-sync.smartcost.com.cn/';
  89. // 项目管理跳转路径
  90. config.managementPath = 'https://pmuat.smartcost.com.cn';
  91. config.managementProxyPath = 'https://pmuat.smartcost.com.cn';
  92. return config;
  93. };