config-admin-example.toml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. [log]
  2. dir = "/data/log/config-admin/"
  3. [auth]
  4. managerHost = "http://uat-manager.bilibili.co"
  5. dashboardHost = "http://dashboard-mng.bilibili.co"
  6. dashboardCaller = "sven"
  7. [auth.DsHTTPClient]
  8. key = "sven"
  9. secret = "a9564ebc3289b7a14551baf8ad5ec60a"
  10. dial = "1s"
  11. timeout = "1s"
  12. keepAlive = "60s"
  13. [auth.DsHTTPClient.breaker]
  14. window = "3s"
  15. sleep = "100ms"
  16. bucket = 10
  17. ratio = 0.5
  18. request = 100
  19. [auth.MaHTTPClient]
  20. key = "f6433799dbd88751"
  21. secret = "36f8ddb1806207fe07013ab6a77a3935"
  22. dial = "1s"
  23. timeout = "1s"
  24. keepAlive = "60s"
  25. [auth.MaHTTPClient.breaker]
  26. window = "3s"
  27. sleep = "100ms"
  28. bucket = 10
  29. ratio = 0.5
  30. request = 100
  31. [auth.session]
  32. sessionIDLength = 32
  33. cookieLifeTime = 1800
  34. cookieName = "sven-apm"
  35. domain = ".bilibili.co"
  36. [auth.session.Memcache]
  37. name = "go-business/auth"
  38. proto = "tcp"
  39. addr = "172.18.33.61:11232"
  40. active = 10
  41. idle = 10
  42. dialTimeout = "1s"
  43. readTimeout = "1s"
  44. writeTimeout = "1s"
  45. idleTimeout = "80s"
  46. [httpClient]
  47. key = "test"
  48. secret = "e6c4c252dc7e3d8a90805eecd7c73396"
  49. dial = "1s"
  50. timeout = "10s"
  51. keepAlive = "60s"
  52. timer = 1000
  53. [httpClient.breaker]
  54. window = "10s"
  55. sleep = "100ms"
  56. bucket = 10
  57. ratio = 0.5
  58. request = 100
  59. [orm]
  60. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_config?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  61. active = 5
  62. idle = 5
  63. idleTimeout = "4h"
  64. [ormapm]
  65. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_apm?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  66. active = 5
  67. idle = 5
  68. idleTimeout = "4h"
  69. [tree]
  70. platform = "2F3b8fDVGlMnj8aCDlMaW"
  71. [ConfSvr]
  72. timeout = "1s"