up-rating-interface.toml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/up-rating-interface.pid"
  5. dir = "./"
  6. perf = "0.0.0.0:7422"
  7. checkFile = "/data/www/up-rating-interface.html"
  8. family = "up-rating-interface"
  9. address = ""
  10. [bm]
  11. addr = "0.0.0.0:7420"
  12. maxListen = 1000
  13. timeout = "1s"
  14. [log]
  15. dir = "/data/log/up-rating-interface/"
  16. stdout = true
  17. [db]
  18. [db.main]
  19. dsn = "rating:OruSYjDPiZRnsNH860Jl1MEXVgofb9kW@tcp(172.16.33.205:3308)/bilibili_up_rating?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  20. active = 5
  21. idle = 5
  22. idleTimeout ="4h"
  23. queryTimeout = "5s"
  24. execTimeout = "5s"
  25. tranTimeout = "10s"
  26. [db.main.breaker]
  27. window = "3s"
  28. sleep = "100ms"
  29. bucket = 10
  30. ratio = 0.5
  31. request = 100
  32. [db.slave]
  33. dsn = "rating_reader:tTzLBEk2WRnjKdCuIcbx8XpDr7sy0NH5@tcp(172.16.33.205:3308)/bilibili_up_rating?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  34. active = 5
  35. idle = 5
  36. idleTimeout = "4h"
  37. queryTimeout = "5s"
  38. execTimeout = "5s"
  39. tranTimeout = "10s"
  40. [db.slave.breaker]
  41. window = "3s"
  42. sleep = "100ms"
  43. bucket = 10
  44. ratio = 0.5
  45. request = 100
  46. [multiHTTP]
  47. [multiHTTP.inner]
  48. addrs = ["0.0.0.0:7420"]
  49. maxListen = 10
  50. [multiHTTP.local]
  51. addrs = ["0.0.0.0:7421"]
  52. maxListen = 10
  53. [app]
  54. key = "345b38393c90f093"
  55. secret = "598c2f3e826f36f6feb9c4f671e39adf"
  56. [identify]
  57. whiteAccessKey = "a2a1eb0ac97d6ba08b85aa0151528f34"
  58. whiteMid = 23675773
  59. csrf = true
  60. [identify.app]
  61. key = "7c7ac0db1aa05587"
  62. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  63. [identify.memcache]
  64. name = "go-business/identify"
  65. proto = "unix"
  66. addr = "/tmp/shd-platform-identify-web-mc.sock"
  67. active = 1024
  68. idle = 64
  69. dialTimeout = "50ms"
  70. readTimeout = "90ms"
  71. writeTimeout = "80ms"
  72. idleTimeout = "80s"
  73. [identify.host]
  74. auth = "http://passport.bilibili.co"
  75. secret = "http://open.bilibili.co"
  76. [identify.httpClient]
  77. key = "7c7ac0db1aa05587"
  78. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  79. dial = "50ms"
  80. timeout = "100ms"
  81. keepAlive = "60s"
  82. [identify.httpClient.breaker]
  83. window = "10s"
  84. sleep = "100ms"
  85. bucket = 10
  86. ratio = 0.5
  87. request = 100
  88. [identify.httpClient.url]
  89. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  90. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  91. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  92. [redis]
  93. name = "up-rating-interface"
  94. proto = "tcp"
  95. addr = "10.23.103.180:6379"
  96. idle = 10
  97. active = 10
  98. dialTimeout = "1s"
  99. readTimeout = "1s"
  100. writeTimeout = "1s"
  101. idleTimeout = "10s"
  102. expire = "1m"
  103. upRatingExpire = "5m"