test.toml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. [log]
  2. stdout = true
  3. # dir = "./log/bbq"
  4. v = 5
  5. [bm]
  6. addr = "0.0.0.0:8802"
  7. timeout = "2s"
  8. [mysql]
  9. addr = "172.16.38.91:3306"
  10. 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"
  11. 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"]
  12. active = 20
  13. idle = 10
  14. idleTimeout ="4h"
  15. queryTimeout = "800ms"
  16. execTimeout = "800ms"
  17. tranTimeout = "1000ms"
  18. [onlineMysql]
  19. addr = "172.16.38.91:3306"
  20. 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"
  21. 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"]
  22. active = 20
  23. idle = 10
  24. idleTimeout ="4h"
  25. queryTimeout = "800ms"
  26. execTimeout = "800ms"
  27. tranTimeout = "1000ms"
  28. [redis]
  29. name = "bbq-web"
  30. proto = "tcp"
  31. addr = "172.16.38.91:6379"
  32. idle = 10
  33. active = 10
  34. dialTimeout = "1s"
  35. readTimeout = "1s"
  36. writeTimeout = "1s"
  37. idleTimeout = "10s"
  38. expire = "1m"
  39. [grpcClient]
  40. [grpcClient.filter]
  41. addr = "discovery://default/filter.service"
  42. [grpcClient.filter.wardenconf]
  43. dial = "100ms"
  44. timeout = "500ms"
  45. [grpcClient.user]
  46. addr = "discovery://default/bbq.service.user"
  47. [grpcClient.user.wardenconf]
  48. dial = "100ms"
  49. timeout = "500ms"
  50. [grpcClient.video]
  51. addr = "discovery://default/bbq.service.video"
  52. [grpcClient.video.wardenconf]
  53. dial = "100ms"
  54. timeout = "500ms"
  55. [antiSpam]
  56. [antiSpam.bullet]
  57. on=true
  58. second=10
  59. n=8
  60. hour=1
  61. m=100
  62. [bulletConfig]
  63. closeWrite = false
  64. closeRead = false
  65. [infoc]
  66. taskID = "001639"
  67. proto = "tcp"
  68. addr = "172.18.33.124:15140"
  69. chanSize = 10240