test.toml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. [grpc]
  2. timeout = "6s"
  3. [httpClient]
  4. key = "cadf599ba8b3796a"
  5. secret = "42fbb979aa742013d713a088f912673b"
  6. dial = "6s"
  7. timeout = "6s"
  8. keepAlive = "60s"
  9. timer = 10
  10. [httpClient.breaker]
  11. window = "10s"
  12. sleep = "100ms"
  13. bucket = 10
  14. ratio = 0.5
  15. request = 100
  16. [memcache]
  17. name = "tv"
  18. proto = "tcp"
  19. addr = "127.0.0.1:11231"
  20. idle = 100
  21. active = 100
  22. dialTimeout = "1s"
  23. readTimeout = "1s"
  24. writeTimeout = "1s"
  25. idleTimeout = "10s"
  26. expire = "36h"
  27. relateExpire = "20m"
  28. arcExpire = "20m"
  29. viewExpire = "20m"
  30. cmsExpire = "36h"
  31. cacheExpire = "1h"
  32. hisExpire = "3m"
  33. mangoExpire = "10m"
  34. [accountRPC]
  35. timeout = "1s"
  36. [mysql]
  37. addr= "172.16.33.205:3308"
  38. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_tv?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  39. active = 20
  40. idle = 10
  41. idleTimeout ="4h"
  42. queryTimeout = "2000ms"
  43. execTimeout = "2000ms"
  44. tranTimeout = "5000ms"
  45. [mysql.breaker]
  46. window = "3s"
  47. sleep = "100ms"
  48. bucket = 10
  49. ratio = 0.5
  50. request = 100
  51. [pay]
  52. payExpireDuration = "4h"
  53. renewFromDuration = "48h"
  54. renewToDuration = "24h"
  55. qrURL = "http://callback-api.bilibili.cn/x/tv/vip/order/create"
  56. guestQrURL = "http://callback-api.bilibili.cn/x/tv/vip/order/create"
  57. [cacheTTL]
  58. userInfoTTl = 1800
  59. payParamTTL = 900
  60. [yst]
  61. key = "snm112901*!lkkjWngso4%*&o+-(j242Ssdrfslj"
  62. domain = "gwboss.test.atianqi.com:443/boss/inter/bili"
  63. [mvip]
  64. BatchUserInfoUrl = "http://api.bilibili.co/x/internal/big/useBatchInfo"
  65. [mvip.BatchIdsMap]
  66. 1 = 21
  67. 23 = 21
  68. [ticker]
  69. panelRefreshDuration = "5s"
  70. unpaidDurationStime = "25m"
  71. unpaidDurationEtime = "30m"
  72. unpaidRefreshDuratuion = "30s"