passport-admin.toml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # This is a TOML document. Boom
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/passport-admin.pid"
  5. dir = "./"
  6. [encode]
  7. salt = ""
  8. aesKey = "0123456789abcdef"
  9. [elastic]
  10. #host = "http://uat-manager.bilibili.co"
  11. host = "http://127.0.0.1:8080"
  12. [elastic.HTTPClient]
  13. key = "3c4e41f926e51656"
  14. secret = "26a2095b60c24154521d24ae62b885bb"
  15. dial = "1s"
  16. timeout = "3s"
  17. keepAlive = "60s"
  18. timer = 1000
  19. [elastic.HTTPClient.breaker]
  20. window ="3s"
  21. sleep ="100ms"
  22. bucket = 10
  23. ratio = 0.5
  24. request = 100
  25. [permit]
  26. managerHost = "http://uat-manager.bilibili.co"
  27. dashboardHost = "http://dashboard-mng.bilibili.co"
  28. dashboardCaller = "manager-go"
  29. [auth.DsHTTPClient]
  30. key = "manager-go"
  31. secret = "949bbb2dd3178252638c2407578bc7ad"
  32. dial = "1s"
  33. timeout = "1s"
  34. keepAlive = "60s"
  35. [auth.DsHTTPClient.breaker]
  36. window = "3s"
  37. sleep = "100ms"
  38. bucket = 10
  39. ratio = 0.5
  40. request = 100
  41. [auth.MaHTTPClient]
  42. key = "f6433799dbd88751"
  43. secret = "36f8ddb1806207fe07013ab6a77a3935"
  44. dial = "1s"
  45. timeout = "1s"
  46. keepAlive = "60s"
  47. [auth.MaHTTPClient.breaker]
  48. window = "3s"
  49. sleep = "100ms"
  50. bucket = 10
  51. ratio = 0.5
  52. request = 100
  53. [auth.session]
  54. sessionIDLength = 32
  55. cookieLifeTime = 1800
  56. cookieName = "mng-go"
  57. domain = ".bilibili.co"
  58. [auth.session.Memcache]
  59. name = "go-business/auth"
  60. proto = "tcp"
  61. addr = "172.18.33.61:11232"
  62. active = 5
  63. idle = 5
  64. dialTimeout = "1s"
  65. readTimeout = "1s"
  66. writeTimeout = "1s"
  67. idleTimeout = "80s"