config.remoteprod.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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: 'rm-wz9ae9t6qopwrday6po.mysql.rds.aliyuncs.com',
  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: '192.168.1.76',
  37. port: '6379',
  38. password: 'zongheng2019',
  39. db: '0',
  40. },
  41. agent: true,
  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.oss = {
  53. clients: {
  54. signPdf: {
  55. bucket: 'measure-sign-pdf',
  56. },
  57. fujian: {
  58. bucket: 'jiliang-qa',
  59. },
  60. },
  61. default: {
  62. accessKeyId: 'LTAIALMjBHOs9PLA',
  63. accessKeySecret: 'HSnULQs87wAJhcziAdyRv3GZ4EYctc',
  64. endpoint: 'oss-cn-shenzhen.aliyuncs.com',
  65. timeout: '60s',
  66. },
  67. };
  68. config.fujianOssPath = 'https://jiliang-qa-oss.smartcost.com.cn/uat/';
  69. config.fujianOssFolder = 'uat/';
  70. return config;
  71. };