passport-service.toml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. dir = "./"
  5. perf = "0.0.0.0:7290"
  6. family = "passport-service"
  7. env = "qa"
  8. [xlog]
  9. dir = "/data/log/passport-service"
  10. [tracer]
  11. family = "passport-service"
  12. proto = "unixgram"
  13. addr = "/var/run/dapper-collect/dapper-collect.sock"
  14. [switch]
  15. # NOTE: if login log hbase on, default false
  16. loginLogHBase = true
  17. # NOTE: if offer RPC, default false
  18. rpc = false
  19. # NOTE: if switch.rpc = false, ignore rpcServer2 conf.
  20. #[rpcServer2]
  21. #[[rpcServer2.servers]]
  22. # proto = "tcp"
  23. # addr = "0.0.0.0:7299"
  24. # weight = 10
  25. #[rpcServer2.zookeeper]
  26. # root = "/microservice/passport-service/"
  27. # addrs = ["172.18.33.172:2181"]
  28. # timeout = "30s"
  29. [identify]
  30. WhiteAccessKey = ""
  31. WhiteMid = 0
  32. [identify.app]
  33. key = "e7482d29be4a95b8"
  34. secret = "test"
  35. [identify.memcache]
  36. name = "go-business/identify"
  37. proto = "tcp"
  38. addr = "172.16.33.54:11211"
  39. active = 5
  40. idle = 10
  41. dialTimeout = "1s"
  42. readTimeout = "1s"
  43. writeTimeout = "1s"
  44. idleTimeout = "80s"
  45. [identify.host]
  46. auth = "http://passport.bilibili.com"
  47. secret = "http://open.bilibili.com"
  48. [identify.httpClient]
  49. key = "e7482d29be4a95b8"
  50. secret = "test"
  51. dial = "30ms"
  52. timeout = "100ms"
  53. keepAlive = "60s"
  54. [identify.httpClient.breaker]
  55. window = "10s"
  56. sleep = "100ms"
  57. bucket = 10
  58. ratio = 0.5
  59. request = 100
  60. [identify.httpClient.url]
  61. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  62. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  63. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  64. [hbase]
  65. [hbase.faceApply]
  66. master = ""
  67. meta = ""
  68. testRowKey = "passport-service-ping"
  69. dialTimeout = "1s"
  70. readTimeout = "10s"
  71. readsTimeout = "10s"
  72. writeTimeout = "10s"
  73. writesTimeout = "10s"
  74. [hbase.faceApply.zookeeper]
  75. root = ""
  76. addrs = ["172.18.33.131:2181","172.18.33.168:2181","172.18.33.169:2181"]
  77. timeout = "30s"
  78. [hbase.loginLog]
  79. master = ""
  80. meta = ""
  81. testRowKey = "passport-service-ping"
  82. dialTimeout = "1s"
  83. readTimeout = "10s"
  84. readsTimeout = "10s"
  85. writeTimeout = "10s"
  86. writesTimeout = "10s"
  87. [hbase.loginLog.zookeeper]
  88. root = ""
  89. addrs = ["172.18.33.131:2181","172.18.33.168:2181","172.18.33.169:2181"]
  90. timeout = "30s"
  91. [hbase.pwdLog]
  92. master = ""
  93. meta = ""
  94. testRowKey = "passport-service-ping"
  95. dialTimeout = "1s"
  96. readTimeout = "10s"
  97. readsTimeout = "10s"
  98. writeTimeout = "10s"
  99. writesTimeout = "10s"
  100. [hbase.pwdLog.zookeeper]
  101. root = ""
  102. addrs = ["172.18.33.131:2181","172.18.33.168:2181","172.18.33.169:2181"]
  103. timeout = "30s"