config.js 883 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. const MongoConf = {
  12. R1 : {
  13. port: 27017,
  14. host: "61.147.187.176",
  15. username: "ojiatest",
  16. password: "ojia305",
  17. dbname: "allstar_home"
  18. },
  19. R2: {
  20. port: 10001,
  21. host: "58.215.52.59",
  22. username: "hyqmxmongo",
  23. password: "55wn2NK37UrB",
  24. dbname: "hyqmx"
  25. }
  26. }
  27. const ReplSetConf = {
  28. R1 : {
  29. servers: [
  30. "58.215.52.59:10001",
  31. "58.215.52.21:10001",
  32. "14.215.104.240:10001"
  33. ],
  34. replicaSet: "hyqmxmongo",
  35. username: "hyqmx_rw",
  36. password: "55wn2NK37UrB",
  37. dbname: "hyqmx",
  38. }
  39. }
  40. module.exports = {
  41. RedisConf,
  42. CommonConf,
  43. MongoConf,
  44. ReplSetConf
  45. }