answer-test.toml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. [bm]
  4. addr = "0.0.0.0:6991"
  5. timeout = "1s"
  6. [rpcClient]
  7. [rpcClient.member]
  8. timeout = "1s"
  9. [rpcClient.account]
  10. timeout = "10s"
  11. [mysql]
  12. addr = "127.0.0.1:3306"
  13. dsn = "root:123456@tcp(127.0.0.1:3306)/bilibili_answer?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  14. active = 5
  15. idle = 2
  16. idleTimeout ="4h"
  17. queryTimeout = "1000ms"
  18. execTimeout = "1000ms"
  19. tranTimeout = "2000ms"
  20. [mysql.breaker]
  21. window = "3s"
  22. sleep = "100ms"
  23. bucket = 10
  24. ratio = 0.5
  25. request = 100
  26. [memcache]
  27. name = "answer"
  28. proto = "tcp"
  29. addr = "172.18.33.60:11234"
  30. idle = 5
  31. active = 10
  32. dialTimeout = "1s"
  33. readTimeout = "1s"
  34. writeTimeout = "1s"
  35. idleTimeout = "10s"
  36. expire = "24h"
  37. answerBolckExpire = "12h"
  38. [redis]
  39. name = "answer"
  40. proto = "tcp"
  41. addr = "127.0.0.1:6379"
  42. idle = 10
  43. active = 10
  44. dialTimeout = "1s"
  45. readTimeout = "1s"
  46. writeTimeout = "1s"
  47. idleTimeout = "10s"
  48. expire = "720h"
  49. ansCountExpire = "12h"
  50. ansAddFlagCountExpire = "1m"
  51. [Captcha]
  52. key = "c1a1cb2d89c33794"
  53. secret = "dda47eeca111e03e6845017505baea13"
  54. dial = "500ms"
  55. timeout = "1s"
  56. keepAlive = "60s"
  57. timer = 1000
  58. [Captcha.breaker]
  59. window ="3s"
  60. sleep ="100ms"
  61. bucket = 10
  62. ratio = 0.5
  63. request = 100
  64. [httpClient]
  65. [httpClient.normal]
  66. dial = "1s"
  67. timeout = "1s"
  68. keepAlive = "60s"
  69. timer = 10
  70. key = "53e2fa226f5ad348"
  71. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  72. [httpClient.normal.breaker]
  73. window = "3s"
  74. sleep = "100ms"
  75. bucket = 10
  76. ratio = 0.5
  77. request = 100
  78. [httpClient.slow]
  79. dial = "500ms"
  80. timeout = "1s"
  81. keepAlive = "60s"
  82. timer = 10
  83. key = "zxnh4k92dwe61t27"
  84. secret = "dnu3bwpxyswqwf1ixpsczthury1nqiew"
  85. [httpClient.slow.breaker]
  86. window = "3s"
  87. sleep = "100ms"
  88. bucket = 10
  89. ratio = 0.5
  90. request = 100
  91. [host]
  92. api = "http://api.bilibili.co"
  93. geetest = "http://api.geetest.com"
  94. account = "http://account.bilibili.com"
  95. extraIds = "http://172.18.33.147:3000/laogai/question/exam/danmu"
  96. [geetest]
  97. [geetest.PC]
  98. captchaId = "a703e7d11eda930ca87be02c1a80ff97"
  99. privateKey = "df5eacf78b4afc79a052f199939e946a"
  100. [geetest.H5]
  101. captchaId = "bf666f87e5cca24ddb4c1dbeb70912b8"
  102. privateKey = "d1e0bc5eadc754f8cd522c6fed5e175d"
  103. [infoc2]
  104. taskID = "000078"
  105. proto = "tcp"
  106. addr = "172.19.100.20:5401"
  107. chanSize = 1024
  108. [dataBus]
  109. [dataBus.extraAnswer]
  110. key = "0QEO9F8JuuIxZzNDvklH"
  111. secret= "0QEO9F8JuuIxZzNDvklI"
  112. group= "AccAnswer-BigData-P"
  113. topic= "AccAnswer-T"
  114. action="pub"
  115. name = "answer-interface/databus"
  116. proto = "tcp"
  117. addr = "172.16.33.158:6205"
  118. idle = 1
  119. active = 1
  120. dialTimeout = "1s"
  121. readTimeout = "1s"
  122. writeTimeout = "1s"
  123. idleTimeout = "10s"
  124. [dataBus.accountFormal]
  125. key = "875d05ffa843e297"
  126. secret= "24d052bae2247fc59ee925d46ffd61e2"
  127. group= "Answer-MainAccountLaw-P"
  128. topic= "Answer-T"
  129. action="pub"
  130. name = "answer-interface/databus"
  131. proto = "tcp"
  132. addr = "172.16.33.158:6205"
  133. idle = 1
  134. active = 1
  135. dialTimeout = "1s"
  136. readTimeout = "1s"
  137. writeTimeout = "1s"
  138. idleTimeout = "10s"
  139. [antispam]
  140. on=true
  141. second=2
  142. n=1
  143. hour=12
  144. m=5
  145. [antispam.redis]
  146. name = "answer"
  147. proto = "tcp"
  148. addr = "172.16.33.54:6379"
  149. idle = 100
  150. active = 100
  151. dialTimeout = "500ms"
  152. readTimeout = "1s"
  153. writeTimeout = "1s"
  154. idleTimeout = "80s"
  155. expire = "10m"
  156. [answer]
  157. debug=true
  158. duration=30
  159. blockedTimestamp=0
  160. baseNum = 4
  161. proNum = 5
  162. baseExtraPassNum=5
  163. baseExtraNoPassNum=5
  164. baseExtraScore=2
  165. baseExtraPassCount=3
  166. extraNum = 10
  167. maxRetries = 10
  168. captchaTokenURL = "http://api.bilibili.co/x/internal/v1/captcha/token"
  169. captchaVerifyURL = "http://api.bilibili.co/x/internal/v1/captcha/verify"
  170. [question]
  171. tcQestTick = "1m"
  172. rankQestTick = "10m"
  173. [backoff]
  174. maxDelay = 60
  175. baseDelay = 5
  176. factor = 1.6
  177. jitter = 0.2