identify-game-service.toml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # This is a TOML document. Boom.
  2. [bm]
  3. addr = "0.0.0.0:7391"
  4. timeout = "1s"
  5. [rpcServer]
  6. proto = "tcp"
  7. addr = "0.0.0.0:7399"
  8. timeout = "30s"
  9. [passport]
  10. [passport.host]
  11. auth = "http://passport.bilibili.co"
  12. [HTTPClient]
  13. key = "7d9f6f6fe2a898e8"
  14. secret = "4de2ccdbd9db69be0c2c6437bfe6eb69"
  15. dial = "50ms"
  16. timeout = "200ms"
  17. keepAlive = "60s"
  18. [HTTPClient.breaker]
  19. window ="1s"
  20. sleep ="10ms"
  21. bucket = 10
  22. ratio = 0.5
  23. request = 100
  24. [memcache]
  25. name = "identify-game-service"
  26. proto = "tcp"
  27. addr = "172.18.33.61:11235"
  28. idle = 5
  29. active = 10
  30. dialTimeout = "1s"
  31. readTimeout = "1s"
  32. writeTimeout = "1s"
  33. idleTimeout = "10s"
  34. expire = "10h"
  35. [dispatcher]
  36. name = "origin"
  37. [dispatcher.oauth]
  38. "origin" = "http://passport.bilibili.com/api/oauth"
  39. "t1" = "http://api.bilibili.com/x/passport-game/oauth"
  40. "t2" = "http://t2-api.bilibili.com/x/passport-game/oauth"
  41. [dispatcher.renewToken]
  42. "origin" = "http://passport.bilibili.com/api/login/renewToken"
  43. "t1" = "http://api.bilibili.com/x/passport-game/renewtoken"
  44. "t2" = "http://t2-api.bilibili.com/x/passport-game/renewtoken"
  45. [[dispatcher.regionInfos]]
  46. region = "市北"
  47. tokenSuffix = ""
  48. [[dispatcher.regionInfos]]
  49. region = "腾讯云1"
  50. tokenSuffix = "t1"
  51. [[dispatcher.regionInfos]]
  52. region = "腾讯云2"
  53. tokenSuffix = "t2"