space-admin-test.toml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. [log]
  2. dir = "/data/log/space-admin/"
  3. [orm]
  4. dsn = "space:9TtI2XkoEqk6GpIL@tcp(172.16.33.205:3306)/space?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  5. active = 5
  6. idle = 5
  7. idleTimeout = "4h"
  8. [permit]
  9. managerHost = "http://uat-manager.bilibili.co"
  10. dashboardHost = "http://dashboard-mng.bilibili.co"
  11. dashboardCaller = "manager-go"
  12. [permit.DsHTTPClient]
  13. key = "manager-go"
  14. secret = "949bbb2dd3178252638c2407578bc7ad"
  15. dial = "1s"
  16. timeout = "1s"
  17. keepAlive = "60s"
  18. [permit.MaHTTPClient]
  19. key = "f6433799dbd88751"
  20. secret = "36f8ddb1806207fe07013ab6a77a3935"
  21. dial = "1s"
  22. timeout = "1s"
  23. keepAlive = "60s"
  24. [permit.MaHTTPClient.breaker]
  25. window = "3s"
  26. sleep = "100ms"
  27. bucket = 10
  28. ratio = 0.5
  29. request = 100
  30. [permit.session]
  31. sessionIDLength = 32
  32. cookieLifeTime = 1800
  33. cookieName = "mng-go"
  34. domain = ".bilibili.co"
  35. [permit.session.Memcache]
  36. name = "go-business/auth"
  37. proto = "tcp"
  38. addr = "127.0.0.1:11211"
  39. active = 10
  40. idle = 5
  41. dialTimeout = "1s"
  42. readTimeout = "1s"
  43. writeTimeout = "1s"
  44. idleTimeout = "80s"