feedback-test.toml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. env = "test"
  2. [xlog]
  3. dir = "/data/log/feedback/"
  4. [app]
  5. key = "e7482d29be4a95b8"
  6. secret = "9e803791cdef756e75faee68e12b7442"
  7. [bm]
  8. [bm.outer]
  9. addr = "0.0.0.0:6171"
  10. timeout = "1s"
  11. [bm.local]
  12. addr = "0.0.0.0:6172"
  13. timeout = "1s"
  14. [mysql]
  15. [mysql.master]
  16. addr = "172.16.33.205:3308"
  17. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_feedback?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8mb4,utf8"
  18. active = 5
  19. idle = 2
  20. idleTimeout ="4h"
  21. queryTimeout = "100ms"
  22. execTimeout = "100ms"
  23. tranTimeout = "200ms"
  24. [mysql.master.breaker]
  25. window = "3s"
  26. sleep = "100ms"
  27. bucket = 10
  28. ratio = 0.5
  29. request = 100
  30. [bfs]
  31. addr = "http://bfs.bilibili.co"
  32. bucket = "test"
  33. key = "221bce6492eba70f"
  34. secret = "6eb80603e85842542f9736eb13b7e3"
  35. # 上传文件大小限制为1M
  36. maxFileSize = 1048576
  37. [feedback]
  38. # replys page size
  39. replysNum = 50
  40. # 发送内容长度限制为400字符
  41. maxContentSize = 400
  42. imgLimit = 4