ticket-sales.toml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. # This is a TOML document. Boom.
  2. version = "0.0.2"
  3. user = "nobody"
  4. pid = "/tmp/ticket-sales.pid"
  5. dir = "/data/log"
  6. perf = "0.0.0.0:3013"
  7. family = "ticket-sales"
  8. address = "127.0.0.1"
  9. env = "dev"
  10. [log]
  11. dir = "/tmp/log/ticket-sales"
  12. v = 3
  13. [db]
  14. [db.master]
  15. name = "172.16.33.203:3306"
  16. dsn = "root:123456@tcp(172.16.33.203:3306)/tickets?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  17. #dsn = "test_3310:Lb1XsyqV6ZjY34tPKcAdHGapuxi9vowr@tcp(172.22.34.101:3310)/open_ticket?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  18. active = 5
  19. idle = 5
  20. idleTimeout = "4h"
  21. queryTimeout = "1s"
  22. execTimeout = "1s"
  23. tranTimeout = "1s"
  24. [db.master.breaker]
  25. window = "3s"
  26. sleep = "100ms"
  27. bucket = 10
  28. ratio = 0.5
  29. request = 100
  30. [redis]
  31. [redis.master]
  32. name = "ticket-service"
  33. proto = "tcp"
  34. addr = "172.16.33.203:9379"
  35. idle = 10
  36. active = 10
  37. dialTimeout = "1s"
  38. readTimeout = "1s"
  39. writeTimeout = "1s"
  40. idleTimeout = "10s"
  41. expire = "10s"
  42. [httpClient]
  43. [httpClient.read]
  44. key = "7c7ac0db1aa05587"
  45. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  46. dial = "1s"
  47. timeout = "4s"
  48. keepAlive = "60s"
  49. timer = 1000
  50. [httpClient.read.breaker]
  51. window = "3s"
  52. sleep = "100ms"
  53. bucket = 10
  54. ratio = 0.5
  55. request = 100
  56. [httpClient.write]
  57. key = "7c7ac0db1aa05587"
  58. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  59. dial = "1s"
  60. timeout = "3s"
  61. keepAlive = "60s"
  62. timer = 1000
  63. [httpClient.write.breaker]
  64. window = "3s"
  65. sleep = "100ms"
  66. bucket = 10
  67. ratio = 0.5
  68. request = 100
  69. [app]
  70. key = "7d9f6f6fe2a898e8"
  71. secret = "test"
  72. [identify]
  73. whiteAccessKey = ""
  74. whiteMid = 0
  75. csrfOn = false
  76. [identify.app]
  77. key = "7d9f6f6fe2a898e8"
  78. secret = "test"
  79. [identify.host]
  80. auth = "http://uat-passport.bilibili.co"
  81. secret = "http://uat-open.bilibili.co"
  82. [identify.httpClient]
  83. key = "7d9f6f6fe2a898e8"
  84. secret = "test"
  85. dial = "30ms"
  86. timeout = "100ms"
  87. keepAlive = "60s"
  88. [identify.httpClient.breaker]
  89. window = "10s"
  90. sleep = "100ms"
  91. bucket = 10
  92. ratio = 0.5
  93. request = 100
  94. [identify.httpClient.url]
  95. "http://uat-passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  96. "http://uat-passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  97. "http://uat-open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  98. [ut]
  99. distPrefix = "http://localhost:8801/x/internal/ticket/sales"
  100. [encrypt]
  101. key = "bilibili_key_GYl"
  102. iv = "biliBiliIv123456"
  103. [urls]
  104. basecenter = "http://uat-show.bilibili.co/api/basecenter"
  105. [basecenter]
  106. appId = "nBF6jpB7"
  107. token = "XZUGqmAf1rRmu7l0dhogFIPPvveHOgSy2WtQ957JPeE="
  108. [grpcClient]
  109. [grpcClient.item]
  110. dial = "1000ms"
  111. timeout = "5000ms"
  112. [grpcClient.account]
  113. dial = "1000ms"
  114. timeout = "5000ms"
  115. [auth]
  116. managerHost = "http://uat-manager.bilibili.co"
  117. dashboardHost = "http://uat-dashboard-mng.bilibili.co"
  118. dashboardCaller = "manager-go"
  119. [auth.DsHTTPClient]
  120. key = "manager-go"
  121. secret = "949bbb2dd3178252638c2407578bc7ad"
  122. dial = "1s"
  123. timeout = "1s"
  124. keepAlive = "60s"
  125. [auth.DsHTTPClient.breaker]
  126. window = "3s"
  127. sleep = "100ms"
  128. bucket = 10
  129. ratio = 0.5
  130. request = 100
  131. [auth.MaHTTPClient]
  132. key = "f6433799dbd88751"
  133. secret = "36f8ddb1806207fe07013ab6a77a3935"
  134. dial = "1s"
  135. timeout = "1s"
  136. keepAlive = "60s"
  137. [auth.MaHTTPClient.breaker]
  138. window = "3s"
  139. sleep = "100ms"
  140. bucket = 10
  141. ratio = 0.5
  142. request = 100
  143. [auth.session]
  144. sessionIDLength = 32
  145. cookieLifeTime = 1800
  146. cookieName = "mng-go"
  147. domain = ".bilibili.co"
  148. [auth.session.Memcache]
  149. name = "go-business/auth"
  150. proto = "tcp"
  151. addr = "172.16.33.54:11211"
  152. active = 5
  153. idle = 5
  154. dialTimeout = "1s"
  155. readTimeout = "1s"
  156. writeTimeout = "1s"
  157. idleTimeout = "80s"
  158. [testProject]
  159. ids = [10005, 10001, 425]
  160. # querystring需要带这个参数才可以访问到
  161. check_query = "1e1a4e8ca5a787226ce7a50535764651"
  162. [databus]
  163. [databus.update]
  164. key = "39143bf7b888273e"
  165. secret= "0766c43df93a9204d81c46caf2231ee1"
  166. group= "TicketItemUpdate-OpenTicket-P"
  167. topic= "TicketItemUpdate-T"
  168. action="pub"
  169. name = "databus/update"
  170. proto = "tcp"
  171. addr = "172.16.38.154:6205"
  172. idle = 100
  173. active = 100
  174. dialTimeout = "1s"
  175. readTimeout = "1s"
  176. writeTimeout = "1s"
  177. idleTimeout = "10s"