usersuit-service.toml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. dir = "./"
  5. family = "usersuit-service"
  6. env = "qa"
  7. accountIntranetURI = "http://account.bilibili.co"
  8. accountURI = "https://account.bilibili.com"
  9. vipURI = "http://vip.bilibili.co"
  10. payURL = "http://pay.bilibili.com/api/add.pay.order"
  11. NotifyURL = "http://account.bilibili.co/api/communicate/purge_cache"
  12. [xlog]
  13. dir = "/data/log/usersuit-service"
  14. [payinfo]
  15. MerchantID="1"
  16. MerchantProductID="1"
  17. CallBackURL="http://account.bilibili.com/api/pendant/orderpendantcallback"
  18. [bm]
  19. addr = "0.0.0.0:7261"
  20. maxListen = 1000
  21. timeout = "1s"
  22. [rpcServer]
  23. proto = "tcp"
  24. addr = "0.0.0.0:7269"
  25. [gorpcclient]
  26. [member]
  27. timeout = "1s"
  28. [coin]
  29. timeout = "30s"
  30. [point]
  31. timeout = "30s"
  32. [mysql]
  33. addr = "172.16.33.205:3309"
  34. dsn = "usersuit:cDXL6vncmCQanx4iMgGogu6gYz33NmA1@tcp(172.16.33.205:3309)/usersuit?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  35. active = 100
  36. idle = 10
  37. queryTimeout = "2s"
  38. execTimeout = "10s"
  39. tranTimeout = "5s"
  40. [mysql.breaker]
  41. window = "3s"
  42. sleep = "100ms"
  43. bucket = 10
  44. ratio = 0.5
  45. request = 100
  46. [redis]
  47. name = "usersuit-service"
  48. proto = "tcp"
  49. addr = "172.16.33.54:6379"
  50. idle = 10
  51. active = 10
  52. dialTimeout = "1s"
  53. readTimeout = "1s"
  54. writeTimeout = "1s"
  55. idleTimeout = "10s"
  56. inviteExpire = "30s"
  57. pendantExpire = "24h"
  58. [memcache]
  59. name = "usersuit-service"
  60. proto = "tcp"
  61. # addr = "172.16.33.54:6379"
  62. addr = "127.0.0.1:11211"
  63. idle = 10
  64. active = 10
  65. dialTimeout = "1s"
  66. readTimeout = "1s"
  67. writeTimeout = "1s"
  68. idleTimeout = "10s"
  69. medalexpire = "720h"
  70. pointexpire = "168h"
  71. [MedalCache]
  72. size = 10000
  73. expire = "3s"
  74. [EquipCache]
  75. size = 10000
  76. expire = "3s"
  77. [httpClient]
  78. key = "837f620f5c0a8010"
  79. secret = "2a9057021014b4b843b635664c69d5df"
  80. dial = "500ms"
  81. timeout = "1s"
  82. keepAlive = "60s"
  83. timer = 10
  84. [httpClient.breaker]
  85. window = "3s"
  86. sleep = "100ms"
  87. bucket = 10
  88. ratio = 0.5
  89. request = 100
  90. [accountNotify]
  91. key = "4ba46ba31f9a44ef"
  92. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  93. group = "AccountNotify-MainAccount-P"
  94. topic = "AccountNotify-T"
  95. action = "pub"
  96. buffer = 128
  97. name = "usersuit-admin/databus"
  98. proto = "tcp"
  99. addr = "172.16.33.158:6205"
  100. active = 1
  101. idle = 1
  102. dialTimeout = "1s"
  103. readTimeout = "1s"
  104. writeTimeout = "1s"
  105. idleTimeout = "10s"
  106. [host]
  107. messageCo = "http://message.bilibili.co"
  108. accountCoURI = "http://account.bilibili.co"
  109. apiCoURI = "http://api.bilibili.co"
  110. liveAPICo = "http://api.live.bilibili.co"