reply-admin-test.toml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. [log]
  2. stdout=true
  3. [httpServer]
  4. addr = "0.0.0.0:10001"
  5. timeout = "1s"
  6. readTimeout = "1s"
  7. writeTimeout = "1s"
  8. [reply]
  9. pageNum = 1
  10. pageSize = 30
  11. adminName = ["yangjiankun", "xuyiming"]
  12. [identify]
  13. whiteAccessKey = "a2a1eb0ac97d6ba08b85aa0151528f34"
  14. whiteMid = 23675773
  15. csrfOn = true
  16. csrf = true
  17. [identify.app]
  18. key = "7c7ac0db1aa05587"
  19. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  20. [identify.memcache]
  21. name = "go-business/identify"
  22. active = 1024
  23. idle = 64
  24. dialTimeout = "100ms"
  25. readTimeout = "200ms"
  26. writeTimeout = "200ms"
  27. idleTimeout = "80s"
  28. [identify.host]
  29. auth = "http://passport.bilibili.co"
  30. secret = "http://open.bilibili.co"
  31. [identify.httpClient]
  32. key = "7c7ac0db1aa05587"
  33. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  34. dial = "30ms"
  35. timeout = "100ms"
  36. keepAlive = "60s"
  37. [identify.httpClient.breaker]
  38. window = "10s"
  39. sleep = "100ms"
  40. bucket = 10
  41. ratio = 0.5
  42. request = 100
  43. [identify.httpClient.url]
  44. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "1s"}
  45. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "1s"}
  46. "http://open.bilibili.co/api/getsecret" = {timeout = "1s"}
  47. [db]
  48. [db.reply]
  49. addr = "172.22.34.101:3306"
  50. dsn = "test_3306:UJPZaGKjpb2ylFx3HNhmLuwOYft4MCAi@tcp(172.22.34.101:3306)/bilibili_reply?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8mb4,utf8"
  51. active = 5
  52. idle = 1
  53. idleTimeout ="4h"
  54. queryTimeout = "500ms"
  55. execTimeout = "500ms"
  56. tranTimeout = "500ms"
  57. [db.reply.breaker]
  58. window = "3s"
  59. sleep = "100ms"
  60. bucket = 10
  61. ratio = 0.5
  62. request = 100
  63. [db.replySlave]
  64. addr = "172.22.34.101:3306"
  65. dsn = "test_3306:UJPZaGKjpb2ylFx3HNhmLuwOYft4MCAi@tcp(172.22.34.101:3306)/bilibili_reply?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8mb4,utf8"
  66. active = 5
  67. idle = 1
  68. idleTimeout ="4h"
  69. queryTimeout = "500ms"
  70. execTimeout = "500ms"
  71. tranTimeout = "500ms"
  72. [db.replySlave.breaker]
  73. window = "3s"
  74. sleep = "100ms"
  75. bucket = 10
  76. ratio = 0.5
  77. request = 100
  78. [httpClient]
  79. key = "c1a1cb2d89c33794"
  80. secret = "dda47eeca111e03e6845017505baea13"
  81. dial = "3s"
  82. timeout = "3s"
  83. keepAlive = "60s"
  84. timer = 1000
  85. [httpClient.breaker]
  86. window ="3s"
  87. sleep ="100ms"
  88. bucket = 10
  89. ratio = 0.5
  90. request = 100
  91. [[stats]]
  92. key = "0QNB0ZgFozbKUCQhbTq8"
  93. secret = "0QNB0ZgFozbKUCQhbTq9"
  94. group = "Stat-UGC-P"
  95. topic = "Stat-T"
  96. action ="pub"
  97. name = "archive-service/stat"
  98. proto = "tcp"
  99. addr = "172.18.33.50:6205"
  100. idle = 100
  101. active = 100
  102. dialTimeout = "1s"
  103. readTimeout = "1s"
  104. writeTimeout = "1s"
  105. idleTimeout = "10s"
  106. type = 1
  107. field = "aid"
  108. [[stats]]
  109. key = "0QNB0ZgFozbKUCQhbTq8"
  110. secret = "0QNB0ZgFozbKUCQhbTq9"
  111. group = "ArticleStat-Article-P"
  112. topic = "ArticleStat-T"
  113. action ="pub"
  114. name = "archive-service/stat"
  115. proto = "tcp"
  116. addr = "172.18.33.50:6205"
  117. idle = 100
  118. active = 100
  119. dialTimeout = "1s"
  120. readTimeout = "1s"
  121. writeTimeout = "1s"
  122. idleTimeout = "10s"
  123. type = 12
  124. field = "aid"
  125. [[stats]]
  126. key = "0QNB0ZgFozbKUCQhbTq8"
  127. secret = "0QNB0ZgFozbKUCQhbTq9"
  128. group= "PlaylistStat-Playlist-P"
  129. topic= "PlaylistStat-T"
  130. action="pub"
  131. name = "playlist-service/stat"
  132. proto = "tcp"
  133. addr = "172.18.33.50:6205"
  134. idle = 100
  135. active = 100
  136. dialTimeout = "1s"
  137. readTimeout = "1s"
  138. writeTimeout = "1s"
  139. idleTimeout = "10s"
  140. expire = "1h"
  141. type = 18
  142. field = "pid"
  143. [rpcClient2]
  144. [rpcClient2.account]
  145. timeout = "30s"
  146. [rpcClient2.archive]
  147. timeout = "30s"
  148. [rpcClient2.assist]
  149. timeout = "30s"
  150. [rpcClient2.article]
  151. timeout = "30s"
  152. [rpcClient2.thumbup]
  153. timeout = "30s"
  154. [databus]
  155. [databus.event]
  156. key = "170e302355453683"
  157. secret = "3d0e8db7bed0503949e545a469789279"
  158. group = "Reply-MainCommunity-P"
  159. topic = "Reply-T"
  160. action ="pub"
  161. name = "reply/event"
  162. proto = "tcp"
  163. addr = "172.18.33.50:6205"
  164. idle = 2
  165. active = 5
  166. dialTimeout = "1s"
  167. readTimeout = "1s"
  168. writeTimeout = "1s"
  169. idleTimeout = "10s"
  170. expire = "1h"
  171. [databus.stats]
  172. key = "170e302355453683"
  173. secret = "3d0e8db7bed0503949e545a469789279"
  174. group = "StatReply-MainCommunity-P"
  175. topic = "StatReply-T"
  176. action ="pub"
  177. name = "reply/stats"
  178. proto = "tcp"
  179. addr = "172.18.33.50:6205"
  180. idle = 2
  181. active = 5
  182. dialTimeout = "1s"
  183. readTimeout = "1s"
  184. writeTimeout = "1s"
  185. idleTimeout = "10s"
  186. expire = "1h"
  187. [host]
  188. search = "http://uat-bili-search.bilibili.co"
  189. [managerAuth]
  190. managerHost = "http://uat-manager.bilibili.co"
  191. dashboardHost = "http://dashboard-mng.bilibili.co"
  192. dashboardCaller = "manager-go"
  193. [managerAuth.dsHTTPClient]
  194. key = "manager-go"
  195. secret = "949bbb2dd3178252638c2407578bc7ad"
  196. dial = "1s"
  197. timeout = "3s"
  198. keepAlive = "60s"
  199. timer = 1000
  200. [managerAuth.dsHTTPClient.breaker]
  201. window ="3s"
  202. sleep ="100ms"
  203. bucket = 10
  204. ratio = 0.5
  205. request = 100
  206. [managerAuth.maHTTPClient]
  207. key = "f6433799dbd88751"
  208. secret = "36f8ddb1806207fe07013ab6a77a3935"
  209. dial = "1s"
  210. timeout = "3s"
  211. keepAlive = "60s"
  212. timer = 1000
  213. [managerAuth.maHTTPClient.breaker]
  214. window ="3s"
  215. sleep ="100ms"
  216. bucket = 10
  217. ratio = 0.5
  218. request = 100
  219. [managerAuth.session]
  220. sessionIDLength = 32
  221. cookieLifeTime = 1800
  222. cookieName = "mng-go"
  223. domain = ".bilibili.co"
  224. [managerAuth.session.Memcache]
  225. name = "bm/auth"
  226. proto = "unix"
  227. addr = "/tmp/uat-reply-mc.sock"
  228. active = 5
  229. idle = 2
  230. dialTimeout = "10ms"
  231. readTimeout = "200ms"
  232. writeTimeout = "200ms"
  233. idleTimeout = "80s"
  234. [memcache]
  235. proto = "tcp"
  236. addr = "172.18.33.61:11213"
  237. idle = 10
  238. active = 10
  239. dialTimeout = "2s"
  240. readTimeout = "2s"
  241. writeTimeout = "2s"
  242. idleTimeout = "7h"
  243. expire = "24h"
  244. [redis]
  245. proto = "tcp"
  246. addr = "172.18.33.60:6889"
  247. idle = 10
  248. active = 10
  249. dialTimeout = "500ms"
  250. readTimeout = "1s"
  251. writeTimeout = "1s"
  252. idleTimeout = "80s"
  253. indexExpire = "8h"
  254. userActExpire="1h"
  255. reportExpire = "24h"
  256. userCntExpire = "30s"
  257. notifyExpire = "24h"
  258. expire = "24h"