spy-service-test.toml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. version = "1.0.0"
  2. user = "nobody"
  3. pid = "/tmp/spy-service.pid"
  4. dir = "./"
  5. checkFile = "/data/www/spy-service.html"
  6. family = "spy-service"
  7. account = "http://passport.bilibili.co"
  8. [xlog]
  9. dir = "/data/log/spy-service"
  10. [db]
  11. [db.spy]
  12. addr= "172.16.33.205:3308"
  13. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_spy?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  14. active = 5
  15. idle = 2
  16. idleTimeout ="4h"
  17. queryTimeout = "100ms"
  18. execTimeout = "100ms"
  19. tranTimeout = "200ms"
  20. [db.spy.breaker]
  21. window = "3s"
  22. sleep = "100ms"
  23. bucket = 10
  24. ratio = 0.5
  25. request = 100
  26. [rpc]
  27. [rpc.account]
  28. [bm]
  29. [bm.inner]
  30. addr = "0.0.0.0:7651"
  31. maxListen = 10
  32. timeout = "1s"
  33. [httpClient]
  34. dial = "1s"
  35. timeout = "3s"
  36. keepAlive = "60s"
  37. timer = 1000
  38. key = "zxnh4k92dwe61t27"
  39. secret = "dnu3bwpxyswqwf1ixpsczthury1nqiew"
  40. [httpClient.breaker]
  41. window = "3s"
  42. sleep = "500ms"
  43. bucket = 10
  44. ratio = 0.5
  45. request = 100
  46. switchoff = false
  47. [identify]
  48. [identify.host]
  49. auth = "http://passport.bilibili.co"
  50. secret = "http://open.bilibili.co"
  51. [identify.httpClient]
  52. key = "zxnh4k92dwe61t27"
  53. secret = "dnu3bwpxyswqwf1ixpsczthury1nqiew"
  54. dial = "30ms"
  55. timeout = "100ms"
  56. keepAlive = "60s"
  57. [identify.httpClient.breaker]
  58. window = "10s"
  59. sleep = "100ms"
  60. bucket = 10
  61. ratio = 0.5
  62. request = 100
  63. [identify.httpClient.url]
  64. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  65. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  66. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  67. [rpcServer2]
  68. [[rpcServer2.servers]]
  69. proto = "tcp"
  70. addr = "0.0.0.0:6869"
  71. weight = 10
  72. [rpcServer2.zookeeper]
  73. root = "/microservice/spy-service/"
  74. addrs = ["172.18.33.172:2181"]
  75. timeout = "30s"
  76. [memcache]
  77. userExpire = "1m"
  78. [memcache.user]
  79. name = "spy-service/user"
  80. proto = "tcp"
  81. addr = "172.16.33.22:21211"
  82. idle = 5
  83. active = 10
  84. dialTimeout = "1s"
  85. readTimeout = "1s"
  86. writeTimeout = "1s"
  87. idleTimeout = "10s"
  88. [property]
  89. telValidateURL = "http://passport.bilibili.co/intranet/acc/validateTel"
  90. blockAccountURL = "https://account.bilibili.com/api/member/blockAccount"
  91. securityLoginURL = "http://passport.bilibili.co/intranet/acc/security/mid"
  92. telInfoByMidURL = "http://passport.bilibili.co/intranet/acc/telInfo/mid"
  93. profileInfoByMidURL = "http://api.bilibili.co/x/internal/v3/account/profile"
  94. unicomGiftStateURL = "http://app.bilibili.com/x/wall/unicom/bind/state"
  95. loadEventTick = "60s"
  96. doubleCheckLevel = 4
  97. configLoadTick = "60s"
  98. userInfoShard = 100
  99. historyShard = 100
  100. autoBlockSwitch = true
  101. [property.score]
  102. baseInit = 100
  103. eventInit = 100
  104. [property.punishment]
  105. scoreThreshold = 30
  106. times = 3
  107. [property.event]
  108. serviceName = "spy_service"
  109. initEventID = 1
  110. bindMailAndTelLowRisk = "bind_mail_and_tel_low_risk"
  111. bindMailOnly = "bind_mail_only"
  112. bindNothing = "bind_nothing"
  113. bindTelLowRiskOnly = "bind_tel_low_risk_only"
  114. bindTelMediumRisk = "bind_tel_medium_risk"
  115. bindTelHighRisk = "bind_tel_high_risk"
  116. bindTelUnknownRisk = "bind_tel_unknown_risk"
  117. bindTelLowRiskAndIdenAuth = "bind_tel_low_risk_and_iden_auth"
  118. bindTelLowRiskAndIdenUnauth = "bind_tel_low_risk_and_iden_unauth"
  119. bindTelUnknownRiskAndIdenAuth = "bind_tel_unknown_risk_and_iden_auth"
  120. bindTelMediumRiskAndIdenAuth = "bind_tel_medium_risk_and_iden_auth"
  121. bindTelUnknownRiskAndIdenUnauth = "bind_tel_unknown_risk_and_iden_unauth"
  122. bindTelMediumRiskAndIdenUnauth = "bind_tel_medium_risk_and_iden_unauth"
  123. bindMailAndIdenUnknown = "bind_mail_and_iden_unknown"
  124. bindTelHighRiskAndIdenAuth = "bind_tel_high_risk_and_iden_auth"
  125. bindNothingV2 = "bind_nothing_v2"
  126. bindNothingAndIdenAuth = "bind_nothing_and_iden_auth"
  127. bindTelHighRiskAndIdenUnauth = "bind_tel_high_risk_and_iden_unauth"
  128. [property.block]
  129. cycleTimes = 3600
  130. [property.white]
  131. [[property.white.tels]]
  132. from = 23333330000
  133. to = 23333340000
  134. [redis]
  135. name = "spy-service"
  136. proto = "tcp"
  137. addr = "172.16.33.54:6379"
  138. idle = 100
  139. active = 100
  140. dialTimeout = "1s"
  141. readTimeout = "1s"
  142. writeTimeout = "1s"
  143. idleTimeout = "10s"
  144. expire = "24h"
  145. verifyCdTimes = "2h"
  146. [dBScoreChange]
  147. key = "0QNB0ZgFozbKUCQhbTq8"
  148. secret= "0QNB0ZgFozbKUCQhbTq9"
  149. group= "SpyFigure-UGC-P"
  150. topic= "SpyFigure-T"
  151. action="pub"
  152. name = "spy-service/databus"
  153. proto = "tcp"
  154. addr = "172.16.33.158:6205"
  155. idle = 2
  156. active = 10
  157. dialTimeout = "1s"
  158. readTimeout = "60s"
  159. writeTimeout = "1s"
  160. idleTimeout = "10s"
  161. expire = "1h"
  162. [qcloud]
  163. path = "RegisterProtection"
  164. region = "sh"
  165. secretID = ""
  166. secretKey = ""
  167. charset = "utf-8"
  168. baseURL = "csec.api.qcloud.com/v2/index.php"