block-admin-test.toml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. version = "1.0.0"
  2. user = "nobody"
  3. dir = "./"
  4. family = "block-admin"
  5. address = "0.0.0.0:7490"
  6. [log]
  7. dir = "/data/log/block-admin"
  8. family = "block-admin"
  9. [tracer]
  10. addr = "172.16.33.46:5140"
  11. proto = "udp"
  12. family = "block-admin"
  13. [auth]
  14. managerHost = "http://uat-manager.bilibili.co"
  15. dashboardHost = "http://dashboard-mng.bilibili.co"
  16. dashboardCaller = "manager-go"
  17. [auth.DsHTTPClient]
  18. key = "manager-go"
  19. secret = "949bbb2dd3178252638c2407578bc7ad"
  20. dial = "1s"
  21. timeout = "1s"
  22. keepAlive = "60s"
  23. [auth.DsHTTPClient.breaker]
  24. window = "3s"
  25. sleep = "100ms"
  26. bucket = 10
  27. ratio = 0.5
  28. request = 100
  29. [auth.MaHTTPClient]
  30. key = "f6433799dbd88751"
  31. secret = "36f8ddb1806207fe07013ab6a77a3935"
  32. dial = "1s"
  33. timeout = "1s"
  34. keepAlive = "60s"
  35. [auth.MaHTTPClient.breaker]
  36. window = "3s"
  37. sleep = "100ms"
  38. bucket = 10
  39. ratio = 0.5
  40. request = 100
  41. [auth.session]
  42. sessionIDLength = 32
  43. cookieLifeTime = 1800
  44. cookieName = "mng-go"
  45. domain = ".bilibili.co"
  46. [auth.session.Memcache]
  47. name = "go-business/auth"
  48. proto = "tcp"
  49. addr = "172.16.33.54:11211"
  50. active = 5
  51. idle = 10
  52. dialTimeout = "1s"
  53. readTimeout = "1s"
  54. writeTimeout = "1s"
  55. idleTimeout = "80s"
  56. [ecode]
  57. domain = "172.16.33.248:6401"
  58. all = "1h"
  59. diff = "10m"
  60. [ecode.clientconfig]
  61. key = "test"
  62. secret = "e6c4c252dc7e3d8a90805eecd7c73396"
  63. dial = "2000ms"
  64. timeout = "2s"
  65. keepAlive = "10s"
  66. timer = 128
  67. [ecode.clientconfig.breaker]
  68. window ="3s"
  69. sleep ="100ms"
  70. bucket = 10
  71. ratio = 0.5
  72. request = 100
  73. [bm]
  74. addr = "0.0.0.0:7491"
  75. maxListen = 10
  76. timeout = "1s"
  77. [rpcClients]
  78. [rpcClients.account]
  79. pullInterval = "10s"
  80. [rpcClients.account.client]
  81. timeout = "1s"
  82. timer = 1000
  83. [rpcClients.account.client.breaker]
  84. window ="3s"
  85. sleep ="100ms"
  86. bucket = 10
  87. ratio = 0.5
  88. request = 100
  89. [rpcClients.account.zookeeper]
  90. root = "/microservice/account-service/"
  91. addrs = ["172.18.33.172:2181"]
  92. timeout = "1s"
  93. [rpcClients.figure]
  94. pullInterval = "10s"
  95. [rpcClients.figure.client]
  96. timeout = "1s"
  97. timer = 1000
  98. [rpcClients.figure.client.breaker]
  99. window ="3s"
  100. sleep ="100ms"
  101. bucket = 10
  102. ratio = 0.5
  103. request = 100
  104. [rpcClients.figure.zookeeper]
  105. root = "/microservice/figure-service/"
  106. addrs = ["172.18.33.172:2181"]
  107. timeout = "30s"
  108. [rpcClients.spy]
  109. pullInterval = "10s"
  110. [rpcClients.spy.client]
  111. timeout = "1s"
  112. timer = 1000
  113. [rpcClients.spy.client.breaker]
  114. window ="3s"
  115. sleep ="100ms"
  116. bucket = 10
  117. ratio = 0.5
  118. request = 100
  119. [rpcClients.spy.zookeeper]
  120. root = "/microservice/spy-service/"
  121. addrs = ["172.18.33.172:2181"]
  122. timeout = "30s"
  123. [memcache]
  124. name = "block-admin"
  125. proto = "tcp"
  126. addr = "172.16.33.54:11214"
  127. idle = 10
  128. active = 10
  129. dialTimeout = "2s"
  130. readTimeout = "2s"
  131. writeTimeout = "2s"
  132. idleTimeout = "7h"
  133. [expire]
  134. expire = "200s"
  135. [mysql]
  136. addr = "127.0.0.1:3306"
  137. dsn = "root:54985498@tcp(127.0.0.1:3306)/bilibili_block?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  138. active = 5
  139. idle = 5
  140. queryTimeout = "1s"
  141. execTimeout = "1s"
  142. tranTimeout = "1s"
  143. [mysql.breaker]
  144. window = "3s"
  145. sleep = "100ms"
  146. bucket = 10
  147. ratio = 0.5
  148. request = 100
  149. [httpClient]
  150. key = "7d9f6f6fe2a898e8"
  151. secret = "4de2ccdbd9db69be0c2c6437bfe6eb69"
  152. dial = "1s"
  153. timeout = "5s"
  154. keepAlive = "60s"
  155. [httpClient.breaker]
  156. window = "3s"
  157. sleep = "100ms"
  158. bucket = 10
  159. ratio = 0.5
  160. request = 100
  161. [perms]
  162. [perms.perm]
  163. search = "BLOCK_SEARCH"
  164. block = "BLOCK_BLOCK"
  165. remove = "BLOCK_REMOVE"
  166. [accountNotify]
  167. key = "4ba46ba31f9a44ef"
  168. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  169. group = "AccountNotify-MainAccount-P"
  170. topic = "AccountNotify-T"
  171. action = "pub"
  172. buffer = 128
  173. name = "usersuit-admin/databus"
  174. proto = "tcp"
  175. addr = "172.16.33.158:6205"
  176. active = 1
  177. idle = 1
  178. dialTimeout = "1s"
  179. readTimeout = "1s"
  180. writeTimeout = "1s"
  181. idleTimeout = "10s"
  182. [property]
  183. blackHouseURL = "http://api.bilibili.co/x/internal/credit/blocked/info/batch/add"
  184. msgURL = "http://message.bilibili.co/api/notify/send.user.notify.do"
  185. telURL = "http://passport.bilibili.co/intranet/acc/telInfo/mid"
  186. mailURL = "http://passport.bilibili.co/intranet/user/mail"
  187. [property.msg]
  188. [property.msg.blackHouseLimit]
  189. code = "2_3_2"
  190. title = "账号违规处理通知"
  191. content = '抱歉,你的账号因“%s%s”,现已进行封禁%d天处理,同时需要进行解封答题考试,通过之后方可解除封禁,#{点击答题}{"http://www.bilibili.com/blackroom/releaseexame.html\"}。封禁期间将无法投稿,无法发布评论、弹幕,无法对他人评论进行回复、赞踩操作,无法发送、回复消息,无法进行投币、编辑标签、添加关注、添加收藏等操作。请遵守社区规范,共同维护良好的社区氛围!'
  192. [property.msg.blackHouseForever]
  193. code = "2_3_3"
  194. title = "账号违规处理通知"
  195. content = "抱歉,你的账号因“%s%s”,现已进行永久封禁处理。封禁期间将无法投稿,无法发布评论、弹幕,无法对他人评论进行回复、赞踩操作,无法发送、回复消息,无法进行投币、编辑标签、添加关注、添加收藏等操作。请遵守社区规范,共同维护良好的社区氛围!"
  196. [property.msg.sysLimit]
  197. code = "2_3_4"
  198. title = "账号违规处理通知"
  199. content = '抱歉,你的账号因“%s”,现已进行封禁%d天处理,同时需要进行解封答题考试,通过之后方可解除封禁,#{点击答题}{"http://www.bilibili.com/blackroom/releaseexame.html\"}。封禁期间将无法投稿,无法发布评论、弹幕,无法对他人评论进行回复、赞踩操作,无法发送、回复消息,无法进行投币、编辑标签、添加关注、添加收藏等操作。请遵守社区规范,共同维护良好的社区氛围!'
  200. [property.msg.sysForever]
  201. code = "2_3_5"
  202. title = "账号违规处理通知"
  203. content = "抱歉,你的账号因“%s”,现已进行永久封禁处理。封禁期间将无法投稿,无法发布评论、弹幕,无法对他人评论进行回复、赞踩操作,无法发送、回复消息,无法进行投币、编辑标签、添加关注、添加收藏等操作。请遵守社区规范,共同维护良好的社区氛围!"
  204. [property.msg.blockRemove]
  205. code = "2_3_6"
  206. title = "账号违规处理通知"
  207. content = "你的账号已经解除封禁,封禁期间禁止使用的各项社区功能已经恢复。请遵守社区规范,共同维护良好的社区氛围。"
  208. [managerLog]
  209. Key = "2511663d546f1413"
  210. Secret = "cde3b480836cc76df3d635470f991caa"
  211. Group = "LogAudit-MainSearch-P"
  212. Topic = "LogAudit-T"
  213. Action = "pub"
  214. Buffer = 10240
  215. Name = "log-audit/log-sub"
  216. Proto = "tcp"
  217. Addr = "172.18.33.50:6205"
  218. Active = 10
  219. Idle = 5
  220. DialTimeout = "200ms"
  221. ReadTimeout = "200ms"
  222. WriteTimeout = "200ms"
  223. IdleTimeout = "80s"