config.js.bak 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. const QQReplSetConf = {
  40. R1 : {
  41. servers: [
  42. "58.215.52.59:10003",
  43. "58.215.52.21:10002",
  44. "14.215.104.240:10003"
  45. ],
  46. username: "taptapstarqq_mongo_rw",
  47. password: "gW0CxPhL6I56",
  48. replicaSet: "taptapstarqqmongo",
  49. dbname: "taptapstarqq_mongo"
  50. }
  51. }
  52. const HLReplSetConf = {
  53. R1 : {
  54. port: 10003,
  55. host: "14.215.104.240",
  56. username: "headlines_admin",
  57. password: "mtB78u3890x1",
  58. dbname: "taptapstar_home_headlines"
  59. }
  60. }
  61. module.exports = {
  62. RedisConf,
  63. CommonConf,
  64. MongoConf,
  65. ReplSetConf,
  66. QQReplSetConf,
  67. HLReplSetConf
  68. }