point-admin.toml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # This is a TOML document. Boom
  2. version = "1.0.0"
  3. [log]
  4. dir = "/data/log/point-admin"
  5. [bm]
  6. addr = "0.0.0.0:9001"
  7. maxListen = 10
  8. timeout = "1s"
  9. [auth]
  10. managerHost = "http://manager.bilibili.co"
  11. dashboardHost = "http://dashboard-mng.bilibili.co"
  12. dashboardCaller = "manager-go"
  13. [auth.DsHTTPClient]
  14. key = "manager-go"
  15. secret = "949bbb2dd3178252638c2407578bc7ad"
  16. dial = "1s"
  17. timeout = "1s"
  18. keepAlive = "60s"
  19. [auth.DsHTTPClient.breaker]
  20. window = "3s"
  21. sleep = "100ms"
  22. bucket = 10
  23. ratio = 0.5
  24. request = 100
  25. [auth.MaHTTPClient]
  26. key = "f6433799dbd88751"
  27. secret = "36f8ddb1806207fe07013ab6a77a3935"
  28. dial = "1s"
  29. timeout = "1s"
  30. keepAlive = "60s"
  31. [auth.MaHTTPClient.breaker]
  32. window = "3s"
  33. sleep = "100ms"
  34. bucket = 10
  35. ratio = 0.5
  36. request = 100
  37. [auth.session]
  38. sessionIDLength = 32
  39. cookieLifeTime = 1800
  40. cookieName = "mng-go"
  41. domain = ".bilibili.co"
  42. [auth.session.Memcache]
  43. name = "go-business/auth"
  44. proto = "tcp"
  45. addr = "172.16.33.54:11211"
  46. active = 5
  47. idle = 5
  48. dialTimeout = "1s"
  49. readTimeout = "1s"
  50. writeTimeout = "1s"
  51. idleTimeout = "80s"
  52. [mysql]
  53. addr = "172.22.34.101:3308"
  54. dsn = "bilibili_point:QC9YPHkRv7fItBMK5Zb41dEn0WU63Xes@tcp(172.22.34.101:3308)/bilibili_point?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  55. active = 20
  56. idle = 10
  57. idleTimeout ="4h"
  58. queryTimeout = "1s"
  59. execTimeout = "1s"
  60. tranTimeout = "2s"
  61. [mysql.breaker]
  62. window = "3s"
  63. sleep = "100ms"
  64. bucket = 10
  65. ratio = 0.5
  66. request = 100
  67. [memcache]
  68. name = "point"
  69. proto = "tcp"
  70. addr = ""
  71. idle = 5
  72. active = 10
  73. dialTimeout = "1s"
  74. readTimeout = "1s"
  75. writeTimeout = "1s"
  76. idleTimeout = "10s"
  77. expire = "24h"
  78. [httpClient]
  79. key = "ad4bb9b8f5d9d4a7"
  80. secret = "6912080d78d58be7cb94f57d50d438f6"
  81. dial = "1s"
  82. timeout = "10s"
  83. keepAlive = "60s"
  84. timer = 1000
  85. [httpClient.breaker]
  86. window = "10s"
  87. sleep = "100ms"
  88. bucket = 10
  89. ratio = 0.5
  90. request = 100
  91. [rpc]
  92. [rpc.point]
  93. timeout = "1s"