config.remoteuat.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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: '47.106.95.114',
  16. // 端口号
  17. port: '3306',
  18. // 用户名
  19. user: 'smartcost',
  20. // 密码
  21. password: 'zongheng_@)!(_jlzf',
  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: '47.106.95.114',
  37. port: '6379',
  38. password: 'zongheng_@)!(_jlzf',
  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. config.oss = {
  54. clients: {
  55. signPdf: {
  56. bucket: 'measure-sign-pdf',
  57. },
  58. fujian: {
  59. bucket: 'jiliang-qa',
  60. },
  61. },
  62. default: {
  63. accessKeyId: 'LTAIALMjBHOs9PLA',
  64. accessKeySecret: 'HSnULQs87wAJhcziAdyRv3GZ4EYctc',
  65. endpoint: 'oss-cn-shenzhen.aliyuncs.com',
  66. timeout: '60s',
  67. },
  68. };
  69. config.fujianOssPath = 'https://jiliang-qa-oss.smartcost.com.cn/uat/';
  70. config.fujianOssFolder = 'uat/';
  71. return config;
  72. };