aegis-admin.toml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. debug = "local"
  2. bucket = "archive"
  3. admin = "481"
  4. [consumer]
  5. onexp = 600
  6. roleexp = 86400
  7. [gray]
  8. [[gray.biz]]
  9. businessID = 1
  10. [[gray.biz.options]]
  11. [[gray.biz.options.fields]]
  12. name = "OID"
  13. value = "oid1,oid3"
  14. [[gray.biz.options]]
  15. [[gray.biz.options.fields]]
  16. name = "MID"
  17. value = "1,2"
  18. [[gray.biz.options]]
  19. [[gray.biz.options.fields]]
  20. name = "Extra2"
  21. value = "3,4"
  22. [[gray.biz.options.fields]]
  23. name = "OID"
  24. value = "oid6"
  25. [auditstate]
  26. 1 = "1,2"
  27. 2 = "3,4"
  28. [log]
  29. dir="/data/log/aegis"
  30. [app]
  31. key = "c1a1cb2d89c33794"
  32. secret = "dda47eeca111e03e6845017505baea13"
  33. [orm]
  34. dsn = "test:test@tcp(127.0.0.1:3306)/bilibili_aegis?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  35. active = 5
  36. idle = 5
  37. idleTimeout = "4h"
  38. [mysql]
  39. addr = "aegis"
  40. dsn = "test:test@tcp(127.0.0.1:3306)/bilibili_aegis?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  41. readDSN = ["test:test@tcp(127.0.0.1:3306)/bilibili_aegis?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  42. active = 20
  43. idle = 10
  44. idleTimeout ="4h"
  45. queryTimeout = "100ms"
  46. execTimeout = "100ms"
  47. tranTimeout = "200ms"
  48. [redis]
  49. netExpire = "30m"
  50. [redis.cluster]
  51. name = "aegis-admin"
  52. proto = "tcp"
  53. addr = "127.0.0.1:6379"
  54. idle = 10
  55. active = 10
  56. dialTimeout = "100ms"
  57. readTimeout = "100s"
  58. writeTimeout = "100ms"
  59. idleTimeout = "10s"
  60. expire = "1m"
  61. [memcache]
  62. name = "aegis-admin"
  63. proto = "tcp"
  64. addr = "127.0.0.1:11211"
  65. active = 50
  66. idle = 10
  67. dialTimeout = "1s"
  68. readTimeout = "1s"
  69. writeTimeout = "1s"
  70. idleTimeout = "10s"
  71. expire = "24h"
  72. [bm]
  73. addr = "0.0.0.0:8000"
  74. maxListen = 10
  75. timeout = "1s"
  76. [auth]
  77. managerHost = "http://uat-manager.bilibili.co"
  78. dashboardHost = "http://dashboard-mng.bilibili.co"
  79. dashboardCaller = "manager-go"
  80. [auth.DsHTTPClient]
  81. key = "manager-go"
  82. secret = "949bbb2dd3178252638c2407578bc7ad"
  83. dial = "1s"
  84. timeout = "1s"
  85. keepAlive = "60s"
  86. [auth.DsHTTPClient.breaker]
  87. window = "3s"
  88. sleep = "100ms"
  89. bucket = 10
  90. ratio = 0.5
  91. request = 100
  92. [auth.MaHTTPClient]
  93. key = "f6433799dbd88751"
  94. secret = "36f8ddb1806207fe07013ab6a77a3935"
  95. dial = "1s"
  96. timeout = "1s"
  97. keepAlive = "60s"
  98. [auth.MaHTTPClient.breaker]
  99. window = "3s"
  100. sleep = "100ms"
  101. bucket = 10
  102. ratio = 0.5
  103. request = 100
  104. [auth.session]
  105. sessionIDLength = 32
  106. cookieLifeTime = 1800
  107. cookieName = "mng-go"
  108. domain = ".bilibili.co"
  109. [auth.session.Memcache]
  110. name = "go-business/auth"
  111. proto = "unix"
  112. addr = "/tmp/uat-manager-auth-mc.sock"
  113. active = 10
  114. idle = 5
  115. dialTimeout = "1s"
  116. readTimeout = "1s"
  117. writeTimeout = "1s"
  118. idleTimeout = "80s"
  119. [rpc]
  120. [rpc.acc]
  121. [rpc.up]
  122. [rpc.rel]
  123. [host]
  124. api = "http://uat-api.bilibili.co"
  125. manager = "http://uat-manager.bilibili.co"
  126. [httpClient]
  127. [httpClient.read]
  128. key = "b8f239ca38a53308"
  129. secret = "5460ef72fe13c10dfb53442b9111427e"
  130. dial = "80ms"
  131. timeout = "800ms"
  132. keepAlive = "60s"
  133. [httpClient.read.breaker]
  134. window = "10s"
  135. sleep = "100ms"
  136. bucket = 10
  137. ratio = 0.5
  138. request = 100
  139. [httpClient.write]
  140. key = "b8f239ca38a53308"
  141. secret = "5460ef72fe13c10dfb53442b9111427e"
  142. dial = "50ms"
  143. timeout = "1s"
  144. keepAlive = "60s"
  145. [httpClient.write.breaker]
  146. window = "10s"
  147. sleep = "100ms"
  148. bucket = 10
  149. ratio = 0.5
  150. request = 100
  151. [httpClient.es]
  152. key = "b8f239ca38a53308"
  153. secret = "5460ef72fe13c10dfb53442b9111427e"
  154. dial = "1s"
  155. timeout = "2s"
  156. keepAlive = "60s"
  157. [httpClient.es.breaker]
  158. window = "10s"
  159. sleep = "1000ms"
  160. bucket = 10
  161. ratio = 0.5
  162. request = 100
  163. [aegisPub]
  164. key = "0PtMsLLxWyyvoTgAyLCD"
  165. secret = "0PtMsLLxWyyvoTgAyLCE"
  166. group = "Aegis-P"
  167. topic = "Aegis"
  168. action = "pub"
  169. name = "aegis-admin/databus"
  170. proto = "tcp"
  171. addr = "172.16.33.158:6205"
  172. active = 1
  173. idle = 1
  174. dialTimeout = "1s"
  175. readTimeout = "1s"
  176. writeTimeout = "1s"
  177. idleTimeout = "10s"
  178. [bfs]
  179. key = "ef42d94858dd49b2"
  180. secret = "351c300573a330a5271226835be496"
  181. host = "http://uat-bfs.bilibili.co"
  182. timeout = 1000
  183. maxFileSize = 5242880
  184. [grpc]
  185. [accRPC]
  186. timeout = "1s"