config.js 817 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: "taptapstar_home"
  21. }
  22. }
  23. /**
  24. * 正式环境MongoDB复制集
  25. */
  26. const ReplSetConf = {
  27. R1 : {
  28. servers: [
  29. "58.215.52.59:10002",
  30. "58.215.52.21:10003",
  31. "14.215.104.240:10002"
  32. ],
  33. username: "taptapstar_rw",
  34. password: "o890usVM1e0",
  35. replicaSet: "taptapstarmongo",
  36. dbname: "taptapstar_home"
  37. }
  38. }
  39. module.exports = {
  40. RedisConf,
  41. CommonConf,
  42. MongoConf,
  43. ReplSetConf
  44. }