block-job-test.toml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. [log]
  2. dir = "/data/log/block-job"
  3. [db]
  4. addr = "127.0.0.1:3306"
  5. dsn = "root:54985498@tcp(127.0.0.1:3306)/bilibili_block?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  6. active = 20
  7. idle = 10
  8. idleTimeout ="4h"
  9. queryTimeout = "1s"
  10. execTimeout = "1s"
  11. tranTimeout = "2s"
  12. [db.breaker]
  13. window = "3s"
  14. sleep = "100ms"
  15. bucket = 10
  16. ratio = 0.5
  17. request = 100
  18. [memcache]
  19. name = "block"
  20. proto = "tcp"
  21. addr = ""
  22. idle = 5
  23. active = 10
  24. dialTimeout = "1s"
  25. readTimeout = "1s"
  26. writeTimeout = "1s"
  27. idleTimeout = "10s"
  28. expire = "24h"
  29. [bm]
  30. addr = "0.0.0.0:7551"
  31. maxListen = 10
  32. timeout = "1s"
  33. [httpClient]
  34. key = "33ac033ce123e999"
  35. secret = "0b2847315d32989a248294e350ac3ede"
  36. dial = "1s"
  37. timeout = "5s"
  38. keepAlive = "60s"
  39. [httpClient.breaker]
  40. window = "3s"
  41. sleep = "100ms"
  42. bucket = 10
  43. ratio = 0.5
  44. request = 100
  45. [databus]
  46. [databus.credit]
  47. key = "***"
  48. secret= "***"
  49. group= "Credit-MainAccountLaw-S"
  50. topic= "Credit-T"
  51. action="sub"
  52. name = "block-job/databus"
  53. proto = "tcp"
  54. addr = "127.0.0.1:6205"
  55. idle = 2
  56. active = 10
  57. dialTimeout = "1s"
  58. readTimeout = "60s"
  59. writeTimeout = "1s"
  60. idleTimeout = "10s"
  61. expire = "1h"
  62. [accountNotify]
  63. key = "4ba46ba31f9a44ef"
  64. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  65. group = "AccountNotify-MainAccount-P"
  66. topic = "AccountNotify-T"
  67. action = "pub"
  68. buffer = 128
  69. name = "usersuit-admin/databus"
  70. proto = "tcp"
  71. addr = "172.16.33.158:6205"
  72. active = 1
  73. idle = 1
  74. dialTimeout = "1s"
  75. readTimeout = "1s"
  76. writeTimeout = "1s"
  77. idleTimeout = "10s"
  78. [property]
  79. limitExpireCheckLimit = 100
  80. limitExpireCheckTick = "5m"
  81. creditExpireCheckLimit = 100
  82. creditExpireCheckTick = "5m"
  83. msgURL = "http://message.bilibili.co/api/notify/send.user.notify.do"
  84. [property.flag]
  85. expireCheck = true # 自动解禁检查
  86. creditSub = true # 小黑屋答题状态订阅
  87. [property.msg]
  88. [property.msg.blockRemove]
  89. code = "2_3_6"
  90. title = "账号封禁解除通知"
  91. content = "你的账号已经解除封禁,封禁期间禁止使用的各项社区功能已经恢复。请遵守社区规范,共同维护良好的社区氛围。"
  92. [managerLog]
  93. Key = "2511663d546f1413"
  94. Secret = "cde3b480836cc76df3d635470f991caa"
  95. Group = "LogAudit-MainSearch-P"
  96. Topic = "LogAudit-T"
  97. Action = "pub"
  98. Buffer = 10240
  99. Name = "log-audit/log-sub"
  100. Proto = "tcp"
  101. Addr = "172.18.33.50:6205"
  102. Active = 10
  103. Idle = 5
  104. DialTimeout = "200ms"
  105. ReadTimeout = "200ms"
  106. WriteTimeout = "200ms"
  107. IdleTimeout = "80s"