account-recovery-test.toml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. # This is a TOML document. Boom
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/account-recovery-service.pid"
  5. dir = "./"
  6. [log]
  7. stdout = true
  8. dir = "/data/log/account-recovery"
  9. [mysql]
  10. addr = "172.16.33.205"
  11. dsn = "account:wx2U1MwXRyWEuURw@tcp(172.16.33.205:3306)/account?timeout=500ms&readTimeout=500ms&writeTimeout=500ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  12. readDSN = ["account:wx2U1MwXRyWEuURw@tcp(172.16.33.205:3306)/account?timeout=500ms&readTimeout=500ms&writeTimeout=500ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  13. #readDSN = ["test:test@tcp(127.0.0.2:3306)/test? timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4","test:test@tcp(127.0.0.3:3306)/test?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  14. active = 20
  15. idle = 10
  16. idleTimeout ="4h"
  17. queryTimeout = "1000ms"
  18. execTimeout = "500ms"
  19. tranTimeout = "2000ms"
  20. [mysql.breaker]
  21. window = "3s"
  22. sleep = "100ms"
  23. bucket = 10
  24. ratio = 0.5
  25. request = 100
  26. [redis]
  27. name = "account-recovery-service"
  28. proto = "tcp"
  29. addr = "127.0.0.1:6379"
  30. idle = 10
  31. active = 10
  32. dialTimeout = "100ms"
  33. readTimeout = "350ms"
  34. writeTimeout = "350ms"
  35. idleTimeout = "10s"
  36. expire = "1m"
  37. [AccRecover]
  38. MidInfoURL = "http://passport.bilibili.co/intranet/acc/midinfo/byCon"
  39. UpPwdURL = "http://passport.bilibili.co/intranet/acc/midinfo/pwd"
  40. UpBatchPwdURL = "http://passport.bilibili.co/intranet/acc/midinfo/batchpwd"
  41. CheckSafeURL = "http://passport.bilibili.co/intranet/acc/midinfo/check/safe"
  42. GameURL = "http://interface.biligame.com/api/internal/activity.games"
  43. CheckRegURL = "http://passport.bilibili.co/intranet/acc/midinfo/check/reg"
  44. CheckUserURL = "http://manager.bilibili.co/x/admin/passport/userBindLog"
  45. CheckCardURL = "http://api.bilibili.co/x/internal/member/realname/check"
  46. CheckPwdURL = "http://api.bilibili.co/x/internal/passport/history/pwd/check"
  47. GetLoginIPURL = "http://api.bilibili.co/x/internal/passport/records/loginlog"
  48. GetUserInfoURL = "http://passport.bilibili.co/intranet/acc/detail"
  49. [HttpClientConfig]
  50. key = "e74eaed756f64154"
  51. secret = "testSecret"
  52. dial = "100ms"
  53. timeout = "10s"
  54. keepAlive = "60s"
  55. timer = 1024
  56. [HttpClientConfig.breaker]
  57. window = "3s"
  58. sleep = "100ms"
  59. bucket = 10
  60. ratio = 1.0
  61. request = 100
  62. [MailConf]
  63. host = "smtp.exmail.qq.com"
  64. port = 465
  65. username = "manager@bilibili.com"
  66. password = ""
  67. [CaptchaConf]
  68. TokenBID = "account"
  69. tokenURL = "http://api.bilibili.co/x/internal/v1/captcha/token"
  70. verifyURL = "http://api.bilibili.co/x/internal/v1/captcha/verify"
  71. [AccountRPC]
  72. timeout = "1s"
  73. [locationrpc]
  74. timeout = "1s"
  75. [memberGRPC]
  76. timeout = "1s"
  77. [chanSize]
  78. MailMsg = 999
  79. [bm]
  80. addr = "0.0.0.0:8000"
  81. Timeout = "2s"
  82. readTimeout = "10s"
  83. writeTimeout = "10s"
  84. [auth]
  85. managerHost = "http://uat-manager.bilibili.co"
  86. dashboardHost = "http://uat-dashboard-mng.bilibili.co"
  87. dashboardCaller = "manager-go"
  88. [auth.DsHTTPClient]
  89. key = "manager-go"
  90. secret = "949bbb2dd3178252638c2407578bc7ad"
  91. dial = "1s"
  92. timeout = "1s"
  93. keepAlive = "60s"
  94. [auth.DsHTTPClient.breaker]
  95. window = "3s"
  96. sleep = "100ms"
  97. bucket = 10
  98. ratio = 0.5
  99. request = 100
  100. [auth.MaHTTPClient]
  101. key = "f6433799dbd88751"
  102. secret = "36f8ddb1806207fe07013ab6a77a3935"
  103. dial = "1s"
  104. timeout = "1s"
  105. keepAlive = "60s"
  106. [auth.MaHTTPClient.breaker]
  107. window = "3s"
  108. sleep = "100ms"
  109. bucket = 10
  110. ratio = 0.5
  111. request = 100
  112. [auth.session]
  113. sessionIDLength = 32
  114. cookieLifeTime = 1800
  115. cookieName = "mng-go"
  116. domain = ".bilibili.co"
  117. [auth.session.Memcache]
  118. name = "go-business/auth"
  119. proto = "tcp"
  120. addr = "172.16.33.54:11211"
  121. active = 10
  122. idle = 10
  123. dialTimeout = "1s"
  124. readTimeout = "1s"
  125. writeTimeout = "1s"
  126. idleTimeout = "80s"
  127. [AESEncode]
  128. salt = ""
  129. aesKey = "0123456789abcdef"
  130. [elastic]
  131. host = "http://uat-manager.bilibili.co"
  132. #host = "http://127.0.0.1:8080"
  133. [elastic.HTTPClient]
  134. key = "3c4e41f926e51656"
  135. secret = "26a2095b60c24154521d24ae62b885bb"
  136. dial = "1s"
  137. timeout = "3s"
  138. keepAlive = "60s"
  139. timer = 1000
  140. [elastic.HTTPClient.breaker]
  141. window ="3s"
  142. sleep ="100ms"
  143. bucket = 10
  144. ratio = 0.5
  145. request = 100
  146. [bfs]
  147. key = "2wf7m69kng83cl5h"
  148. secret = "jr0po1k2e9mtai5l8g3shn7dqxwc4u"
  149. addr = "http://uat-bfs.bilibili.co/bfs/account/recovery"
  150. bucket = "account"
  151. timeout = "10s"
  152. [databus]
  153. [databus.UserActLog]
  154. key = "2511663d546f1413"
  155. secret = "cde3b480836cc76df3d635470f991caa"
  156. group = "LogUserAction-MainSearch-P"
  157. topic = "LogUserAction-T"
  158. action = "pub"
  159. buffer = 10240
  160. name = "log-user-action/log-sub"
  161. proto = "tcp"
  162. addr = "172.18.33.50:6205"
  163. idle = 1
  164. active = 1
  165. dialTimeout = "1s"
  166. readTimeout = "60s"
  167. writeTimeout = "1s"
  168. idleTimeout = "10s"