web-goblin-test.toml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. [log]
  2. dir = "/data/log/web-goblin/"
  3. [app]
  4. key = "7c7ac0db1aa05587"
  5. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  6. [memcache]
  7. name = "web-goblin"
  8. proto = "tcp"
  9. addr = ""
  10. active = 50
  11. idle = 10
  12. dialTimeout = "1s"
  13. readTimeout = "1s"
  14. writeTimeout = "1s"
  15. idleTimeout = "10s"
  16. [db]
  17. [db.goblin]
  18. addr = "172.22.34.101:3308"
  19. dsn = "goblin_reader:apKhkA0X1L6UnWZ25rGcfVo4FizYQ3I9@tcp(172.22.34.101:3308)/bilibili_goblin?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  20. active = 5
  21. idle = 2
  22. idleTimeout = "4h"
  23. queryTimeout = "100ms"
  24. execTimeout = "100ms"
  25. tranTimeout = "200ms"
  26. [db.goblin.breaker]
  27. window = "3s"
  28. sleep = "100ms"
  29. bucket = 10
  30. ratio = 0.5
  31. request = 100
  32. [db.show]
  33. addr = "172.16.33.205:3308"
  34. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_show?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  35. active = 5
  36. idle = 2
  37. idleTimeout = "4h"
  38. queryTimeout = "100ms"
  39. execTimeout = "100ms"
  40. tranTimeout = "200ms"
  41. [db.show.breaker]
  42. window = "3s"
  43. sleep = "100ms"
  44. bucket = 10
  45. ratio = 0.5
  46. request = 100
  47. [redis]
  48. name = "web-goblin"
  49. proto = "tcp"
  50. addr = "172.22.33.137:6819"
  51. idle = 10
  52. active = 10
  53. dialTimeout = "1s"
  54. readTimeout = "1s"
  55. writeTimeout = "1s"
  56. idleTimeout = "10s"
  57. [httpclient]
  58. key = "6aa4286456d16b97"
  59. secret = "351cf022e1ae8296109c3c524faafcc8"
  60. dial = "1s"
  61. timeout = "1s"
  62. keepAlive = "60s"
  63. timer = 1000
  64. [tagRPC]
  65. timeout = "1s"
  66. [suitRPC]
  67. timeout = "1s"
  68. [archiveRPC]
  69. timeout = "1s"
  70. [rule]
  71. gid = 6
  72. chCardInterval = "1m"
  73. [host]
  74. wechat = "https://api.weixin.qq.com"
  75. pgcURI = "http://bangumi.bilibili.co"
  76. [wechat]
  77. appid = "wx7564fd5313d24844"
  78. secret = "7f19aa432134132bd15248863254f117"
  79. [[pendants]]
  80. pid = 1
  81. level = 7
  82. [[pendants]]
  83. pid = 2
  84. level = 15
  85. [[pendants]]
  86. pid = 3
  87. level = 28
  88. [searchClient]
  89. key = "6aa4286456d16b97"
  90. secret = "351cf022e1ae8296109c3c524faafcc8"
  91. dial = "2s"
  92. timeout = "30s"
  93. keepAlive = "60s"
  94. timer = 1000
  95. [outSearch]
  96. rspan = 3600
  97. acPgcFull = ["youku","iqiyi","tencent","acfun"]
  98. acPgcIncre = ["youku","iqiyi","tencent","acfun"]
  99. acUgcFull = ["youku","iqiyi","tencent","acfun"]
  100. acUgcIncre = ["youku","iqiyi","tencent","acfun"]
  101. dealCommFull = 100
  102. dealLikeFull = 200
  103. [recruit]
  104. mokaURI = "https://api.mokahr.com"
  105. orgid = "bilibili"