item.toml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. # This is a TOML document. Boom.
  2. version = "0.0.1"
  3. user = "nobody"
  4. pid = "/tmp/ticket-item.pid"
  5. dir = "./"
  6. family = "ticket-item"
  7. perf="0.0.0.0:3014"
  8. [log]
  9. dir = "/tmp/golog/ticket-item/"
  10. [db]
  11. [db.master]
  12. name = "172.16.33.203:3306"
  13. dsn = "root:123456@tcp(172.16.33.203:3306)/tickets?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  14. # name = "172.22.34.101:3310"
  15. # dsn = "ticket:i9HXWAvzWiqPxMxlfsQ8DRqYydjf3pYa@tcp(172.22.34.101:3310)/open_ticket?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  16. active = 5
  17. idle = 5
  18. idleTimeout = "4h"
  19. queryTimeout = "1s"
  20. execTimeout = "1s"
  21. tranTimeout = "1s"
  22. [db.master.breaker]
  23. window = "3s"
  24. sleep = "100ms"
  25. bucket = 10
  26. ratio = 0.5
  27. request = 100
  28. [redis]
  29. [redis.master]
  30. name = "ticket-service"
  31. proto = "tcp"
  32. addr = "127.0.0.1:6379"
  33. #addr = "172.16.33.203:6379"
  34. idle = 10
  35. active = 10
  36. dialTimeout = "1s"
  37. readTimeout = "1s"
  38. writeTimeout = "1s"
  39. idleTimeout = "10s"
  40. expire = "10s"
  41. [rpcServer]
  42. addr = ':9301'
  43. timeout = "3s"
  44. [bm]
  45. [bm.inner]
  46. addr = "0.0.0.0:8801"
  47. timeout = "1s"
  48. readTimeout = "1s"
  49. writeTimeout = "1s"
  50. [bm.local]
  51. addr = "0.0.0.0:8802"
  52. timeout = "1s"
  53. readTimeout = "1s"
  54. writeTimeout = "1s"
  55. [httpClient]
  56. [httpClient.read]
  57. key = "7c7ac0db1aa05587"
  58. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  59. dial = "1s"
  60. timeout = "4s"
  61. keepAlive = "60s"
  62. timer = 1000
  63. [httpClient.read.breaker]
  64. window = "3s"
  65. sleep = "100ms"
  66. bucket = 10
  67. ratio = 0.5
  68. request = 100
  69. [httpClient.write]
  70. key = "7c7ac0db1aa05587"
  71. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  72. dial = "1s"
  73. timeout = "3s"
  74. keepAlive = "60s"
  75. timer = 1000
  76. [httpClient.write.breaker]
  77. window = "3s"
  78. sleep = "100ms"
  79. bucket = 10
  80. ratio = 0.5
  81. request = 100
  82. [app]
  83. key = "7d9f6f6fe2a898e8"
  84. secret = "test"
  85. [identify]
  86. whiteAccessKey = ""
  87. whiteMid = 0
  88. csrfOn = false
  89. [identify.app]
  90. key = "7d9f6f6fe2a898e8"
  91. secret = "test"
  92. [identify.host]
  93. auth = "http://uat-passport.bilibili.co"
  94. secret = "http://uat-open.bilibili.co"
  95. [identify.httpClient]
  96. key = "7d9f6f6fe2a898e8"
  97. secret = "test"
  98. dial = "30ms"
  99. timeout = "100ms"
  100. keepAlive = "60s"
  101. [identify.httpClient.breaker]
  102. window = "10s"
  103. sleep = "100ms"
  104. bucket = 10
  105. ratio = 0.5
  106. request = 100
  107. [identify.httpClient.url]
  108. "http://uat-passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  109. "http://uat-passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  110. "http://uat-open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  111. [orm]
  112. dsn = "root:123456@tcp(172.16.33.203:3306)/tickets?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  113. #dsn = "ticket:i9HXWAvzWiqPxMxlfsQ8DRqYydjf3pYa@tcp(172.22.34.101:3310)/open_ticket?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  114. active = 5
  115. idle = 5
  116. idleTimeout = "4h"
  117. [ut]
  118. distPrefix = "http://localhost:8801/x/internal/ticket/sales"
  119. [url]
  120. elasticHost = "http://uat-manager.bilibili.co"
  121. defaultHead = "https://static.hdslb.com/images/member/noface.gif"
  122. [baseCenter]
  123. appId = "nBF6jpB7"
  124. appToken = "XZUGqmAf1rRmu7l0dhogFIPPvveHOgSy2WtQ957JPeE="
  125. url = "http://172.16.33.203/api/basecenter/"
  126. [tag]
  127. tags = "10001=漫展,10002=同人展,10003=漫展嘉年华,10004=游戏展,10005=见面会,10006=茶会,10007=展示会,10008=演唱会,10009=音乐会,10010=话剧,10011=比赛,10012=舞蹈,10013=画展,10014=乐园,10015=cosplay展,10016=only展,10017=古风展"