vip-admin-test.toml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. # This is a TOML document. Boom
  2. version = "1.0.0"
  3. [log]
  4. stdout = true
  5. dir = "/data/log/vip-admin"
  6. [memcache]
  7. name = "vip"
  8. proto = "tcp"
  9. addr = "172.18.33.60:11234"
  10. idle = 5
  11. active = 10
  12. dialTimeout = "1s"
  13. readTimeout = "1s"
  14. writeTimeout = "1s"
  15. idleTimeout = "10s"
  16. expire = "24h"
  17. [payConf]
  18. baseURL = "http://pay.bilibili.co"
  19. customerID = 10004
  20. token ="0ff3d296ee0d7a28b4db1d761d2db907"
  21. orderNotifyURL ="http://vip.bilibili.co/pay/payOrderNotify"
  22. signNotifyURL ="http://vip.bilibili.co/pay/paySignNotify"
  23. planID = 108217
  24. productID ="vip_buy"
  25. version ="1.0"
  26. refundURL = "http://api.bilibili.co/x/internal/vip/notify/refund"
  27. [property]
  28. MsgURI = "http://message.bilibili.com"
  29. PayURI = "http://pay.bilibili.co"
  30. annualVipBcoinDay = 10
  31. annualVipBcoinCouponMoney = 5
  32. annualVipBcoinCouponActivityId = 142
  33. welfareBgHost = "http://uat-i%v.hdslb.com"
  34. [auth]
  35. managerHost = "http://uat-manager.bilibili.co"
  36. dashboardHost = "http://uat-dashboard-mng.bilibili.co"
  37. dashboardCaller = "manager-go"
  38. [auth.DsHTTPClient]
  39. key = "manager-go"
  40. secret = "949bbb2dd3178252638c2407578bc7ad"
  41. dial = "1s"
  42. timeout = "1s"
  43. keepAlive = "60s"
  44. [auth.DsHTTPClient.breaker]
  45. window = "3s"
  46. sleep = "100ms"
  47. bucket = 10
  48. ratio = 0.5
  49. request = 100
  50. [auth.MaHTTPClient]
  51. key = "f6433799dbd88751"
  52. secret = "36f8ddb1806207fe07013ab6a77a3935"
  53. dial = "1s"
  54. timeout = "1s"
  55. keepAlive = "60s"
  56. [auth.MaHTTPClient.breaker]
  57. window = "3s"
  58. sleep = "100ms"
  59. bucket = 10
  60. ratio = 0.5
  61. request = 100
  62. [auth.session]
  63. sessionIDLength = 32
  64. cookieLifeTime = 1800
  65. cookieName = "mng-go"
  66. domain = ".bilibili.co"
  67. [auth.session.Memcache]
  68. name = "go-business/auth"
  69. proto = "tcp"
  70. addr = "172.16.33.54:11211"
  71. active = 5
  72. idle = 5
  73. dialTimeout = "1s"
  74. readTimeout = "1s"
  75. writeTimeout = "1s"
  76. idleTimeout = "80s"
  77. [VipRPC]
  78. pullInterval = "10s"
  79. [VipRPC.client]
  80. token = "123456789"
  81. proto = "tcp"
  82. timeout = "1s"
  83. timer = 1000
  84. [VipRPC.client.breaker]
  85. window ="10s"
  86. sleep ="10ms"
  87. bucket = 10
  88. ratio = 0.5
  89. request = 100
  90. [[backup]]
  91. proto = "tcp"
  92. addr = "127.0.0.1:6009"
  93. timeout = "1s"
  94. timer = 1000
  95. [VipRPC.zookeeper]
  96. root = "/microservice/vip/"
  97. addrs = ["172.18.33.50:2199","172.18.33.51:2199","172.18.33.52:2199"]
  98. timeout = "30s"
  99. [bm]
  100. addr = "0.0.0.0:7531"
  101. maxListen = 1000
  102. timeout = "1000ms"
  103. [httpClient]
  104. key = "ad4bb9b8f5d9d4a7"
  105. secret = "6912080d78d58be7cb94f57d50d438f6"
  106. dial = "2s"
  107. timeout = "2s"
  108. keepAlive = "60s"
  109. timer = 128
  110. [httpClient.breaker]
  111. window = "3s"
  112. sleep = "100ms"
  113. bucket = 10
  114. ratio = 0.5
  115. request = 100
  116. [mysql]
  117. addr = "172.16.33.205"
  118. dsn = "zhaozhihao:MN9havOfnzY3kd6L78IVucRxgywe0p2P@tcp(172.16.33.205:3308)/bilibili_vip?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  119. active = 5
  120. idle = 2
  121. IdleTimeout ="4h"
  122. queryTimeout = "2s"
  123. execTimeout = "2s"
  124. tranTimeout = "2s"
  125. [mysql.breaker]
  126. window = "3s"
  127. sleep = "100ms"
  128. bucket = 10
  129. ratio = 0.5
  130. request = 100
  131. [orm]
  132. [orm.vip]
  133. dsn = "zhaozhihao:MN9havOfnzY3kd6L78IVucRxgywe0p2P@tcp(172.16.33.205:3308)/bilibili_vip?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  134. active = 5
  135. idle = 5
  136. idleTimeout = "4h"
  137. [bfs]
  138. key="b2f31180234e497c"
  139. secret="e96a241fb05f449502420d9271b2ed"
  140. host = "http://uat-bfs.bilibili.co"
  141. timeout = 1000
  142. maxFileSize = 5242880