You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
2.9 KiB

2 years ago
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : localhost
  4. Source Server Type : MongoDB
  5. Source Server Version : 40202
  6. Source Host : localhost:27017
  7. Source Schema : febs_cloud_route
  8. Target Server Type : MongoDB
  9. Target Server Version : 40202
  10. File Encoding : 65001
  11. Date: 14/01/2020 11:04:22
  12. */
  13. // ----------------------------
  14. // Collection structure for blackList
  15. // ----------------------------
  16. db.getCollection("blackList").drop();
  17. db.createCollection("blackList");
  18. // ----------------------------
  19. // Documents of blackList
  20. // ----------------------------
  21. db.getCollection("blackList").insert([ {
  22. _id: ObjectId("5e1425e7a548e77106e43b40"),
  23. ip: "",
  24. requestUri: "/**/actuator/**",
  25. requestMethod: "ALL",
  26. limitFrom: "",
  27. limitTo: "",
  28. location: "",
  29. status: "1",
  30. createTime: "2020-01-07 14:32:07",
  31. _class: "cc.mrbird.febs.gateway.entity.BlackList"
  32. } ]);
  33. // ----------------------------
  34. // Collection structure for blockLog
  35. // ----------------------------
  36. db.getCollection("blockLog").drop();
  37. db.createCollection("blockLog");
  38. // ----------------------------
  39. // Collection structure for rateLimitLog
  40. // ----------------------------
  41. db.getCollection("rateLimitLog").drop();
  42. db.createCollection("rateLimitLog");
  43. // ----------------------------
  44. // Collection structure for rateLimitRule
  45. // ----------------------------
  46. db.getCollection("rateLimitRule").drop();
  47. db.createCollection("rateLimitRule");
  48. // ----------------------------
  49. // Documents of rateLimitRule
  50. // ----------------------------
  51. db.getCollection("rateLimitRule").insert([ {
  52. _id: ObjectId("5e1abc9ef51708123d94b1f8"),
  53. requestUri: "/auth/captcha",
  54. requestMethod: "GET",
  55. limitFrom: "06:00:00",
  56. limitTo: "22:30:00",
  57. count: "3",
  58. intervalSec: "10",
  59. status: "1",
  60. createTime: "2020-01-12 14:28:46",
  61. _class: "cc.mrbird.febs.gateway.enhance.entity.RateLimitRule"
  62. } ]);
  63. // ----------------------------
  64. // Collection structure for routeLog
  65. // ----------------------------
  66. db.getCollection("routeLog").drop();
  67. db.createCollection("routeLog");
  68. // ----------------------------
  69. // Collection structure for routeUser
  70. // ----------------------------
  71. db.getCollection("routeUser").drop();
  72. db.createCollection("routeUser");
  73. // ----------------------------
  74. // Documents of routeUser
  75. // ----------------------------
  76. db.getCollection("routeUser").insert([ {
  77. _id: ObjectId("5e1d2ee055165e6516c23057"),
  78. username: "Jack",
  79. password: "$2a$10$NBv548VFJ6OyTkxcHy9o5uRNaYSMPHWHW9fL3ZRlS1Hy5kxlR1qdy",
  80. roles: "user",
  81. createTime: "2020-01-14 11:00:48",
  82. _class: "cc.mrbird.febs.gateway.enhance.entity.RouteUser"
  83. } ]);
  84. db.getCollection("routeUser").insert([ {
  85. _id: ObjectId("5e1d2eee55165e6516c23058"),
  86. username: "admin",
  87. password: "$2a$10$WeUSapCOv8uDb2MrUu19cOo6O.Xb4PAJN/4GdAfIcgJ3SAWw.NY3m",
  88. roles: "admin",
  89. createTime: "2020-01-14 11:01:02",
  90. _class: "cc.mrbird.febs.gateway.enhance.entity.RouteUser"
  91. } ]);