config.js 795 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. const RedisConf = {
  2. R1 : {
  3. port: 6380,
  4. host: "61.160.36.19",
  5. password: "33fa134e11b",
  6. db: 5
  7. }
  8. }
  9. const CommonConf = {
  10. }
  11. /**
  12. * 测试环境MongoDB
  13. */
  14. const MongoConf = {
  15. R1 : {
  16. port: 27017,
  17. host: "61.147.187.176",
  18. username: "ojiatest",
  19. password: "ojia305",
  20. dbname: "allstar_home"
  21. }
  22. }
  23. /**
  24. * 正式环境MongoDB复制集
  25. */
  26. const ReplSetConf = {
  27. R1 : {
  28. servers: [
  29. "58.215.52.59:10001",
  30. "58.215.52.21:10001",
  31. "14.215.104.240:10001"
  32. ],
  33. username: "hyqmx_rw",
  34. password: "55wn2NK37UrB",
  35. replicaSet: "hyqmxmongo",
  36. dbname: "hyqmx"
  37. }
  38. }
  39. module.exports = {
  40. RedisConf,
  41. CommonConf,
  42. MongoConf,
  43. ReplSetConf
  44. }