antispam-integration.toml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. # This is a TOML document. Boom.
  2. version = "2.1.0"
  3. user = "nobody"
  4. pid = "/tmp/antispam-service.pid"
  5. dir = "./"
  6. perf = "0.0.0.0:6840"
  7. checkFile = "/data/www/antispam-service.html"
  8. family = "antispam-service"
  9. address = "172.16.0.148"
  10. proc = 32
  11. maxExportRows=100000
  12. maxRegexpCounts=20
  13. [log]
  14. #dir = "/data/log/antispam-service"
  15. [log.agent]
  16. project = "antispam-service"
  17. taskID = "000069"
  18. proto = "unixgram"
  19. addr = "/var/run/lancer/collector.sock"
  20. chanSize = 10240
  21. [appkeytype]
  22. "e7482d29be4a95b8"=[1] #稿件
  23. "33ac033ce123e590"=[4,9] #活动,活动稿件
  24. "7d9f6f6fe2a898e8"=[4,9]
  25. "c05dd4e1638a8af0"=[5] #直播小视频
  26. "37207f2beaebf8d7"=[5] #android
  27. "27eb53fc9058f8c3"=[5] #ios
  28. "b2609538e67ea9cd"=[5] #ios
  29. "33ac033ce123e999"=[6] #封禁信息
  30. "f01da7e4526a8af0"=[7] #公告信息
  31. "58344a540b61aebf"=[8,10] #直播活动、直播公告
  32. "9edfa647fbfde3e2"=[11] #有文画站
  33. [syncopt]
  34. open=true
  35. syncIntervalSec = 100
  36. [gcopt]
  37. open=false
  38. intervalSec = 5
  39. [identify]
  40. whiteAccessKey = "nKUPGzuhU|vTG58H!HPKLlktz{8}3^"
  41. whiteMid = 88889082
  42. [identify.app]
  43. key = "c1a1cb2d89c33794"
  44. secret = "dda47eeca111e03e6845017505baea13"
  45. [identify.host]
  46. auth = "http://uat-passport.bilibili.com"
  47. secret = "http://uat-open.bilibili.com"
  48. [identify.httpClient]
  49. key = "c1a1cb2d89c33794"
  50. secret = "dda47eeca111e03e6845017505baea13"
  51. dial = "1s"
  52. timeout = "1s"
  53. keepAlive = "60s"
  54. timer = 1000
  55. [identify.httpClient.breaker]
  56. window ="10s"
  57. sleep ="100ms"
  58. bucket = 10
  59. ratio = 0.5
  60. request = 100
  61. [identify.httpClient.url]
  62. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  63. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  64. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  65. [tracer]
  66. proto = "udp"
  67. addr = "172.16.33.46:5140"
  68. tag = "platform/antispam-service"
  69. [app]
  70. key = "c1a1cb2d89c33794"
  71. secret = "dda47eeca111e03e6845017505baea13"
  72. [httpClient]
  73. key = "c1a1cb2d89c33794"
  74. secret = "dda47eeca111e03e6845017505baea13"
  75. dial = "500ms"
  76. timeout = "1s"
  77. keepAlive = "60s"
  78. timer = 1000
  79. [httpClient.breaker]
  80. window ="3s"
  81. sleep ="100ms"
  82. bucket = 10
  83. ratio = 0.1
  84. request = 100
  85. switchoff= false
  86. [captcha]
  87. [captcha.app]
  88. key = "c1a1cb2d89c33794"
  89. secret = "dda47eeca111e03e6845017505baea13"
  90. [captcha.memcache]
  91. proto = "tcp"
  92. addr = "172.16.33.54:11211"
  93. active = 1
  94. idle = 1
  95. dialTimeout = "500ms"
  96. readTimeout = "1s"
  97. writeTimeout = "1s"
  98. idleTimeout = "80s"
  99. [captcha.captcha]
  100. bid = "1"
  101. bidKey = "86&JHBJHJHJ)()*(*&(*"
  102. expire = 360
  103. [captcha.httpClient]
  104. dial = "500ms"
  105. timeout = "500ms"
  106. keepAlive = "60s"
  107. timer = 1000
  108. [captcha.httpClient.breaker]
  109. window ="3s"
  110. sleep ="100ms"
  111. bucket = 10
  112. ratio = 0.1
  113. request = 100
  114. switchoff= false
  115. [multiHTTP]
  116. [multiHTTP.inner]
  117. addrs = ["127.0.0.1:7022"]
  118. maxListen = 1000
  119. [rpc]
  120. [[rpc.servers]]
  121. discoveroff=false
  122. proto = "tcp"
  123. addr = ":6279"
  124. weight = 10
  125. [rpc.zookeeper]
  126. root = "/microservice/antispam-service/"
  127. addrs = ["172.18.33.50:2199","172.18.33.51:2199","172.18.33.52:2199"]
  128. timeout = "1s"
  129. [ecode]
  130. #domain = "172.16.33.248:6401"
  131. domain = "uat-api.bilibili.co"
  132. all = "1h"
  133. diff = "5m"
  134. [ecode.clientconfig]
  135. key = "test"
  136. secret = "e6c4c252dc7e3d8a90805eecd7c73396"
  137. dial = "2000ms"
  138. timeout = "2s"
  139. keepAlive = "10s"
  140. timer = 128
  141. [ecode.clientconfig.breaker]
  142. window ="3s"
  143. sleep ="100ms"
  144. bucket = 10
  145. ratio = 0.5
  146. request = 100
  147. [ecode.app]
  148. key = "test"
  149. secret = "e6c4c252dc7e3d8a90805eecd7c73396"
  150. [mysql]
  151. [mysql.antispam]
  152. addr= "172.18.33.49:3311"
  153. dsn = "antispam:F49hoAI5DVVlvFmtfstkOFGqxpPxlYA0@tcp(172.16.33.205:3308)/bilibili_antispam?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  154. active = 5
  155. idle = 2
  156. idleTimeout ="4h"
  157. queryTimeout = "200ms"
  158. execTimeout = "200ms"
  159. tranTimeout = "200ms"
  160. [mysql.antispam.breaker]
  161. window = "3s"
  162. sleep = "100ms"
  163. bucket = 10
  164. ratio = 0.5
  165. request = 100
  166. [redis]
  167. proto = "unix"
  168. #addr = "172.16.33.54:6379"
  169. addr = "/tmp/uat-antispam-service-redis.sock"
  170. idle = 10
  171. active = 10
  172. dialTimeout = "500ms"
  173. readTimeout = "1s"
  174. writeTimeout = "1s"
  175. idleTimeout = "80s"
  176. indexExpire = "200s"
  177. [snowflake]
  178. workerIDs = [ 0,1 ]
  179. replyId = 1
  180. [snowflake.ZooKeeper]
  181. addrs = ["172.18.33.50:2199","172.18.33.51:2199","172.18.33.52:2199"]
  182. root = "/gosnowflake-servers"
  183. timeout= "30s"