member-admin-test.toml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. # This is a TOML document. Boom
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/member.pid"
  5. dir = "./"
  6. [log]
  7. dir = "/data/log/member"
  8. stdout=true
  9. [bm]
  10. addr = "0.0.0.0:7711"
  11. maxListen = 10
  12. timeout = "1s"
  13. [identify]
  14. whiteAccessKey = ""
  15. whiteMid = 0
  16. [identify.app]
  17. key = "6a29f8ed87407c11"
  18. secret = "d3c5a85f5b895a03735b5d20a273bc57"
  19. [identify.memcache]
  20. name = "go-business/identify"
  21. proto = "tcp"
  22. addr = "172.16.33.54:11211"
  23. active = 5
  24. idle = 5
  25. dialTimeout = "1s"
  26. readTimeout = "1s"
  27. writeTimeout = "1s"
  28. idleTimeout = "80s"
  29. [identify.host]
  30. auth = "http://passport.bilibili.com"
  31. secret = "http://open.bilibili.com"
  32. [identify.httpClient]
  33. key = "f022126a8a365e20"
  34. secret = "b7b86838145d634b487e67b811b8fab2"
  35. dial = "30ms"
  36. timeout = "100ms"
  37. keepAlive = "60s"
  38. [identify.httpClient.breaker]
  39. window = "10s"
  40. sleep = "100ms"
  41. bucket = 10
  42. ratio = 0.5
  43. request = 100
  44. [identify.httpClient.url]
  45. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  46. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  47. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  48. [orm]
  49. [orm.member]
  50. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_member?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  51. active = 5
  52. idle = 5
  53. idleTimeout = "4h"
  54. [orm.memberRead]
  55. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_member?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  56. active = 5
  57. idle = 5
  58. idleTimeout = "4h"
  59. [orm.account]
  60. dsn = "account:wx2U1MwXRyWEuURw@tcp(172.16.33.205:3306)/account?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  61. active = 5
  62. idle = 5
  63. idleTimeout = "4h"
  64. [host]
  65. #search = "http://uat-bili-search.bilibili.co"
  66. message = "http://uat-message.bilibili.co"
  67. passport = "http://uat-passport.bilibili.co"
  68. merak = "http://merak.bilibili.co"
  69. [httpClient]
  70. [httpClient.read]
  71. key = "c1a1cb2d89c33794"
  72. secret = "dda47eeca111e03e6845017505baea13"
  73. dial = "1s"
  74. timeout = "3s"
  75. keepAlive = "60s"
  76. timer = 16
  77. [httpClient.read.breaker]
  78. window = "10s"
  79. sleep = "100ms"
  80. bucket = 10
  81. ratio = 0.5
  82. request = 100
  83. [httpClient.write]
  84. key = "c1a1cb2d89c33794"
  85. secret = "dda47eeca111e03e6845017505baea13"
  86. dial = "100ms"
  87. timeout = "800ms"
  88. keepAlive = "60s"
  89. timer = 16
  90. [httpClient.write.breaker]
  91. window = "10s"
  92. sleep = "100ms"
  93. bucket = 10
  94. ratio = 0.5
  95. request = 100
  96. [httpClient.Passport]
  97. key = "c1a1cb2d89c33794"
  98. secret = "dda47eeca111e03e6845017505baea13"
  99. dial = "100ms"
  100. timeout = "800ms"
  101. keepAlive = "60s"
  102. timer = 16
  103. [hbase]
  104. master = ""
  105. meta = ""
  106. dialTimeout = "1s"
  107. readTimeout = "10s"
  108. readsTimeout = "10s"
  109. writeTimeout = "10s"
  110. writesTimeout = "10s"
  111. [hbase.zookeeper]
  112. root = ""
  113. addrs =["172.18.33.75:2181"]
  114. timeout = "30s"
  115. [expMsgDatabus]
  116. key = "4ba46ba31f9a44ef"
  117. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  118. group = "AccountExp-MainAccount-P"
  119. topic = "AccountExp-T"
  120. action = "pub"
  121. name = "member-admin/databus"
  122. proto = "tcp"
  123. addr = "172.18.33.50:6205"
  124. idle = 100
  125. active = 100
  126. dialTimeout = "1s"
  127. readTimeout = "60s"
  128. writeTimeout = "1s"
  129. idleTimeout = "10s"
  130. [auth]
  131. managerHost = "http://uat-manager.bilibili.co"
  132. dashboardHost = "http://uat-dashboard-mng.bilibili.co"
  133. dashboardCaller = "manager-go"
  134. [auth.DsHTTPClient]
  135. key = "manager-go"
  136. secret = "949bbb2dd3178252638c2407578bc7ad"
  137. dial = "1s"
  138. timeout = "1s"
  139. keepAlive = "60s"
  140. [auth.DsHTTPClient.breaker]
  141. window = "3s"
  142. sleep = "100ms"
  143. bucket = 10
  144. ratio = 0.5
  145. request = 100
  146. [auth.MaHTTPClient]
  147. key = "f6433799dbd88751"
  148. secret = "36f8ddb1806207fe07013ab6a77a3935"
  149. dial = "1s"
  150. timeout = "1s"
  151. keepAlive = "60s"
  152. [auth.MaHTTPClient.breaker]
  153. window = "3s"
  154. sleep = "100ms"
  155. bucket = 10
  156. ratio = 0.5
  157. request = 100
  158. [auth.session]
  159. sessionIDLength = 32
  160. cookieLifeTime = 1800
  161. cookieName = "mng-go"
  162. domain = ".bilibili.co"
  163. [auth.session.Memcache]
  164. name = "go-business/auth"
  165. proto = "tcp"
  166. addr = "172.16.33.54:11211"
  167. active = 5
  168. idle = 5
  169. dialTimeout = "1s"
  170. readTimeout = "1s"
  171. writeTimeout = "1s"
  172. idleTimeout = "80s"
  173. [fhbyophbase]
  174. master = ""
  175. meta = ""
  176. dialTimeout = "1s"
  177. readTimeout = "10s"
  178. readsTimeout = "10s"
  179. writeTimeout = "10s"
  180. writesTimeout = "10s"
  181. [fhbyophbase.zookeeper]
  182. root = ""
  183. addrs =["bigdata-test-02:2181","bigdata-test-03:2181","bigdata-test-04:2181"]
  184. timeout = "30s"
  185. [fhbymidhbase]
  186. master = ""
  187. meta = ""
  188. dialTimeout = "1s"
  189. readTimeout = "10s"
  190. readsTimeout = "10s"
  191. writeTimeout = "10s"
  192. writesTimeout = "10s"
  193. [fhbymidhbase.zookeeper]
  194. root = ""
  195. addrs =["bigdata-test-02:2181","bigdata-test-03:2181","bigdata-test-04:2181"]
  196. timeout = "30s"
  197. [facepribfs]
  198. timeout="500ms"
  199. maxFileSize=8388608
  200. url="http://bfs.bilibili.co/bfs/"
  201. bucket="facepri"
  202. key="8923aff2e1124bb2"
  203. secret="b237e8927823cc2984aee980123cb0"
  204. [facebfs]
  205. timeout="500ms"
  206. url="http://bfs.bilibili.co/bfs/"
  207. bucket="face"
  208. key="792d70f16e958493"
  209. secret="08525fe929bdb26c3a6009afd7318f"
  210. [rpcClient]
  211. [rpcClient.coin]
  212. timeout = "1s"
  213. [blockMemcache]
  214. name = "block-admin"
  215. proto = "tcp"
  216. addr = "172.16.33.54:11214"
  217. idle = 10
  218. active = 10
  219. dialTimeout = "2s"
  220. readTimeout = "2s"
  221. writeTimeout = "2s"
  222. idleTimeout = "7h"
  223. [expire]
  224. expire = "200s"
  225. [blockMysql]
  226. addr = "127.0.0.1:3306"
  227. dsn = "root:54985498@tcp(127.0.0.1:3306)/bilibili_block?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  228. active = 5
  229. idle = 5
  230. queryTimeout = "1s"
  231. execTimeout = "1s"
  232. tranTimeout = "1s"
  233. [mysql.breaker]
  234. window = "3s"
  235. sleep = "100ms"
  236. bucket = 10
  237. ratio = 0.5
  238. request = 100
  239. [accountNotify]
  240. key = "4ba46ba31f9a44ef"
  241. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  242. group = "AccountNotify-MainAccount-P"
  243. topic = "AccountNotify-T"
  244. action = "pub"
  245. buffer = 128
  246. name = "usersuit-admin/databus"
  247. proto = "tcp"
  248. addr = "172.16.33.158:6205"
  249. active = 1
  250. idle = 1
  251. dialTimeout = "1s"
  252. readTimeout = "1s"
  253. writeTimeout = "1s"
  254. idleTimeout = "10s"
  255. [blockProperty]
  256. blackHouseURL = "http://api.bilibili.co/x/internal/credit/blocked/info/batch/add"
  257. msgURL = "http://message.bilibili.co/api/notify/send.user.notify.do"
  258. telURL = "http://passport.bilibili.co/intranet/acc/telInfo/mid"
  259. mailURL = "http://passport.bilibili.co/intranet/user/mail"
  260. [realname]
  261. imageURLTemplate = "http://uat-manager.bilibili.co/x/admin/member/realname/image?token=%s"
  262. dataDir = "/data/storage/realname"
  263. [reviewNotify]
  264. users = []
  265. [redis]
  266. name = "member-admin"
  267. proto = "tcp"
  268. addr = "127.0.0.1:6379"
  269. active = 10
  270. idle = 5
  271. dialTimeout = "1s"
  272. readTimeout = "1s"
  273. writeTimeout = "1s"
  274. idleTimeout = "10s"
  275. [memcache]
  276. name = "member-admin"
  277. proto = "tcp"
  278. addr = "127.0.0.1:11211"
  279. active = 10
  280. idle = 5
  281. dialTimeout = "1s"
  282. readTimeout = "1s"
  283. writeTimeout = "1s"
  284. idleTimeout = "10s"