account-interface-example.toml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. [bm]
  2. [bm.inner]
  3. addr = "0.0.0.0:6951"
  4. maxListen = 1000
  5. timeout = "1s"
  6. [httpClient]
  7. [httpClient.normal]
  8. dial = "500ms"
  9. timeout = "1s"
  10. keepAlive = "60s"
  11. timer = 10
  12. key = "e7482d29be4a95b8"
  13. secret = "9e803791cdef756e75faee68e12b7442"
  14. [httpClient.normal.host]
  15. "http://cm.bilibili.co" = {key = "test",secret = "e6c4c252dc7e3d8a90805eecd7c73396"}
  16. [httpClient.normal.breaker]
  17. window = "3s"
  18. sleep = "100ms"
  19. bucket = 10
  20. ratio = 0.5
  21. request = 100
  22. [httpClient.slow]
  23. dial = "500ms"
  24. timeout = "1s"
  25. keepAlive = "60s"
  26. timer = 10
  27. key = "e7482d29be4a95b8"
  28. secret = "9e803791cdef756e75faee68e12b7442"
  29. [httpClient.slow.breaker]
  30. window = "3s"
  31. sleep = "100ms"
  32. bucket = 10
  33. ratio = 0.5
  34. request = 100
  35. [rpcClient2]
  36. [rpcClient2.member]
  37. color = "group1"
  38. timeout = "150ms"
  39. [rpcClient2.account]
  40. color = "group2"
  41. timeout = "200ms"
  42. [rpcClient2.archive]
  43. timeout = "100ms"
  44. [rpcClient2.relation]
  45. token="test"
  46. timeout = "1s"
  47. [rpcClient2.usersuit]
  48. timeout = "1s"
  49. [rpcClient2.article]
  50. timeout = "1s"
  51. [rpcClient2.up]
  52. timeout = "1s"
  53. group = "test"
  54. [rpcClient2.passport]
  55. timeout = "1s"
  56. [rpcClient2.coin]
  57. timeout = "1s"
  58. [rpcClient2.location]
  59. timeout = "1s"
  60. [rpcClient2.secure]
  61. timeout = "1s"
  62. [rpcClient2.vip]
  63. timeout = "200ms"
  64. [app]
  65. key = "e7482d29be4a95b8"
  66. secret = "9e803791cdef756e75faee68e12b7442"
  67. [antispam]
  68. on=true
  69. second=2
  70. n=1
  71. hour=12
  72. m=500
  73. [antispam.redis]
  74. name = "member/account-interface"
  75. proto = "tcp"
  76. addr = "172.16.33.54:6379"
  77. active = 5
  78. idle = 5
  79. dialTimeout = "90ms"
  80. readTimeout = "100ms"
  81. writeTimeout = "100ms"
  82. idleTimeout = "80s"
  83. expire = "24h"
  84. [smsantispam]
  85. on=true
  86. second=60
  87. n=1
  88. hour=1
  89. m=10
  90. [smsantispam.redis]
  91. name = "member/member-interface"
  92. proto = "tcp"
  93. addr = "172.16.33.54:6379"
  94. idle = 5
  95. active = 5
  96. dialTimeout = "500ms"
  97. readTimeout = "1s"
  98. writeTimeout = "1s"
  99. idleTimeout = "80s"
  100. expire = "10m"
  101. [vipantispam]
  102. on=true
  103. second=1
  104. n=2
  105. hour=1
  106. m=10
  107. [vipantispam.redis]
  108. name = "member/member-interface"
  109. proto = "tcp"
  110. addr = "172.16.33.54:6379"
  111. idle = 5
  112. active = 5
  113. dialTimeout = "500ms"
  114. readTimeout = "1s"
  115. writeTimeout = "1s"
  116. idleTimeout = "80s"
  117. expire = "10m"
  118. [host]
  119. acccom = "http://account.bilibili.com"
  120. accco = "http://uat-account.bilibili.co"
  121. passport = "http://passport.bilibili.co"
  122. api = "http://api.bilibili.co"
  123. vip = "http://vip.bilibili.co"
  124. www = "http://www.bilibili.com"
  125. search = "http://s.search.bilibili.co"
  126. cm = "http://cm.bilibili.co"
  127. passportCom = "https://passport.bilibili.com"
  128. [VipProperty]
  129. CodeOpenwhiteIPMap={"b2cf4e9dbe9fd2e3"=["111.203.12.97","111.203.12.98","123.125.99.176","123.125.99.177","123.125.99.178","123.125.99.179","123.125.99.180"],"6e8687402f1ab860"=["219.135.155.76","134.175.201.88"]}
  130. EleOAuthURI="https://open.faas.ele.me/docs/8cd9ba96ee0a53a1fd2c6d84d15727eebd8aa054"
  131. EleConsumerKey="4400479257"
  132. EleOAuthCallBackURI="https://api.bilibili.com/x/oauth2/v1/callback"
  133. ActivityURI="https://uat-www.bilibili.com/blackboard/preview/activity-E2yZx8RLI.html?time=1545580800000"
  134. ActStartTime = 1144488082
  135. ActEndTime = 1154488082
  136. [VipProperty.OAuthClient]
  137. key = "ad4bb9b8f5d9d4a7"
  138. secret = "6912080d78d58be7cb94f57d50d438f6"
  139. [accmemcache]
  140. name = "account-interface"
  141. proto = "tcp"
  142. addr = "172.18.33.61:11212"
  143. idle = 5
  144. active = 5
  145. dialTimeout = "1s"
  146. readTimeout = "1s"
  147. writeTimeout = "1s"
  148. idleTimeout = "10s"
  149. [realname]
  150. dataDir = "/idenfiles"
  151. imageExpire = "1m"
  152. alipayAntispamTTL = 86400
  153. alipayAntispamThreshold = 0
  154. [realname.geetest]
  155. registerURL = "http://api.geetest.com/register.php"
  156. validateURL = "http://api.geetest.com/validate.php"
  157. captchaID = "e81f58b498a0106eb92b985aef20a15f"
  158. privateKey = "a6ccb3f6865c9fabaaa57c8cee5a7609"
  159. [realname.alipay]
  160. gateway = "https://openapi.alipay.com/gateway.do"
  161. appID = "2018062060353784"
  162. [[realname.channel]]
  163. name = "main"
  164. flag = true
  165. [[realname.channel]]
  166. name = "alipay"
  167. flag = true
  168. [nickFreeAppKeys]
  169. aaaa= ""
  170. [SMSAntispam]
  171. on=true
  172. second=2
  173. n=1
  174. hour=12
  175. m=5
  176. [SMSAntispam.redis]
  177. name = "answer"
  178. proto = "tcp"
  179. addr = "172.16.33.54:6379"
  180. idle = 100
  181. active = 100
  182. dialTimeout = "500ms"
  183. readTimeout = "1s"
  184. writeTimeout = "1s"
  185. idleTimeout = "80s"
  186. expire = "10m"
  187. [bfs]
  188. timeout="500ms"
  189. maxFileSize=8388608
  190. bucket="b"
  191. url="http://bfs.bilibili.co/bfs/"
  192. method="PUT"
  193. key="25bf7f1ec06cf75a"
  194. secret="dba1dc9d43472cced48b9dc9816a46"
  195. faceBucket="face"
  196. facekey="792d70f16e958493"
  197. facesecret="08525fe929bdb26c3a6009afd7318f"
  198. [facebfs]
  199. timeout="500ms"
  200. maxFileSize=8388608
  201. url="http://bfs.bilibili.co/bfs/"
  202. method="PUT"
  203. bucket="face"
  204. key="792d70f16e958493"
  205. secret="08525fe929bdb26c3a6009afd7318f"
  206. [faceantispam]
  207. on=true
  208. second=60
  209. n=10
  210. hour=1
  211. m=100
  212. [faceantispam.redis]
  213. name = "member/account-interface"
  214. proto = "unix"
  215. addr = "/tmp/uat-redisantispam-redis.sock"
  216. active = 10
  217. idle = 1
  218. dialTimeout = "90ms"
  219. readTimeout = "100ms"
  220. writeTimeout = "100ms"
  221. idleTimeout = "80s"
  222. expire = "24h"
  223. [switch]
  224. updatePropertyPhoneRequired = true
  225. [geetest]
  226. [geetest.PC]
  227. captchaId = "a703e7d11eda930ca87be02c1a80ff97"
  228. privateKey = "df5eacf78b4afc79a052f199939e946a"
  229. [geetest.H5]
  230. captchaId = "bf666f87e5cca24ddb4c1dbeb70912b8"
  231. privateKey = "d1e0bc5eadc754f8cd522c6fed5e175d"
  232. [Account]
  233. RemoveLoginLogCIDR = ["222.73.196.18/28", "121.46.231.66/29", "61.130.181.50/28", "61.244.26.110/30", "103.36.115.65/32", "114.134.80.196/32", "218.189.16.245/32", "202.153.91.146/32", "202.153.91.76/32", "202.153.91.97/32", "103.193.127.56/32", "116.211.6.86/30", "123.124.149.6/32", "36.112.7.18/32"]
  234. [accountnotify]
  235. key = "4ba46ba31f9a44ef"
  236. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  237. group = "AccountNotify-MainAccount-P"
  238. topic = "AccountNotify-T"
  239. action = "pub"
  240. buffer = 2048
  241. name = "account-notify-job/databus"
  242. proto = "tcp"
  243. addr = "172.18.33.50:6205"
  244. idle = 1
  245. active = 1
  246. dialTimeout = "1s"
  247. readTimeout = "60s"
  248. writeTimeout = "1s"
  249. idleTimeout = "10s"
  250. [BatchRelAntispam]
  251. on=true
  252. second=2
  253. n=1
  254. hour=1
  255. m=10
  256. [BatchRelAntispam.redis]
  257. name = "member/account-interface"
  258. proto = "unix"
  259. addr = "/tmp/uat-redisantispam-redis.sock"
  260. active = 10
  261. idle = 1
  262. dialTimeout = "90ms"
  263. readTimeout = "100ms"
  264. writeTimeout = "100ms"
  265. idleTimeout = "80s"
  266. expire = "24h"
  267. [vipThirdVerifyConfig]
  268. authAppkeyMap = {"7xio6i8k93i5e4er"="lc1cqoasuxpeodvkwg5xkemell2eavwa"}