config.uat.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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.hisOssPath = 'uat/';
  59. config.stashOssPath = 'stash/uat/';
  60. config.oss = {
  61. clients: {
  62. signPdf: {
  63. bucket: 'measure-sign-pdf',
  64. },
  65. fujian: {
  66. bucket: 'jiliang-qa',
  67. },
  68. his: {
  69. bucket: 'jiliang-his',
  70. }
  71. },
  72. default: {
  73. accessKeyId: 'LTAIALMjBHOs9PLA',
  74. accessKeySecret: 'HSnULQs87wAJhcziAdyRv3GZ4EYctc',
  75. endpoint: 'oss-cn-shenzhen-internal.aliyuncs.com',
  76. timeout: '60s',
  77. },
  78. };
  79. config.fujianOssPath = 'https://jiliang-qa-oss.smartcost.com.cn/uat/';
  80. config.fujianOssFolder = 'uat/';
  81. config.syncUrl = 'https://jluat-sync.smartcost.com.cn/';
  82. // 项目管理跳转路径
  83. config.managementPath = 'https://pmuat.smartcost.com.cn';
  84. config.managementProxyPath = 'https://pmuat.smartcost.com.cn';
  85. return config;
  86. };