macross-admin-test.toml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. reload = "1m"
  2. [log]
  3. dir = "/data/log/macross/"
  4. [bm]
  5. [bm.inner]
  6. addr = "0.0.0.0:5001"
  7. timeout = "1s"
  8. [bm.local]
  9. addr = "0.0.0.0:5003"
  10. timeout = "1s"
  11. [oss]
  12. accessKeyID = "LTAItAbov41J7Wea"
  13. accessKeySecret = "yaPQXRPLicxe8xLOgPsCffYEIO843a"
  14. endpoint = "http://oss-cn-shanghai.aliyuncs.com"
  15. bucket = "dl-hdslb-com"
  16. originDir = "mobile/test"
  17. publishDir = "mobile/latest"
  18. [db]
  19. [db.macross]
  20. name = "127.0.0.1:3306"
  21. dsn = "root:test@tcp(127.0.0.1:3306)/mtc_macross?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  22. active = 5
  23. idle = 2
  24. idleTimeout ="4h"
  25. queryTimeout = "1s"
  26. execTimeout = "1s"
  27. tranTimeout = "1s"
  28. [db.manager.breaker]
  29. window = "3s"
  30. sleep = "100ms"
  31. bucket = 10
  32. ratio = 0.5
  33. request = 100
  34. [httpClient]
  35. key = "f022126a8a365e20"
  36. secret = "b7b86838145d634b487e67b811b8fab2"
  37. dial = "500ms"
  38. timeout = "2s"
  39. keepAlive = "60s"
  40. timer = 1000
  41. [httpClient.breaker]
  42. window ="10s"
  43. sleep ="10ms"
  44. bucket = 10
  45. ratio = 0.1
  46. request = 10
  47. [property]
  48. [property.mail]
  49. host = "smtp.exmail.qq.com"
  50. port = 465
  51. address = "no-reply@bilibili.com"
  52. pwd = ""
  53. name = "App Builder"
  54. [property.package]
  55. URLPrefix = "http://test"
  56. savePath = "/Users/yourname"
  57. [auth]
  58. managerHost = "http://macross.bilibili.co"
  59. dashboardHost = "http://dashboard-mng.bilibili.co"
  60. dashboardCaller = "android-apk"
  61. [auth.DsHTTPClient]
  62. key = "manager-go"
  63. secret = "2pnik62rr8xgrrleag2vx2l0svvnrfld"
  64. dial = "1s"
  65. timeout = "1s"
  66. keepAlive = "60s"
  67. [auth.DsHTTPClient.breaker]
  68. window = "3s"
  69. sleep = "100ms"
  70. bucket = 10
  71. ratio = 0.5
  72. request = 100
  73. [auth.MaHTTPClient]
  74. key = "f022126a8a365e20"
  75. secret = "b7b86838145d634b487e67b811b8fab2"
  76. dial = "1s"
  77. timeout = "1s"
  78. keepAlive = "60s"
  79. [auth.MaHTTPClient.breaker]
  80. window = "3s"
  81. sleep = "100ms"
  82. bucket = 10
  83. ratio = 0.5
  84. request = 100
  85. [auth.session]
  86. sessionIDLength = 32
  87. cookieLifeTime = 1800
  88. cookieName = "mng-go"
  89. domain = ".bilibili.co"
  90. [auth.session.Memcache]
  91. name = "go-business/auth"
  92. proto = "tcp"
  93. addr = "172.16.33.54:11211"
  94. active = 10
  95. idle = 10
  96. dialTimeout = "1s"
  97. readTimeout = "1s"
  98. writeTimeout = "1s"
  99. idleTimeout = "80s"