space-test.toml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. # This is a TOML document. Boom.
  2. [identify]
  3. whiteAccessKey = ""
  4. whiteMid = 0
  5. [identify.app]
  6. key = "7c7ac0db1aa05587"
  7. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  8. [identify.memcache]
  9. name = "go-business/identify"
  10. proto = "tcp"
  11. addr = "172.16.33.54:11211"
  12. active = 10
  13. idle = 5
  14. dialTimeout = "1s"
  15. readTimeout = "1s"
  16. writeTimeout = "1s"
  17. idleTimeout = "80s"
  18. [identify.host]
  19. auth = "http://passport.bilibili.com"
  20. secret = "http://open.bilibili.com"
  21. [identify.httpClient]
  22. key = "7c7ac0db1aa05587"
  23. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  24. dial = "30ms"
  25. timeout = "150ms"
  26. keepAlive = "60s"
  27. [identify.httpClient.breaker]
  28. window ="10s"
  29. sleep ="100ms"
  30. bucket = 10
  31. ratio = 0.5
  32. request = 100
  33. [identify.httpClient.url]
  34. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  35. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  36. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  37. [supervisor]
  38. On = true
  39. Begin = "2018-01-20T00:00:00+08:00"
  40. End = "2018-01-30T23:59:59+08:00"
  41. [log]
  42. dir = "/data/log/space-interface/"
  43. #[log.syslog]
  44. # proto = "udp"
  45. # addr = "172.18.19.22:9999"
  46. # project = "space"
  47. # chanSize = 10240
  48. [app]
  49. key = "364a740488811396"
  50. secret = "995a63b0bae95afd7d1b0b892d0e14d2"
  51. [HTTPServer]
  52. addr = "0.0.0.0:6901"
  53. timeout = "1s"
  54. [mysql]
  55. addr = "172.16.33.205"
  56. dsn = "space:9TtI2XkoEqk6GpIL@tcp(172.16.33.205:3306)/space?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  57. active = 5
  58. idle = 2
  59. idleTimeout = "4h"
  60. queryTimeout = "100ms"
  61. execTimeout = "100ms"
  62. tranTimeout = "200ms"
  63. [mysql.breaker]
  64. window = "3s"
  65. sleep = "100ms"
  66. bucket = 10
  67. ratio = 0.5
  68. request = 100
  69. [hbase]
  70. master = ""
  71. meta = ""
  72. dialTimeout = "1s"
  73. readTimeout = "300ms"
  74. readsTimeout = "600ms"
  75. writeTimeout = "200ms"
  76. writesTimeout = "600ms"
  77. [hbase.zookeeper]
  78. root = ""
  79. addrs = ["10.23.58.154:2181","10.23.58.141:2181","10.23.58.20:2181"]
  80. timeout = "30s"
  81. [redis]
  82. name = "space/channel"
  83. proto = "tcp"
  84. addr = "172.16.33.54:6379"
  85. idle = 10
  86. active = 10
  87. dialTimeout = "1s"
  88. readTimeout = "1s"
  89. writeTimeout = "1s"
  90. idleTimeout = "10s"
  91. clExpire = "10m"
  92. upArtExpire = "24h"
  93. upArcExpire = "24h"
  94. [memcache]
  95. proto = "tcp"
  96. addr = "127.0.0.1:11211"
  97. idle = 10
  98. active = 10
  99. dialTimeout = "2s"
  100. readTimeout = "2s"
  101. writeTimeout = "2s"
  102. idleTimeout = "80s"
  103. expire = "1h"
  104. settingExpire = "24h"
  105. noticeExpire = "24h"
  106. topArcExpire = "24h"
  107. mpExpire = "24h"
  108. themeExpire = "24h"
  109. [rule]
  110. maxChNameLen = 20
  111. maxChIntroLen = 60
  112. maxChLimit = 10
  113. maxChArcLimit = 300
  114. MaxChArcAddLimit = 100
  115. maxChArcsPs = 100
  116. maxRiderPs = 30
  117. maxArticlePs = 30
  118. chIndexCnt = 5
  119. maxNoticeLen = 150
  120. maxTopReasonLen = 40
  121. maxMpReasonLen = 40
  122. maxMpLimit = 3
  123. BlackFre="3s"
  124. [httpClient]
  125. [httpClient.read]
  126. key = "364a740488811396"
  127. secret = "995a63b0bae95afd7d1b0b892d0e14d2"
  128. dial = "1s"
  129. timeout = "300ms"
  130. keepAlive = "60s"
  131. [httpClient.write]
  132. key = "364a740488811396"
  133. secret = "995a63b0bae95afd7d1b0b892d0e14d2"
  134. dial = "1s"
  135. timeout = "2s"
  136. keepAlive = "60s"
  137. [httpClient.game]
  138. key = "EeOpM531WqQnBvu4"
  139. secret = "gHtKtXTHZJDqGP1tg9ORFs0YWV3kW12V"
  140. dial = "1s"
  141. timeout = "500ms"
  142. keepAlive = "60s"
  143. [host]
  144. api = "http://uat-api.bilibili.co"
  145. bangumi = "http://uat-bangumi.bilibili.com"
  146. show = "http://uat-show.bilibili.co"
  147. mall = "http://fat1-mall.bilibili.co"
  148. apivc = "http://api.vc.bilibili.co"
  149. apilive = "http://api.live.bilibili.co"
  150. acc = "http://account.bilibili.co"
  151. game = "http://api.biligame.com"
  152. search = "http://s.search.bilibili.co"
  153. space = "http://space.bilibili.co"
  154. elec = "http://uat-elec.bilibili.com"
  155. #appGame = "http://line1-game-open-api.biligame.net"
  156. [routerConfig]
  157. [routerConfig.supervisor]
  158. On = true
  159. Begin = "2017-10-17T00:00:00+08:00"
  160. End = "2017-10-30T23:59:59+08:00"