web-goblin-job-test.toml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. [log]
  2. #stdout = true
  3. dir = "/data/log/web-goblin-job/"
  4. [rule]
  5. broadFeed = 5000
  6. before = "2h"
  7. sleepInterval = "5m"
  8. alertTitle = "你订阅的比赛即将开播了"
  9. alertBodyDefault = "%s中,你订阅的赛程【%s %s VS %s】即将开播,快前去观看比赛吧! %s"
  10. alertBodySpecial = "%s中,你订阅的赛程【%s %s】即将开播,快前去观看比赛吧! %s"
  11. scoreSleep = "1h"
  12. coinPercent = 0.4
  13. favPercent = 0.3
  14. dmPercent = 0.4
  15. replyPercent = 0.4
  16. viewPercent = 0.25
  17. likePercent = 0.4
  18. sharePercent = 0.6
  19. newDay = 14.0
  20. newPercent = 1.5
  21. [httpClient]
  22. key = "7c7ac0db1aa05587"
  23. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  24. dial = "1s"
  25. timeout = "1s"
  26. keepAlive = "60s"
  27. [messageHTTPClient]
  28. key = "7c7ac0db1aa05587"
  29. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  30. dial = "50ms"
  31. timeout = "1s"
  32. keepAlive = "60s"
  33. [host]
  34. api = "http://api.bilibili.co"
  35. [favoriteRPC]
  36. timeout = "1s"
  37. [app]
  38. key = "7c7ac0db1aa05587"
  39. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  40. [db]
  41. [db.esports]
  42. addr = "172.16.33.205:3308"
  43. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_esports?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  44. active = 5
  45. idle = 2
  46. idleTimeout = "4h"
  47. queryTimeout = "100ms"
  48. execTimeout = "100ms"
  49. tranTimeout = "200ms"
  50. [db.esports.breaker]
  51. window = "3s"
  52. sleep = "100ms"
  53. bucket = 10
  54. ratio = 0.5
  55. [push]
  56. businessID = 1
  57. businessToken = "fi6xf5xmldudexsh5tgukerohn3mgrl3"
  58. retryTimes = 3
  59. partSize = 100000
  60. title = "你订阅的比赛开播了~"
  61. bodyDefault = "%s %s VS %s 已开播,快来观看比赛吧! %s"
  62. bodySpecial = "%s %s 已开播,快来观看比赛吧!%s"
  63. onlyMids = "27905253,94012604"
  64. [message]
  65. URL = "http://message.bilibili.co/api/notify/send.user.notify.do"
  66. MC = "1_4_2"
  67. [archiveNotifySub]
  68. key = "9765cdac5894f2ba"
  69. secret = "68bc8df51f0935d5f4d24721fbc15a80"
  70. group = "ArchiveNotify-MainWebSvr-Search-S"
  71. topic = "ArchiveNotify-T"
  72. action = "sub"
  73. name = "web-goblin-job/archiveNotifysub"
  74. proto = "tcp"
  75. addr = "172.16.33.158:6205"
  76. idle = 1
  77. active = 1
  78. dialTimeout = "1s"
  79. readTimeout = "60s"
  80. writeTimeout = "1s"
  81. idleTimeout = "10s"