tv-admin-test.toml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. version = "1.0.0"
  2. user = "nobody"
  3. dir = "./"
  4. family = "tv-admin"
  5. trace = false
  6. debug = false
  7. env = "uat"
  8. [cfg]
  9. playpath = "upos-hz-tvshenhe.acgvideo.com"
  10. playurlAPI = "http://videodispatch-pgc.bilibili.co/v2/playurl"
  11. UPlayurlAPI = "http://uat-tv-ugc.bilibili.co/v2/playurl"
  12. auditRSize = 20
  13. intervLimit = 100
  14. SearInterMax = 20
  15. PGCTypes = ["番剧","电视剧","电影","纪录片",]
  16. PgcNames = {1 = "番剧",2="电影",3="纪录片",4="国创",5="电视剧"}
  17. ModIntMaxSize = 100
  18. TypesLoad = "2h"
  19. MangoErr = "以下内容因下架被删除推荐:"
  20. LoadSnFre = "30m"
  21. [cfg.RefLabel]
  22. Fre = "24h"
  23. PGCApi = "http://bangumi.bilibili.com/media/web_api/search/v2/condition"
  24. UgcType = "二级分区"
  25. UgcTime = "时间"
  26. AllValue = "-1"
  27. AllName = "全部"
  28. [cfg.Abnormal]
  29. CriticalCid = 12780000
  30. AbnormHours = 24
  31. ReloadFre = "5m"
  32. ExportTitles = ["cid","video_title","ctime","aid","arc_title","pub_time"]
  33. [cfg.SupportCat]
  34. PGCTypes = [1,2,3,4,5]
  35. UGCTypes = [3,4,36,155,160]
  36. ReloadFre = "10m"
  37. [cfg.AuditConsult]
  38. LikeLimit = 50
  39. UnshelveNb = 10
  40. MatchPS = 50000
  41. [cfg.Hosts]
  42. ESUgc = "http://uat-manager.bilibili.co/x/admin/search/query"
  43. Manager = "http://uat-manager.bilibili.co"
  44. [cfg.EsIdx]
  45. [cfg.EsIdx.UgcIdx]
  46. Business = "tv_ugc_archive"
  47. Index = "tv_ugc_archive"
  48. [log]
  49. dir = "/data/log/tv-admin/"
  50. [orm]
  51. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_tv?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  52. active = 5
  53. idle = 5
  54. idleTimeout = "4h"
  55. [HTTPServer]
  56. addr = "0.0.0.0:6683"
  57. timeout = "1s"
  58. [ormshow]
  59. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_show?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  60. active = 5
  61. idle = 5
  62. idleTimeout = "4h"
  63. [httpSearch]
  64. fullURL = "http://android-apk.bilibili.co/api/v1/archive/pack/apk"
  65. key = "89ffc6e896106fd3"
  66. secret = "1359cdbaf9ff6e2f9b6251579d966101"
  67. dial = "1s"
  68. timeout = "8s"
  69. keepAlive = "60s"
  70. timer = 1000
  71. [httpSearch.breaker]
  72. window = "3s"
  73. sleep = "100ms"
  74. bucket = 10
  75. ratio = 0.5
  76. request = 100
  77. [identify]
  78. whiteAccessKey = ""
  79. whiteMid = 0
  80. csrfOn = true
  81. [identify.app]
  82. key = "9cfc54570033cd61"
  83. secret = "9d63835fa38fe58a62d9f49ef5da296f"
  84. [identify.memcache]
  85. name = "go-business/identify"
  86. proto = "tcp"
  87. addr = "172.16.33.54:11211"
  88. active = 100
  89. idle = 100
  90. dialTimeout = "1s"
  91. readTimeout = "1s"
  92. writeTimeout = "1s"
  93. idleTimeout = "80s"
  94. [identify.host]
  95. auth = "http://passport.bilibili.co"
  96. secret = "http://open.bilibili.co"
  97. [identify.httpClient]
  98. key = "3c4e41f926e51656"
  99. secret = "26a2095b60c24154521d24ae62b885bb"
  100. dial = "30ms"
  101. timeout = "100ms"
  102. keepAlive = "60s"
  103. [identify.httpClient.breaker]
  104. window = "10s"
  105. sleep = "100ms"
  106. bucket = 10
  107. ratio = 0.5
  108. request = 100
  109. [identify.httpClient.url]
  110. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  111. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  112. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  113. [auth]
  114. managerHost = "http://uat-manager.bilibili.co"
  115. dashboardHost = "http://dashboard-mng.bilibili.co"
  116. dashboardCaller = "manager-go"
  117. [auth.DsHTTPClient]
  118. key = "manager-go"
  119. secret = "949bbb2dd3178252638c2407578bc7ad"
  120. dial = "1s"
  121. timeout = "1s"
  122. keepAlive = "60s"
  123. [auth.DsHTTPClient.breaker]
  124. window = "3s"
  125. sleep = "100ms"
  126. bucket = 10
  127. ratio = 0.5
  128. request = 100
  129. [auth.MaHTTPClient]
  130. key = "f6433799dbd88751"
  131. secret = "36f8ddb1806207fe07013ab6a77a3935"
  132. dial = "1s"
  133. timeout = "1s"
  134. keepAlive = "60s"
  135. [auth.MaHTTPClient.breaker]
  136. window = "3s"
  137. sleep = "100ms"
  138. bucket = 10
  139. ratio = 0.5
  140. request = 100
  141. [auth.session]
  142. sessionIDLength = 32
  143. cookieLifeTime = 1800
  144. cookieName = "mng-go"
  145. domain = ".bilibili.co"
  146. [auth.session.Memcache]
  147. name = "go-business/auth"
  148. proto = "tcp"
  149. addr = "172.16.33.54:11211"
  150. active = 10
  151. idle = 10
  152. dialTimeout = "1s"
  153. readTimeout = "1s"
  154. writeTimeout = "1s"
  155. idleTimeout = "80s"
  156. [httpClient]
  157. key = "cadf599ba8b3796a"
  158. secret = "42fbb979aa742013d713a088f912673b"
  159. dial = "500ms"
  160. timeout = "2s"
  161. keepAlive = "60s"
  162. timer = 10
  163. [httpClient.breaker]
  164. window = "10s"
  165. sleep = "100ms"
  166. bucket = 10
  167. ratio = 0.5
  168. request = 100
  169. [URLConf]
  170. getRemotePanelUrl = "https://gwboss.test.atianqi.com:443/boss/inter/bili/getBiliProduct"
  171. syncPanelUrl = "https://gwboss.test.atianqi.com:443/boss/inter/bili/editBiliProd"
  172. [YSTParam]
  173. queryPanelType = "allvod"
  174. insertPanelType = "svod"
  175. source = "snm_bilibili"
  176. insert = "1"
  177. update = "2"
  178. [bfs]
  179. host = "http://uat-bfs.bilibili.co"
  180. bucket = "test"
  181. key = "221bce6492eba70f"
  182. secret = "6eb80603e85842542f9736eb13b7e3"
  183. timeout = 1000
  184. [archiveRPC]
  185. timeout = "500ms"
  186. [archiveRPC.conf]
  187. domain = "api.bilibili.co"
  188. key = "53e2fa226f5ad348"
  189. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  190. [accountRPC]
  191. timeout = "500ms"
  192. [accountRPC.conf]
  193. domain = "api.bilibili.co"
  194. key = "53e2fa226f5ad348"
  195. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  196. [memcache]
  197. name = "feed-admin"
  198. proto = "tcp"
  199. addr = "172.18.33.60:11236"
  200. active = 10
  201. idle = 10
  202. dialTimeout = "1s"
  203. readTimeout = "1s"
  204. writeTimeout = "1s"
  205. idleTimeout = "80s"
  206. cmsExpire = "36h"