workflow-admin-develop.toml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/workflow-admin.pid"
  5. dir = "./"
  6. family = "workflow-admin"
  7. chanSize = 1024
  8. [log]
  9. dir = "/data/log/workflow-admin"
  10. [multiHTTP]
  11. [multiHTTP.inner]
  12. addrs = ["0.0.0.0:7211"]
  13. [multiHTTP.local]
  14. addrs = ["0.0.0.0:7212"]
  15. [bm]
  16. addr = "0.0.0.0:7211"
  17. maxListen = 1000
  18. timeout = "10s"
  19. [orm]
  20. [orm.write]
  21. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_workflow?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  22. active = 10
  23. idle = 10
  24. idleTimeout = "4h"
  25. [orm.read]
  26. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_workflow?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  27. active = 10
  28. idle = 10
  29. idleTimeout = "4h"
  30. [db]
  31. [db.workflow]
  32. name = "172.22.16.3:3459"
  33. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_workflow?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  34. active = 10
  35. idle = 10
  36. queryTimeout = "1s"
  37. execTimeout = "1s"
  38. tranTimeout = "1s"
  39. [db.workflow.breaker]
  40. window = "3s"
  41. sleep = "100ms"
  42. bucket = 10
  43. ratio = 0.5
  44. request = 100
  45. [db.workflowread]
  46. name = "172.22.16.3:3459"
  47. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_workflow?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  48. active = 10
  49. idle = 10
  50. queryTimeout = "1s"
  51. execTimeout = "1s"
  52. tranTimeout = "1s"
  53. [db.workflowread.breaker]
  54. window = "3s"
  55. sleep = "100ms"
  56. bucket = 10
  57. ratio = 0.5
  58. request = 100
  59. [identify]
  60. [identify.host]
  61. auth = "http://uat-passport.bilibili.co"
  62. secret = "http://uat-open.bilibili.co"
  63. [identify.HTTPClient]
  64. key = "6aa4286456d16b97"
  65. secret = "351cf022e1ae8296109c3c524faafcc8"
  66. dial = "100ms"
  67. timeout = "200ms"
  68. keepAlive = "60s"
  69. [identify.httpClient.breaker]
  70. window = "10s"
  71. sleep = "100ms"
  72. bucket = 10
  73. ratio = 0.5
  74. request = 100
  75. [host]
  76. searchURL = "http://uat-bili-search.bilibili.co"
  77. #searchURL = "http://127.0.0.1:18080"
  78. reviewURL = "https://uat-bangumi-mng.bilibili.co"
  79. platformURL = "http://uat-api.bilibili.co"
  80. messageURL = "http://uat-message.bilibili.co"
  81. unameURL = "http://uat-manager.bilibili.co/x/admin/manager/users/unames"
  82. uidURL = "http://uat-manager.bilibili.co/x/admin/manager/users/uids"
  83. pgcURL = "http://uat-bangumi-mng.bilibili.co/media/internal/review/views"
  84. archiveURL = "http://uat-archive.api.bilibili.co/videoup/views"
  85. accountURL = "http://uat-api.bilibili.co/x/internal/v3/account/profile/stat"
  86. archivetypesURL = "http://uat-archive.api.bilibili.co/videoup/types"
  87. upergroupURL = "http://uat-api.bilibili.co/x/internal/uper/special/get"
  88. relationURL = "http://uat-api.bilibili.co/x/internal/relation/stats"
  89. businessListURL = "http://uat-manager.bilibili.co/x/admin/manager/internal/business/list"
  90. userListURL = "http://uat-manager.bilibili.co/x/admin/manager/business/user/list"
  91. tagListURL = "http://uat-manager.bilibili.co/x/admin/manager/internal/tag/list"
  92. channelInfoURL = "http://uat-api.bilibili.co/x/internal/channel/resource/checkback"
  93. businessRoleURL = "http://uat-manager.bilibili.co/x/admin/manager/internal/business/role"
  94. blockURL = "http://uat-api.bilibili.co/x/internal/block/batch/block"
  95. creditBlockedURL = "http://uat-api.bilibili.co/x/internal/credit/blocked/info/add"
  96. blockInfoURL = "http://uat-api.bilibili.co/x/internal/block/info"
  97. blockNumURL = "http://uat-api.bilibili.co/x/internal/credit/blocked/user/num"
  98. blockCaseAddURL = "http://uat-api.bilibili.co/x/internal/credit/blocked/case/add"
  99. [httpClient]
  100. [httpClient.read]
  101. key = "6aa4286456d16b97"
  102. secret = "351cf022e1ae8296109c3c524faafcc8"
  103. dial = "50ms"
  104. timeout = "3s"
  105. keepAlive = "60s"
  106. timer = 16
  107. [httpClient.read.breaker]
  108. window = "10s"
  109. sleep = "100ms"
  110. bucket = 10
  111. ratio = 0.5
  112. request = 100
  113. [httpClient.write]
  114. key = "6aa4286456d16b97"
  115. secret = "351cf022e1ae8296109c3c524faafcc8"
  116. dial = "50ms"
  117. timeout = "3s"
  118. keepAlive = "60s"
  119. timer = 16
  120. [httpClient.write.breaker]
  121. window = "10s"
  122. sleep = "100ms"
  123. bucket = 10
  124. ratio = 0.5
  125. request = 100
  126. [auth]
  127. managerHost = "http://uat-manager.bilibili.co"
  128. dashboardHost = "http://dashboard-mng.bilibili.co"
  129. dashboardCaller = "manager-go"
  130. [auth.DsHTTPClient]
  131. key = "manager-go"
  132. secret = "949bbb2dd3178252638c2407578bc7ad"
  133. dial = "1s"
  134. timeout = "1s"
  135. keepAlive = "60s"
  136. [auth.DsHTTPClient.breaker]
  137. window = "3s"
  138. sleep = "100ms"
  139. bucket = 10
  140. ratio = 0.5
  141. request = 100
  142. [auth.MaHTTPClient]
  143. key = "f6433799dbd88751"
  144. secret = "36f8ddb1806207fe07013ab6a77a3935"
  145. dial = "1s"
  146. timeout = "1s"
  147. keepAlive = "60s"
  148. [auth.MaHTTPClient.breaker]
  149. window = "3s"
  150. sleep = "100ms"
  151. bucket = 10
  152. ratio = 0.5
  153. request = 100
  154. [auth.session]
  155. sessionIDLength = 32
  156. cookieLifeTime = 1800
  157. cookieName = "mng-go"
  158. domain = ".bilibili.co"
  159. [auth.session.Memcache]
  160. name = "go-business/auth"
  161. proto = "tcp"
  162. addr = "172.18.33.61:11232"
  163. active = 10
  164. idle = 10
  165. dialTimeout = "5s"
  166. readTimeout = "5s"
  167. writeTimeout = "5s"
  168. idleTimeout = "80s"
  169. [memcache]
  170. proto = "tcp"
  171. addr = "172.18.33.60:11236"
  172. idle = 10
  173. active = 10
  174. dialTimeout = "2s"
  175. readTimeout = "2s"
  176. writeTimeout = "2s"
  177. idleTimeout = "7h"
  178. expireCount = "10s"
  179. expireOnline = "0s"
  180. [redis]
  181. proto = "tcp"
  182. addr = "172.18.33.61:6889"
  183. idle = 10
  184. active = 10
  185. dialTimeout = "500ms"
  186. readTimeout = "1s"
  187. writeTimeout = "1s"
  188. idleTimeout = "80s"
  189. expire = "0s"
  190. [elastic]
  191. host = "http://uat-manager.bilibili.co"
  192. [elastic.HTTPClient]
  193. key = "3c4e41f926e51656"
  194. secret = "26a2095b60c24154521d24ae62b885bb"
  195. dial = "1s"
  196. timeout = "2s"
  197. keepAlive = "60s"
  198. timer = 1000
  199. [elastic.HTTPClient.breaker]
  200. window ="3s"
  201. sleep ="100ms"
  202. bucket = 10
  203. ratio = 0.5
  204. request = 100
  205. [accountRPC]
  206. timeout = "2s"
  207. [archiveRPC]
  208. timeout = "2s"