videoup-service.toml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/videoup-service.pid"
  5. dir = "./"
  6. perf = "127.0.0.1:6327"
  7. checkFile = "/data/www/videoup-service.html"
  8. family = "videoup-service"
  9. tick = "5m"
  10. chanSize = 1
  11. dmVerifyKey = "53e2fa226f5ad348"
  12. asyncThreshold = 3
  13. splitThreshold = 6
  14. splitGroupCount = 2
  15. failThreshold = 3
  16. editTimeout = "10s"
  17. [monitor]
  18. env = "pro"
  19. tels = "15871451480,18733334444"
  20. count = 10
  21. [app]
  22. key = "b8f239ca38a53308"
  23. secret = "5460ef72fe13c10dfb53442b9111427e"
  24. [host]
  25. mission = "http://172.16.33.104"
  26. account = "http://account.bilibili.co"
  27. monitor = "http://ops-mng.bilibili.co"
  28. apiCo = "http://uat-api.bilibili.co"
  29. msg = "http://message.bilibili.co"
  30. [xlog]
  31. dir = "/data/log/videoup-service/"
  32. [xlog.elk]
  33. project = "videoup-service"
  34. addr = "172.18.20.17:8520"
  35. chanSize = 10240
  36. [statsd]
  37. project = "videoup-service"
  38. addr = "172.18.20.15:8200"
  39. chanSize = 10240
  40. [httpClient]
  41. [httpClient.read]
  42. key = "b8f239ca38a53308"
  43. secret = "5460ef72fe13c10dfb53442b9111427e"
  44. dial = "500ms"
  45. timeout = "1s"
  46. keepAlive = "60s"
  47. timer = 10
  48. [httpClient.read.breaker]
  49. window = "10s"
  50. sleep = "100ms"
  51. bucket = 10
  52. ratio = 0.5
  53. request = 100
  54. [httpClient.write]
  55. key = "b8f239ca38a53308"
  56. secret = "5460ef72fe13c10dfb53442b9111427e"
  57. dial = "500ms"
  58. timeout = "1s"
  59. keepAlive = "60s"
  60. timer = 10
  61. [httpClient.write.breaker]
  62. window = "10s"
  63. sleep = "100ms"
  64. bucket = 10
  65. ratio = 0.5
  66. request = 100
  67. [bm]
  68. addr = "0.0.0.0:6328"
  69. maxListen = 1000
  70. timeout = "1s"
  71. [antispamConf]
  72. on=true
  73. second=1
  74. n=2
  75. hour=1
  76. m=10
  77. [antispamConf.redis]
  78. name = "video-service/track"
  79. proto = "tcp"
  80. addr = "172.16.33.205:6381"
  81. idle = 10
  82. active = 10
  83. dialTimeout = "500ms"
  84. readTimeout = "1s"
  85. writeTimeout = "1s"
  86. idleTimeout = "80s"
  87. expire = "24m"
  88. [db]
  89. [db.archive]
  90. name = "172.16.33.205:3308"
  91. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_archive?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  92. active = 5
  93. idle = 2
  94. idleTimeout ="4h"
  95. queryTimeout = "5s"
  96. execTimeout = "5s"
  97. tranTimeout = "10s"
  98. [db.archive.breaker]
  99. window = "3s"
  100. sleep = "100ms"
  101. bucket = 10
  102. ratio = 0.5
  103. request = 100
  104. [db.archiveRead]
  105. name = "172.16.33.205:3308"
  106. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_archive?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  107. active = 5
  108. idleTimeout ="4h"
  109. queryTimeout = "5s"
  110. execTimeout = "5s"
  111. tranTimeout = "10s"
  112. [db.archiveRead.breaker]
  113. window = "3s"
  114. sleep = "100ms"
  115. bucket = 10
  116. ratio = 0.5
  117. request = 100
  118. [db.archiveSlave]
  119. addr = "172.18.16.67:3403"
  120. dsn = "test:test@tcp(172.18.16.67:3403)/bilibili_archive?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  121. active = 5
  122. idle = 5
  123. idleTimeout = "4h"
  124. queryTimeout = "150ms"
  125. execTimeout = "100ms"
  126. tranTimeout = "200ms"
  127. [db.archiveSlave.breaker]
  128. window = "3s"
  129. sleep = "100ms"
  130. bucket = 10
  131. ratio = 0.5
  132. request = 100
  133. [db.dede]
  134. name = "172.16.33.205:3307"
  135. dsn = "dede_test:dede_test@tcp(172.16.33.205:3307)/bilibili?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  136. active = 5
  137. idle = 2
  138. idleTimeout ="4h"
  139. queryTimeout = "5s"
  140. execTimeout = "5s"
  141. tranTimeout = "10s"
  142. [db.dede.breaker]
  143. window = "3s"
  144. sleep = "100ms"
  145. bucket = 10
  146. ratio = 0.5
  147. request = 100
  148. [db.manager]
  149. name = "172.16.33.205:3308"
  150. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_manager?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  151. active = 5
  152. idle = 2
  153. idleTimeout ="4h"
  154. queryTimeout = "5s"
  155. execTimeout = "5s"
  156. tranTimeout = "10s"
  157. [db.manager.breaker]
  158. window = "3s"
  159. sleep = "100ms"
  160. bucket = 10
  161. ratio = 0.5
  162. request = 100
  163. [db.oversea]
  164. name = "172.16.33.205:3308"
  165. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_oversea?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  166. active = 5
  167. idle = 2
  168. idleTimeout ="4h"
  169. queryTimeout = "5s"
  170. execTimeout = "5s"
  171. tranTimeout = "10s"
  172. [db.oversea.breaker]
  173. window = "3s"
  174. sleep = "100ms"
  175. bucket = 10
  176. ratio = 0.5
  177. request = 100
  178. [videoupPub]
  179. key = "0PtMsLLxWyyvoTgAyLCD"
  180. secret = "0PtMsLLxWyyvoTgAyLCE"
  181. group = "Videoup-Videoup2Bvc-P"
  182. topic = "Videoup2Bvc"
  183. action = "pub"
  184. offset = "old"
  185. buffer = 128
  186. name = "videoup-service/databus"
  187. proto = "tcp"
  188. addr = "172.16.33.158:6205"
  189. active = 1
  190. idle = 1
  191. dialTimeout = "1s"
  192. readTimeout = "1s"
  193. writeTimeout = "1s"
  194. idleTimeout = "10s"
  195. [videoupPGCPub]
  196. key = "0PtMsLLxWyyvoTgAyLCD"
  197. secret = "0PtMsLLxWyyvoTgAyLCE"
  198. group = "Videoup-PGCVideoup2Bvc-P"
  199. topic = "PGCVideoup2Bvc"
  200. action = "pub"
  201. offset = "old"
  202. buffer = 128
  203. name = "videoup-service/databus"
  204. proto = "tcp"
  205. addr = "172.16.33.158:6205"
  206. active = 1
  207. idle = 1
  208. dialTimeout = "1s"
  209. readTimeout = "1s"
  210. writeTimeout = "1s"
  211. idleTimeout = "10s"
  212. [redis]
  213. [redis.track]
  214. name = "video-service/track"
  215. proto = "tcp"
  216. addr = "172.18.33.61:6807"
  217. idle = 10
  218. active = 10
  219. dialTimeout = "1s"
  220. readTimeout = "1s"
  221. writeTimeout = "1s"
  222. idleTimeout = "10s"
  223. expire = "10s"
  224. [keepArc]
  225. aids = [16201808]
  226. mid = 7784978
  227. [pubAgent]
  228. pgcSubmit = "http://172.18.33.137:9510"
  229. pgcDRMSubmit = "http://172.18.33.137:9510"
  230. ugcSubmit = "http://172.18.33.137:9510"
  231. Proxy = "http://172.18.33.137:11080"
  232. [memcache]
  233. [memcache.archive]
  234. name = "creative/archive"
  235. proto = "tcp"
  236. addr = "172.16.33.54:11213"
  237. active = 10
  238. idle = 5
  239. dialTimeout = "1s"
  240. readTimeout = "1s"
  241. writeTimeout = "1s"
  242. idleTimeout = "80s"
  243. tplExpire = "60s"
  244. [property]
  245. [[property.msg]]
  246. to = "staff"
  247. msgid = 1
  248. code = "1_19_1"
  249. title = "多人合作投稿申请"
  250. content = 'up主%s邀请您作为%s参与稿件《%s》(av%d)的多人合作,在网页端创作中心查看吧#{点击查看}{"https://member.bilibili.com/v2#/upload-manager/article/cooperation"}'
  251. [[property.msg]]
  252. to = "up"
  253. msgid = 2
  254. code = "1_19_2"
  255. title = "参与者同意参与多人合作投稿"
  256. content = '参与者%s已接受您的邀请作为%s参与稿件《%s》(av%d)的多人合作,在网页端创作中心查看吧#{点击查看}{"https://member.bilibili.com/v2#/upload-manager/article"}'
  257. [[property.msg]]
  258. to = "up"
  259. msgid = 3
  260. code = "1_19_3"
  261. title = "参与者拒绝参与多人合作投稿"
  262. content = '参与者%s已拒绝您的邀请作为%s参与稿件《%s》(av%d)的多人合作,在网页端创作中心查看吧#{点击查看}{"https://member.bilibili.com/v2#/upload-manager/article"}'
  263. [[property.msg]]
  264. to = "staff"
  265. msgid = 4
  266. code = "1_19_4"
  267. title = "多人合作投稿参与类型变更申请"
  268. content = 'up主%s申请您参与稿件《%s》(av%d)的参与类型由%s变更为%s,在网页端创作中心查看吧#{点击查看}{"https://member.bilibili.com/v2#/upload-manager/article/cooperation"}'
  269. [[property.msg]]
  270. to = "up"
  271. msgid = 5
  272. code = "1_19_5"
  273. title = "参与者同意多人合作投稿参与类型变更"
  274. content = '参与者%s已同意您申请其参与稿件《%s》(av%d)的参与类型由%s变更为%s,在网页端创作中心查看吧#{点击查看}{"https://member.bilibili.com/v2#/upload-manager/article"}'
  275. [[property.msg]]
  276. to = "up"
  277. msgid = 6
  278. code = "1_19_6"
  279. title = "参与者拒绝多人合作投稿参与类型变更"
  280. content = '参与者%s已拒绝您申请其参与稿件《%s》(av%d)的参与类型由%s变更为%s,在网页端创作中心查看吧#{点击查看}{"https://member.bilibili.com/v2#/upload-manager/article"}'
  281. [[property.msg]]
  282. to = "up"
  283. msgid = 7
  284. code = "1_19_7"
  285. title = "终止多人合作投稿申请"
  286. content = '合作者%s申请终止其作为稿件《%s》(av%d)的%s的多人合作,在网页端创作中心查看吧#{点击查看}{"https://member.bilibili.com/v2#/upload-manager/article"}'
  287. [[property.msg]]
  288. to = "staff"
  289. msgid = 8
  290. code = "1_19_8"
  291. title = "同意终止多人合作投稿"
  292. content = 'up主%s已终止参与者%s作为稿件《%s》(av%d)的%s的多人合作,在网页端创作中心查看吧#{点击查看}{"https://member.bilibili.com/v2#/upload-manager/article/cooperation"}'
  293. [[property.msg]]
  294. to = "staff"
  295. msgid = 9
  296. code = "1_19_9"
  297. title = "终止多人合作投稿申请"
  298. content = 'up主%s申请终止您作为稿件《%s》(av%d)的%s的多人合作,在网页端创作中心查看吧#{点击查看}{"https://member.bilibili.com/v2#/upload-manager/article/cooperation"}'
  299. [[property.msg]]
  300. to = "up"
  301. msgid = 10
  302. code = "1_19_10"
  303. title = "同意终止多人合作投稿"
  304. content = 'up主%s已终止参与者%s作为稿件《%s》(av%d)的%s的多人合作,在网页端创作中心查看吧#{点击查看}{"https://member.bilibili.com/v2#/upload-manager/article"}'
  305. [[property.msg]]
  306. to = "up"
  307. msgid = 11
  308. code = "1_19_11"
  309. title = "拒绝终止多人合作投稿"
  310. content = 'up主%s未能终止参与者%s作为稿件《%s》(av%d)的%s的多人合作,在网页端创作中心查看吧#{点击查看}{"https://member.bilibili.com/v2#/upload-manager/article"}'
  311. [[property.msg]]
  312. to = "up"
  313. msgid = 12
  314. code = "1_19_12"
  315. title = "管理员解除合作关系"
  316. content = '管理员解除了您与参与者%s在稿件《%s》(av%d)中合作关系,在网页端创作中心查看吧#{点击查看}{"https://member.bilibili.com/v2#/upload-manager/article"}'
  317. [[property.msg]]
  318. to = "staff"
  319. msgid = 13
  320. code = "1_19_12"
  321. title = "管理员解除合作关系"
  322. content = '管理员解除了您与UP主%s在稿件《%s》(av%d)中合作关系,在网页端创作中心查看吧#{点击查看}{"https://member.bilibili.com/v2#/upload-manager/article"}'