config.qa.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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: 'calc2019',
  22. // 数据库名
  23. database: 'calculation',
  24. },
  25. // 是否加载到 app 上,默认开启
  26. app: true,
  27. // 是否加载到 agent 上,默认关闭
  28. agent: false,
  29. };
  30. // 表名前缀
  31. config.tablePrefix = 'zh_';
  32. // redis设置
  33. config.redis = {
  34. client: {
  35. host: '127.0.0.1',
  36. port: '6379',
  37. password: 'zongheng2019',
  38. db: '0',
  39. },
  40. agent: true,
  41. version: '1.0.0',
  42. };
  43. // session配置
  44. config.session = {
  45. key: 'ZHC_SESS',
  46. maxAge: 7 * 24 * 3600 * 1000, // 7天
  47. httpOnly: true,
  48. encrypt: true,
  49. //renew: true, // session临近过期更新过期时间
  50. rolling: true, // 每次都更新session有效期
  51. };
  52. config.hisOssPath = 'qa/';
  53. config.stashOssPath = 'stash/qa/';
  54. config.oss = {
  55. clients: {
  56. signPdf: {
  57. bucket: 'measure-sign-pdf',
  58. },
  59. fujian: {
  60. bucket: 'jiliang-qa',
  61. },
  62. his: {
  63. bucket: 'jiliang-his',
  64. }
  65. },
  66. default: {
  67. accessKeyId: 'LTAIALMjBHOs9PLA',
  68. accessKeySecret: 'HSnULQs87wAJhcziAdyRv3GZ4EYctc',
  69. endpoint: 'oss-cn-shenzhen.aliyuncs.com',
  70. timeout: '60s',
  71. },
  72. };
  73. config.fujianOssPath = 'https://jiliang-qa-oss-cdn.smartcost.com.cn/qa/';
  74. config.fujianOssFolder = 'qa/';
  75. // 自带接口系统地址
  76. config.syncUrl = 'http://jlqa.smartcost.com.cn:7169/';
  77. config.is_debug = true;
  78. // 项目管理跳转路径
  79. config.managementPath = 'http://pmqa.smartcost.com.cn';
  80. config.managementProxyPath = 'http://192.168.1.76:2020';
  81. config.url3f = 'http://jlqa.smartcost.com.cn:7007';
  82. return config;
  83. };