passport-game-service.toml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # This is a TOML document. Boom.
  2. # 这个项目比较特殊,部署在云上的,需要保留一下配置
  3. proxy = false
  4. accountURI = "http://account.bilibili.co"
  5. passportURI = "http://passport.bilibili.com"
  6. family = "passport-game-service"
  7. env = "qa"
  8. [db.cloud]
  9. addr = "172.16.33.205:3306"
  10. dsn = "account:wx2U1MwXRyWEuURw@tcp(172.16.33.205:3306)/member_app1?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  11. active = 5
  12. idle = 2
  13. queryTimeout = "1s"
  14. execTimeout = "2s"
  15. tranTimeout = "2s"
  16. [db.cloud.breaker]
  17. window = "3s"
  18. sleep = "100ms"
  19. bucket = 10
  20. ratio = 0.5
  21. request = 100
  22. [db.otherRegion]
  23. addr = "172.16.33.205:3306"
  24. dsn = "account:wx2U1MwXRyWEuURw@tcp(172.16.33.205:3306)/member_app2?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  25. active = 5
  26. idle = 2
  27. queryTimeout = "1s"
  28. execTimeout = "2s"
  29. tranTimeout = "2s"
  30. [db.otherRegion.breaker]
  31. window = "3s"
  32. sleep = "100ms"
  33. bucket = 10
  34. ratio = 0.5
  35. request = 100
  36. [memcache]
  37. name = "passport-game-service"
  38. proto = "tcp"
  39. addr = "172.16.33.54:21211"
  40. idle = 5
  41. active = 10
  42. dialTimeout = "1s"
  43. readTimeout = "1s"
  44. writeTimeout = "1s"
  45. idleTimeout = "10s"
  46. expire = "10h"
  47. [httpClient]
  48. key = "868fb9ea57619022"
  49. secret = "test"
  50. dial = "5s"
  51. timeout = "10s"
  52. keepAlive = "6s"
  53. timer = 10
  54. [httpClient.breaker]
  55. window = "3s"
  56. sleep = "100ms"
  57. bucket = 10
  58. ratio = 0.5
  59. request = 100
  60. [dispatcher]
  61. name = "t1"
  62. [dispatcher.oauth]
  63. "origin"="http://api.bilibili.co/x/internal/identify-game/oauth"
  64. "t1" = "http://api.bilibili.com/x/passport-game/oauth"
  65. "t2" = "http://t2-api.bilibili.com/x/passport-game/oauth"
  66. [dispatcher.renewToken]
  67. "origin"="http://api.bilibili.co/x/internal/identify-game/renewtoken"
  68. "t1" = "http://api.bilibili.com/x/passport-game/renewtoken"
  69. "t2" = "http://t2-api.bilibili.com/x/passport-game/renewtoken"
  70. [[dispatcher.regionInfos]]
  71. region = "市北"
  72. tokenSuffix = ""
  73. [[dispatcher.regionInfos]]
  74. region = "腾讯云1"
  75. tokenSuffix = "t1"
  76. [[dispatcher.regionInfos]]
  77. region = "腾讯云2"
  78. tokenSuffix = "t2"