laser-admin.toml 2.1 KB

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