up-admin.toml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. consume = true
  4. istest = true
  5. IsMaster = true
  6. [host]
  7. api = "http://api.bilibili.co"
  8. live = "http://api.live.bilibili.co"
  9. search = "http://bili-search.bilibili.co"
  10. manager = "http://manager.bilibili.co"
  11. data = "http://data.bilibili.co"
  12. tag = "http://dl-test.bilibili.com"
  13. videoup = "http://archive.api.bilibili.co"
  14. [xlog]
  15. stdout = true
  16. [httpClient]
  17. [httpClient.normal]
  18. key = "b8f239ca38a53308"
  19. secret = "5460ef72fe13c10dfb53442b9111427e"
  20. dial = "500ms"
  21. timeout = "1s"
  22. keepAlive = "60s"
  23. timer = 10
  24. [httpClient.normal.breaker]
  25. window = "10s"
  26. sleep = "100ms"
  27. bucket = 10
  28. ratio = 0.5
  29. request = 100
  30. [httpClient.slow]
  31. key = "b8f239ca38a53308"
  32. secret = "5460ef72fe13c10dfb53442b9111427e"
  33. dial = "1s"
  34. timeout = "10s"
  35. keepAlive = "60s"
  36. timer = 10
  37. [httpClient.slow.breaker]
  38. window = "10s"
  39. sleep = "100ms"
  40. bucket = 10
  41. ratio = 0.5
  42. request = 100
  43. [HTTPServer]
  44. addr = "0.0.0.0:7810"
  45. timeout = "5s"
  46. [db]
  47. [db.creative]
  48. name = "[creative]tcp@172.16.33.205:3308"
  49. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_creative?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  50. active = 5
  51. idle = 5
  52. idleTimeout ="4h"
  53. queryTimeout = "5s"
  54. execTimeout = "5s"
  55. tranTimeout = "5s"
  56. [db.creative.breaker]
  57. window = "3s"
  58. sleep = "100ms"
  59. bucket = 10
  60. ratio = 0.5
  61. request = 100
  62. [db.manager]
  63. name = "172.16.33.205:3308"
  64. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_manager?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  65. active = 5
  66. idle = 2
  67. idleTimeout ="4h"
  68. queryTimeout = "5s"
  69. execTimeout = "5s"
  70. tranTimeout = "10s"
  71. [db.manager.breaker]
  72. window = "3s"
  73. sleep = "100ms"
  74. bucket = 10
  75. ratio = 0.5
  76. request = 100
  77. [db.upcrm]
  78. dsn = "upcrm:DdL6c5JaWCYKMAQ10PURbfeImow9HXlx@tcp(172.16.33.205:3306)/bilibili_upcrm?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  79. active = 5
  80. idle = 1
  81. idleTimeout = "4h"
  82. [db.archiveOrm]
  83. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_archive?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  84. active = 5
  85. idle = 1
  86. idleTimeout = "4h"
  87. [articleRPC]
  88. timeout = "1s"
  89. [GRPCClient]
  90. [GRPCClient.Archive]
  91. timeout = "30s"
  92. [GRPCClient.Account]
  93. timeout = "30s"
  94. [monitor]
  95. moni="http://moni.bilibili.co/dashboard/db/databus?orgId=1"
  96. host = "http://bap.bilibili.co"
  97. username="fengpengfei"
  98. appToken = "jLgSvndTeranxGMN"
  99. appSecret = "CcCdlEBYqxqrgAieJuFVZUsgPmweLRms"
  100. intervalAlarm = "5m"
  101. [memcache]
  102. upExpire = "1800s"
  103. [memcache.up]
  104. name = "up-admin"
  105. proto = "tcp"
  106. addr = "172.16.0.148:11211"
  107. idle = 5
  108. active = 10
  109. dialTimeout = "1s"
  110. readTimeout = "1s"
  111. writeTimeout = "1s"
  112. idleTimeout = "80s"
  113. [auth]
  114. managerHost = "http://uat-manager.bilibili.co"
  115. dashboardHost = "http://dashboard-mng.bilibili.co"
  116. dashboardCaller = "manager-go"
  117. [auth.DsHTTPClient]
  118. key = "manager-go"
  119. secret = "949bbb2dd3178252638c2407578bc7ad"
  120. dial = "3s"
  121. timeout = "3s"
  122. keepAlive = "60s"
  123. [auth.DsHTTPClient.breaker]
  124. window = "3s"
  125. sleep = "100ms"
  126. bucket = 10
  127. ratio = 0.5
  128. request = 100
  129. [auth.MaHTTPClient]
  130. key = "f6433799dbd88751"
  131. secret = "36f8ddb1806207fe07013ab6a77a3935"
  132. dial = "1s"
  133. timeout = "1s"
  134. keepAlive = "60s"
  135. [auth.MaHTTPClient.breaker]
  136. window = "3s"
  137. sleep = "100ms"
  138. bucket = 10
  139. ratio = 0.5
  140. request = 100
  141. [auth.session]
  142. sessionIDLength = 32
  143. cookieLifeTime = 1800
  144. cookieName = "mng-go"
  145. domain = ".bilibili.co"
  146. [auth.session.Memcache]
  147. name = "go-business/auth"
  148. proto = "unix"
  149. addr = "/tmp/uat-manager-auth-mc.sock"
  150. active = 10
  151. idle = 5
  152. dialTimeout = "1s"
  153. readTimeout = "1s"
  154. writeTimeout = "1s"
  155. idleTimeout = "80s"
  156. [hbase]
  157. master = ""
  158. meta = ""
  159. dialTimeout = "1s"
  160. readTimeout = "150ms"
  161. readsTimeout = "600ms"
  162. writeTimeout = "200ms"
  163. writesTimeout = "600ms"
  164. [hbase.zookeeper]
  165. root = ""
  166. addrs = ["172.18.33.163:2181","172.18.33.164:2181","172.18.33.165:2181"]
  167. timeout = "30s"
  168. [BfsConf]
  169. addr = "http://uat-bfs.bilibili.co"
  170. bucket = "upcrm"
  171. key = "9a261e35316e49b1"
  172. secret = "906c328bbabb0ffa140c1b291b7259"
  173. # 上传文件大小限制为10M
  174. maxFileSize = 10485760
  175. [TimeConf]
  176. # 每天定时刷新排行
  177. RefreshUpRankTime = "15:00:00"
  178. [MailConf]
  179. host = "smtp.exmail.qq.com"
  180. port = 465
  181. username = "2333@bilibili.com"
  182. password = "2333"