test.toml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. [mysql]
  2. addr = "127.0.0.1:3306"
  3. dsn = "test:test@tcp(127.0.0.1:3306)/test?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  4. readDSN = ["test:test@tcp(127.0.0.2:3306)/test? timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4","test:test@tcp(127.0.0.3:3306)/test?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  5. active = 20
  6. idle = 10
  7. idleTimeout ="4h"
  8. queryTimeout = "100ms"
  9. execTimeout = "100ms"
  10. tranTimeout = "200ms"
  11. [redis]
  12. name = "app-room-interface"
  13. proto = "tcp"
  14. addr = ""
  15. idle = 10
  16. active = 10
  17. dialTimeout = "1s"
  18. readTimeout = "1s"
  19. writeTimeout = "1s"
  20. idleTimeout = "10s"
  21. expire = "1m"
  22. [memcache]
  23. name = "app-room-interface"
  24. proto = "tcp"
  25. addr = ""
  26. active = 50
  27. idle = 10
  28. dialTimeout = "1s"
  29. readTimeout = "1s"
  30. writeTimeout = "1s"
  31. idleTimeout = "10s"
  32. expire = "24h"
  33. [log]
  34. stdout = true
  35. [DMsend]
  36. taskID = "582"
  37. proto = "tcp"
  38. addr = "172.18.33.125:15140"
  39. chanSize = 10240
  40. [DMerr]
  41. taskID = "1409"
  42. proto = "tcp"
  43. addr = "172.18.33.125:15140"
  44. chanSize = 10240
  45. [host]
  46. payCenter = "http://pay.bilibili.co"
  47. liveRpc = "http://rpc.live.bilibili.co"
  48. [httpClient]
  49. [httpClient.payCenter]
  50. key = "xHf74ZfV43cAUsUl"
  51. secret = "d0dbe915091d400bd8ee7f27f0791303"
  52. dial = "1s"
  53. timeout = "1s"
  54. keepAlive = "60s"
  55. timer = 1000
  56. [httpClient.liveRpc]
  57. key = "fb06a25c6338edbc"
  58. secret = "fd10bd177559780c2e4a44f1fa47fa83"
  59. dial = "1s"
  60. timeout = "1s"
  61. keepAlive = "60s"
  62. timer = 1000
  63. [gift]
  64. [gift.rechargeTip]
  65. silverTipDays = [7]
  66. [liverpc]
  67. [liverpc.userext]
  68. Addr = "172.18.33.128:20803"