config.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. servers: [
  55. "58.215.52.59:10003",
  56. "58.215.52.21:10002",
  57. "14.215.104.240:10003"
  58. ],
  59. username: "headlines_admin",
  60. password: "mtB78u3890x1",
  61. replicaSet: "taptapstarqqmongo",
  62. dbname: "taptapstar_home_headlines"
  63. }
  64. }
  65. module.exports = {
  66. RedisConf,
  67. CommonConf,
  68. MongoConf,
  69. ReplSetConf,
  70. QQReplSetConf,
  71. HLReplSetConf
  72. }