answer-admin-test.toml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. [log]
  2. dir = "/data/log/answer-admin/"
  3. stdout = true
  4. [bm]
  5. addr = "0.0.0.0:7581"
  6. maxListen = 10
  7. timeout = "1s"
  8. [mysql]
  9. dsn = "root:123456@tcp(127.0.0.1:3306)/bilibili_answer?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  10. active = 5
  11. idle = 5
  12. idleTimeout = "4h"
  13. [answer]
  14. fontFilePath = "/data/yahei.ttf"
  15. debug=true
  16. [redis]
  17. name = "answer"
  18. proto = "tcp"
  19. addr = "172.18.33.61:6879"
  20. idle = 10
  21. active = 10
  22. dialTimeout = "1s"
  23. readTimeout = "1s"
  24. writeTimeout = "1s"
  25. idleTimeout = "10s"
  26. expire = "720h"
  27. ansCountExpire = "12h"
  28. ansAddFlagCountExpire = "1m"
  29. [auth]
  30. managerHost = "http://uat-manager.bilibili.co"
  31. dashboardHost = "http://uat-dashboard-mng.bilibili.co"
  32. dashboardCaller = "manager-go"
  33. [auth.DsHTTPClient]
  34. key = "manager-go"
  35. secret = "949bbb2dd3178252638c2407578bc7ad"
  36. dial = "1s"
  37. timeout = "1s"
  38. keepAlive = "60s"
  39. [auth.DsHTTPClient.breaker]
  40. window = "3s"
  41. sleep = "100ms"
  42. bucket = 10
  43. ratio = 0.5
  44. request = 100
  45. [auth.MaHTTPClient]
  46. key = "f6433799dbd88751"
  47. secret = "36f8ddb1806207fe07013ab6a77a3935"
  48. dial = "1s"
  49. timeout = "1s"
  50. keepAlive = "60s"
  51. [auth.MaHTTPClient.breaker]
  52. window = "3s"
  53. sleep = "100ms"
  54. bucket = 10
  55. ratio = 0.5
  56. request = 100
  57. [auth.session]
  58. sessionIDLength = 32
  59. cookieLifeTime = 1800
  60. cookieName = "mng-go"
  61. domain = ".bilibili.co"
  62. [auth.session.Memcache]
  63. name = "go-business/auth"
  64. proto = "tcp"
  65. addr = "172.16.33.54:11211"
  66. active = 5
  67. idle = 5
  68. dialTimeout = "1s"
  69. readTimeout = "1s"
  70. writeTimeout = "1s"
  71. idleTimeout = "80s"