upload-admin.toml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. # This is a TOML document. Boom
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/upload.pid"
  5. dir = "./"
  6. bfsDownloadHost = "uat-i0.hdslb.com"
  7. bfsUpdateHost = "uat-bfs.bilibili.co"
  8. bfsDeleteHost = "uat-bfs.bilibili.co"
  9. [bm]
  10. addr = "0.0.0.0:9001"
  11. maxListen = 10
  12. timeout = "1s"
  13. [multiHTTP]
  14. [multiHTTP.outer]
  15. addrs = ["0.0.0.0:6121"]
  16. maxListen = 10
  17. [multiHTTP.inner]
  18. addrs = ["0.0.0.0:6122"]
  19. maxListen = 10
  20. [multiHTTP.local]
  21. addrs = ["0.0.0.0:6123"]
  22. maxListen = 10
  23. [identify]
  24. whiteAccessKey = ""
  25. whiteMid = 0
  26. [identify.app]
  27. key = "6a29f8ed87407c11"
  28. secret = "d3c5a85f5b895a03735b5d20a273bc57"
  29. [identify.memcache]
  30. name = "go-business/identify"
  31. proto = "tcp"
  32. addr = "172.16.33.54:11211"
  33. active = 10
  34. idle = 10
  35. dialTimeout = "1s"
  36. readTimeout = "1s"
  37. writeTimeout = "1s"
  38. idleTimeout = "80s"
  39. [identify.host]
  40. auth = "http://uat-passport.bilibili.co"
  41. secret = "http://uat-open.bilibili.co"
  42. [identify.httpClient]
  43. key = "f022126a8a365e20"
  44. secret = "b7b86838145d634b487e67b811b8fab2"
  45. dial = "30ms"
  46. timeout = "100ms"
  47. keepAlive = "60s"
  48. [identify.httpClient.breaker]
  49. window = "10s"
  50. sleep = "100ms"
  51. bucket = 10
  52. ratio = 0.5
  53. request = 100
  54. [identify.httpClient.url]
  55. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  56. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  57. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  58. [orm]
  59. dsn = "test:test@tcp(172.16.33.205:3308)/bfs?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  60. active = 10
  61. idle = 10
  62. idleTimeout = "4h"
  63. [httpClient]
  64. [httpClient.read]
  65. key = "6aa4286456d16b97"
  66. secret = "351cf022e1ae8296109c3c524faafcc8"
  67. dial = "50ms"
  68. timeout = "500ms"
  69. keepAlive = "60s"
  70. timer = 16
  71. [httpClient.read.breaker]
  72. window = "10s"
  73. sleep = "100ms"
  74. bucket = 10
  75. ratio = 0.5
  76. request = 100
  77. [httpClient.write]
  78. key = "6aa4286456d16b97"
  79. secret = "351cf022e1ae8296109c3c524faafcc8"
  80. dial = "50ms"
  81. timeout = "800ms"
  82. keepAlive = "60s"
  83. timer = 16
  84. [httpClient.write.breaker]
  85. window = "10s"
  86. sleep = "100ms"
  87. bucket = 10
  88. ratio = 0.5
  89. request = 100
  90. [auth]
  91. managerHost = "http://uat-manager.bilibili.co"
  92. dashboardHost = "http://dashboard-mng.bilibili.co"
  93. dashboardCaller = "manager-go"
  94. [auth.DsHTTPClient]
  95. key = "manager-go"
  96. secret = "949bbb2dd3178252638c2407578bc7ad"
  97. dial = "1s"
  98. timeout = "1s"
  99. keepAlive = "60s"
  100. [auth.DsHTTPClient.breaker]
  101. window = "3s"
  102. sleep = "100ms"
  103. bucket = 10
  104. ratio = 0.5
  105. request = 100
  106. [auth.MaHTTPClient]
  107. key = "f6433799dbd88751"
  108. secret = "36f8ddb1806207fe07013ab6a77a3935"
  109. dial = "1s"
  110. timeout = "1s"
  111. keepAlive = "60s"
  112. [auth.MaHTTPClient.breaker]
  113. window = "3s"
  114. sleep = "100ms"
  115. bucket = 10
  116. ratio = 0.5
  117. request = 100
  118. [auth.session]
  119. sessionIDLength = 32
  120. cookieLifeTime = 1800
  121. cookieName = "mng-go"
  122. domain = ".bilibili.co"
  123. [auth.session.Memcache]
  124. name = "go-business/auth"
  125. proto = "tcp"
  126. addr = "172.16.33.54:11211"
  127. active = 10
  128. idle = 10
  129. dialTimeout = "1s"
  130. readTimeout = "1s"
  131. writeTimeout = "1s"
  132. idleTimeout = "80s"
  133. [bfs]
  134. BfsUrl = "uat-bfs.bilibili.co"
  135. WaterMarkUrl = "http://172.18.33.121:8090/imageserver/watermark/gen"
  136. ImageGenURL = "http://172.18.33.121:8090/imageserver/image/gen"
  137. TimeOut = "10s"
  138. [hbase]
  139. master = ""
  140. meta = ""
  141. dialTimeout = "1s"
  142. readTimeout = "10s"
  143. readsTimeout = "10s"
  144. writeTimeout = "10s"
  145. writesTimeout = "10s"
  146. [hbase.zookeeper]
  147. root = ""
  148. addrs = ["172.18.33.131:2181","172.18.33.168:2181","172.18.33.169:2181"]
  149. timeout = "30s"