video-c.toml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. [log]
  2. stdout = true
  3. v = 5
  4. [mysql]
  5. addr = "172.16.38.91:3306"
  6. dsn = "root:123456@tcp(172.16.38.91:3306)/bbq?allowNativePasswords=true&timeout=800ms&readTimeout=200ms&writeTimeout=800ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  7. readDSN = ["root:123456@tcp(172.16.38.91:3306)/bbq?allowNativePasswords=true&timeout=800ms&readTimeout=200ms&writeTimeout=800ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  8. active = 20
  9. idle = 10
  10. idleTimeout ="4h"
  11. queryTimeout = "800ms"
  12. execTimeout = "800ms"
  13. tranTimeout = "100ms"
  14. [dmmysql]
  15. addr = "172.16.38.91:3306"
  16. dsn = "root:123456@tcp(172.16.38.91:3306)/bbq?allowNativePasswords=true&timeout=800ms&readTimeout=1200ms&writeTimeout=800ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  17. readDSN = ["root:123456@tcp(172.16.38.91:3306)/bbq?allowNativePasswords=true&timeout=800ms&readTimeout=1200ms&writeTimeout=800ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  18. active = 20
  19. idle = 10
  20. idleTimeout ="4h"
  21. queryTimeout = "800ms"
  22. execTimeout = "800ms"
  23. tranTimeout = "1000ms"
  24. [redis]
  25. name = "bbq-dev"
  26. proto = "tcp"
  27. addr = "172.16.38.91:6379"
  28. idle = 10
  29. active = 10
  30. dialTimeout = "1s"
  31. readTimeout = "1s"
  32. writeTimeout = "1s"
  33. idleTimeout = "10s"
  34. expire = "1m"
  35. [httpClient]
  36. [httpClient.normal]
  37. dial = "500ms"
  38. timeout = "1s"
  39. keepAlive = "60s"
  40. timer = 10
  41. key = "c8c48e784e05acfb"
  42. secret = "aa63ee0a10afa358d02a07e7abcec546"
  43. [httpClient.normal.breaker]
  44. window = "3s"
  45. sleep = "100ms"
  46. bucket = 10
  47. ratio = 0.5
  48. request = 100
  49. [httpClient.slow]
  50. dial = "500ms"
  51. timeout = "1s"
  52. keepAlive = "60s"
  53. timer = 10
  54. key = "c8c48e784e05acfb"
  55. secret = "aa63ee0a10afa358d02a07e7abcec546"
  56. [httpClient.slow.breaker]
  57. window = "3s"
  58. sleep = "100ms"
  59. bucket = 10
  60. ratio = 0.5
  61. request = 100
  62. [grpcClient]
  63. [grpcClient.account]
  64. addr = "discovery://default/account.service"
  65. [grpcClient.account.wardenconf]
  66. dial = "3000ms"
  67. timeout = "5000ms"
  68. [grpcClient.recsys]
  69. addr = "discovery://default/bbq.service.recsys"
  70. [grpcClient.recsys.wardenconf]
  71. dial = "3000ms"
  72. timeout = "5000ms"
  73. [grpcClient.bbqes]
  74. addr = "discovery://default/bbq.service.search"
  75. [grpcClient.bbqes.wardenconf]
  76. dial = "100ms"
  77. timeout = "5000ms"
  78. [grpcClient.videoimage]
  79. addr = "discovery://default/bbq.service.image"
  80. [grpcClient.videoimage.wardenconf]
  81. dial = "3000ms"
  82. timeout = "5000ms"
  83. [grpcClient.bvcplay]
  84. addr = "172.16.39.21:14500"
  85. [grpcClient.bvcplay.wardenconf]
  86. dial = "3000ms"
  87. timeout = "5000ms"
  88. [grpcClient.notice]
  89. addr = "discovery://default/bbq.service.notice"
  90. [grpcClient.notice.wardenconf]
  91. dial = "3000ms"
  92. timeout = "5000ms"
  93. [grpcClient.user]
  94. addr = "discovery://default/bbq.service.user"
  95. [grpcClient.user.wardenconf]
  96. dial = "3000ms"
  97. timeout = "5000ms"
  98. [grpcClient.sysmsg]
  99. addr = "discovery://default/bbq.service.sysmsg"
  100. [grpcClient.sysmsg.wardenconf]
  101. dial = "3000ms"
  102. timeout = "5000ms"
  103. [grpcClient.video]
  104. addr = "discovery://default/bbq.service.video"
  105. [grpcClient.video.wardenconf]
  106. dial = "3000ms"
  107. timeout = "5000ms"
  108. [grpcClient.filter]
  109. addr = "discovery://default/filter.service"
  110. [grpcClient.filter.wardenconf]
  111. dial = "3000ms"
  112. timeout = "5000ms"
  113. [antiSpam]
  114. [antiSpam.relation]
  115. on=true
  116. second=3
  117. n=3
  118. hour=1
  119. m=500
  120. [antiSpam.like]
  121. on=true
  122. second=1
  123. n=2
  124. hour=1
  125. m=500
  126. [antiSpam.reply]
  127. on=true
  128. second=10
  129. n=8
  130. hour=1
  131. m=100
  132. [antiSpam.upload]
  133. on=true
  134. second=3
  135. n=1
  136. hour=1
  137. m=20
  138. [antiSpam.report]
  139. on=true
  140. second=1
  141. n=5
  142. hour=1
  143. m=30
  144. [subTitleCfg]
  145. user_base = 1
  146. user_collection = 1
  147. user_fan = 1
  148. user_follow = 1
  149. user_like = 1
  150. [tmap]
  151. 1= "动画"
  152. 3= "音乐"
  153. 4= "游戏"
  154. 5= "娱乐"
  155. 11= "电视剧"
  156. 13= "番剧"
  157. 23= "电影"
  158. 36= "科技"
  159. 119= "鬼畜"
  160. 129= "舞蹈"
  161. 155= "时尚"
  162. 160= "生活"
  163. 165= "广告"
  164. 167= "国创"
  165. 177= "纪录片"
  166. 181= "影视"
  167. [urls]
  168. bvc_batch = "http://bvc-vod.bilibili.co/playurl/batch"
  169. reply_cursor = "http://uat-api.bilibili.co/x/v2/reply/cursor"
  170. reply_add = "http://uat-api.bilibili.co/x/v2/reply/add"
  171. reply_list = "http://uat-api.bilibili.co/x/v2/reply"
  172. reply_subcursor = "http://uat-api.bilibili.co/x/v2/reply/reply/cursor"
  173. reply_report = "http://uat-api.bilibili.co/x/v2/reply/reply/report"
  174. reply_like = "http://uat-api.bilibili.co/x/v2/reply/action"
  175. account = "http://uat-api.bilibili.co/x/internal/v3/account/info"
  176. reply_counts = "http://uat-api.bilibili.co/x/internal/v2/reply/counts"
  177. reply_minfo = "http://uat-api.bilibili.co/x/internal/v2/reply/minfo"
  178. reply_hots = "http://uat-api.bilibili.co/x/internal/v2/reply/hots"
  179. [comment]
  180. type = 1
  181. [infoc]
  182. taskID = "001639"
  183. proto = "tcp"
  184. addr = "172.18.33.124:15140"
  185. chanSize = 10240
  186. [search]
  187. host = "s.search.bilibili.co"
  188. [[notices]]
  189. noticeType = 1
  190. showType = 1
  191. name = "赞"
  192. [[notices]]
  193. noticeType = 2
  194. showType = 2
  195. name = "评论"
  196. [[notices]]
  197. noticeType = 3
  198. showType = 3
  199. name = "粉丝"
  200. [[notices]]
  201. noticeType = 4
  202. showType = 4
  203. name = "系统"
  204. [upload]
  205. httpschema = "http://"