tv-interface.toml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. dir = "./"
  5. family = "tv-interface"
  6. env = "qa"
  7. tick = "10m"
  8. # Add Zone's middle. Migrate Home's cfg to Zone.0
  9. [Newzone]
  10. [Newzone.0]
  11. Name = "home"
  12. Top = 14
  13. Middle = 10
  14. Bottom = 10
  15. MiddleM = 21
  16. [Newzone.1]
  17. Name = "jp"
  18. Top = 5
  19. Middle = 12
  20. Bottom = 59
  21. TopM = 8
  22. MiddleM = 64
  23. [Newzone.4]
  24. Name = "cn"
  25. Top = 5
  26. Middle = 12
  27. Bottom = 59
  28. [Newzone.2]
  29. Name = "movie"
  30. Top = 5
  31. Bottom = 59
  32. [Newzone.3]
  33. Name = "documentary"
  34. Top = 6
  35. Bottom = 39
  36. [Newzone.5]
  37. Name = "tv"
  38. Top = 5
  39. Bottom = 59
  40. [Search]
  41. URL = "http://s.search.bilibili.co/main/suggest"
  42. MainVer = "v4"
  43. SugNum = 15
  44. SugType = "tv"
  45. SugPGCBuild = 1011
  46. Highlight = "true"
  47. HotwordFre = "3m"
  48. ResultURL = "http://s.search.bilibili.co/tv/search"
  49. UserSearch = "http://s.search.bilibili.co"
  50. [searchClient]
  51. key = "d1941c223cebf297"
  52. secret = "33a369a06f3fcec200dfb9d9f5e8a868"
  53. dial = "500ms"
  54. timeout = "2s"
  55. keepAlive = "60s"
  56. timer = 10
  57. [TVApp]
  58. MobiApp = "android"
  59. Build = "1007"
  60. Platform = "android"
  61. [Homepage]
  62. FollowSize = 10
  63. MaxRecomIntervs = 5
  64. LoadDuration = "10m"
  65. HideIndexShow = ["cn","jp"]
  66. [httpClient]
  67. key = "cadf599ba8b3796a"
  68. secret = "42fbb979aa742013d713a088f912673b"
  69. dial = "500ms"
  70. timeout = "2s"
  71. keepAlive = "60s"
  72. timer = 10
  73. [httpClient.breaker]
  74. window = "10s"
  75. sleep = "100ms"
  76. bucket = 10
  77. ratio = 0.5
  78. request = 100
  79. [PlayurlClient]
  80. key = "cadf599ba8b3796a"
  81. secret = "42fbb979aa742013d713a088f912673b"
  82. dial = "500ms"
  83. timeout = "500ms"
  84. keepAlive = "60s"
  85. timer = 10
  86. [PlayurlClient.breaker]
  87. window = "10s"
  88. sleep = "100ms"
  89. bucket = 10
  90. ratio = 0.5
  91. request = 100
  92. [mysql]
  93. addr = "172.16.33.205:3308"
  94. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_tv?timeout=2s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  95. active = 20
  96. idle = 10
  97. idleTimeout ="4h"
  98. queryTimeout = "200ms"
  99. execTimeout = "200ms"
  100. tranTimeout = "200ms"
  101. [mysql.breaker]
  102. window = "3s"
  103. sleep = "100ms"
  104. bucket = 100
  105. ratio = 0.5
  106. request = 100
  107. [memcache]
  108. name = "tv/memcache"
  109. proto = "tcp"
  110. addr = "172.18.33.60:11231"
  111. active = 50
  112. idle = 10
  113. dialTimeout = "50ms"
  114. readTimeout = "100ms"
  115. writeTimeout = "100ms"
  116. idleTimeout = "80s"
  117. relateExpire = "20m"
  118. arcExpire = "1h"
  119. viewExpire = "1h"
  120. cmsExpire = "36h"
  121. hisExpire = "20m"
  122. mangoExpire = "10m"
  123. [log]
  124. dir = "/data/log/tv/"
  125. stdout = true
  126. [archiveRPC]
  127. timeout = "1s"
  128. [accountRPC]
  129. timeout = "1s"
  130. [favoriteRPC]
  131. timeout = "1s"
  132. [hisRPC]
  133. timeout = "3s"
  134. [cfg]
  135. zoneps = 40
  136. ModsReload = "70s"
  137. TypesReload = "1h"
  138. PageReload = "30m"
  139. IndexShowReload = "20m"
  140. EsIntervReload = "2m"
  141. DefaultSplash = "http://i0.hdslb.com/bfs/tvcover/39a900048b7f2e969661b03e72cf836fde2226e3.png"
  142. FavPs = 50
  143. PGCFilterBuild = 1011
  144. vipQns = ["74","112","116","64"]
  145. [cfg.AuditSign]
  146. key = "bili"
  147. secret = "bili.tv"
  148. [cfg.EmptyArc]
  149. ChanSize = 1024
  150. UnshelvePS = 2
  151. [cfg.ZonesInfo]
  152. pgcZonesID = [1,2,3,4,5]
  153. ugcZonesID = [6,7,8,9,10]
  154. zonesName = ["jp", "cn", "tv", "movie", "documentary"]
  155. TargetTypes = [3,4,36,155,160]
  156. ugcTypes = [160, 36, 4, 155, 3, 5, 167, 1, 165, 181, 129, 119]
  157. oldIdxMapping = {3=6,4=7,36=8,160=9,155=10}
  158. oldIdxJump = 1
  159. [cfg.AuthMsg]
  160. pgcOffline = "该内容已经PGC下架了,先看看别的吧"
  161. cmsInvalid = "该内容已经CMS下架了,先看看别的吧"
  162. licenseReject = "云视听播控平台鉴权失败,该内容暂时无法观看"
  163. [cfg.Dangbei]
  164. Pagesize = 50
  165. Expire = "1m"
  166. MangoPS = 30
  167. [cfg.HisCfg]
  168. Pagesize = 1000
  169. Businesses = ["archive","pgc"]
  170. [cfg.EsIdx]
  171. [cfg.EsIdx.PgcIdx]
  172. Business = "pgc_media"
  173. Index = "pgc_media"
  174. [cfg.EsIdx.UgcIdx]
  175. Business = "tv_ugc_archive"
  176. Index = "tv_ugc_archive"
  177. [cfg.IndexLabel]
  178. Fre = "30m"
  179. PGCOrder = ["style_id","season_version","area","is_finish","copyright","season_status","season_month","producer_id","pubdate","year"]
  180. UGCOrder = ["typeid","pubtime"]
  181. YearParam = ["pub_date","year"]
  182. [cfg.IndexLabel.YearV]
  183. [cfg.IndexLabel.YearV."80年代"]
  184. dur = "1980-1989"
  185. [cfg.IndexLabel.YearV."90年代"]
  186. dur = "1990-1999"
  187. [cfg.IndexLabel.YearV."更早"]
  188. dur = "1900-1979"
  189. [cfg.vipMark]
  190. V1HideChargeable = false
  191. EpFree = 2
  192. [cfg.vipMark.EP]
  193. Title = "vip"
  194. Cover = "http://i0.hdslb.com/bfs/tvcover/39a900048b7f2e969661b03e72cf836fde2226e3.png"
  195. [cfg.vipMark.LoadepMsg]
  196. Build = 101500
  197. Msg = "当前版本不支持会员内容播放,请升级至最新版本哦"
  198. [cfg.SnVipCorner]
  199. Title = "sn_vip_title"
  200. Cover = "sn_vip_cover"
  201. [HTTPServer]
  202. addr = "0.0.0.0:6683"
  203. timeout = "1s"
  204. [identify]
  205. whiteAccessKey = "a2a1eb0ac97d6ba08b85aa0151528f34"
  206. whiteMid = 23675773
  207. csrf = false
  208. [identify.app]
  209. key = "7c7ac0db1aa05587"
  210. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  211. [identify.memcache]
  212. name = "go-business/identify"
  213. proto = "tcp"
  214. addr = "172.16.33.54:11211"
  215. active = 10
  216. idle = 10
  217. dialTimeout = "1s"
  218. readTimeout = "1s"
  219. writeTimeout = "1s"
  220. idleTimeout = "80s"
  221. [identify.host]
  222. auth = "http://passport.bilibili.co"
  223. secret = "http://open.bilibili.co"
  224. [identify.httpClient]
  225. key = "7c7ac0db1aa05587"
  226. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  227. dial = "1s"
  228. timeout = "1s"
  229. keepAlive = "60s"
  230. [identify.httpClient.breaker]
  231. window = "10s"
  232. sleep = "100ms"
  233. bucket = 10
  234. ratio = 0.5
  235. request = 100
  236. [identify.httpClient.url]
  237. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  238. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  239. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  240. [redis]
  241. name = "tv-interface"
  242. proto = "tcp"
  243. #addr = "172.18.33.61:6886"
  244. addr = "localhost:6379"
  245. active = 10
  246. idle = 5
  247. dialTimeout = "1s"
  248. readTimeout = "1s"
  249. writeTimeout = "1s"
  250. idleTimeout = "10s"
  251. expire = "24h"
  252. cron = "*/5 * * * * *"
  253. [Host]
  254. data = "http://data.bilibili.co"
  255. ApiIndex = "http://api.bilibili.co/pgc/internal/tv/rank/index"
  256. ApiZone = "http://api.bilibili.co/pgc/internal/tv/rank/list"
  257. APIFollow = "http://bangumi.bilibili.com/api/mydynamic_follows"
  258. APIMedia = "https://bangumi.bilibili.com/view/api/season"
  259. APIMediaV2 = "http://api.bilibili.com/pgc/view/app/season"
  260. APIRecom = "https://bangumi.bilibili.com/api/season/v2/recommend"
  261. ApiNewindex = "http://api.bilibili.co/pgc/internal/season/cards"
  262. UgcPlayURL = "http://uat-tv-ugc.bilibili.co/v2/playurl"
  263. AIUgcType = "http://data-test.bilibili.co/data/rank/all_region-%d-tv.json"
  264. FavAdd = "http://api.bilibili.co/x/internal/v2/fav/video/add"
  265. FavDel = "http://api.bilibili.co/x/internal/v2/fav/video/del"
  266. ESHost = "http://uat-manager.bilibili.co"
  267. ApiCo = "http://uat-api.bilibili.co"
  268. [Wild]
  269. [Wild.wildSearch]
  270. userNum = 1
  271. userVideoLimit = 1
  272. biliUserNum = 1
  273. biliUserVl = 1
  274. seasonNum = 3
  275. movieNum = 3
  276. seasonMore = 1
  277. movieMore = 1
  278. [region]
  279. stopSpan = "5m"
  280. [style]
  281. labelSpan = "5m"
  282. [IP]
  283. [IP.White]
  284. TvVip = ["183.3.131.82", "10.23.162.22"]