admin.toml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. [bm]
  2. addr = "0.0.0.0:9001"
  3. maxListen = 10000
  4. timeout = "1000s"
  5. [httpClient]
  6. key = "c05dd4e1638a8af0"
  7. secret = "7daa7f8c06cd33c5c3067063c746fdcb"
  8. dial = "2s"
  9. timeout = "10s"
  10. keepAlive = "60s"
  11. timer = 1000
  12. [httpClient.breaker]
  13. window = "10s"
  14. sleep = "2000ms"
  15. bucket = 10
  16. ratio = 0.5
  17. request = 100
  18. [mail]
  19. host = "smtp.exmail.qq.com"
  20. port = 465
  21. username = "merlin@bilibili.com"
  22. password = ""
  23. noticeOwner = ["fengyifeng@bilibili.com"]
  24. [orm]
  25. dsn = "root:123456@tcp(172.18.33.130:3306)/tapd?timeout=200ms&readTimeout=2000ms&writeTimeout=2000ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  26. active = 5
  27. idle = 5
  28. idleTimeout = "4h"
  29. [memcache]
  30. name = "merlin"
  31. proto = "tcp"
  32. addr = "172.18.33.61:11232"
  33. idle = 5
  34. active = 10
  35. dialTimeout = "1s"
  36. readTimeout = "1s"
  37. writeTimeout = "1s"
  38. idleTimeout = "10s"
  39. expire = "12h"
  40. [Tapd]
  41. callbackToken = "hRp[Lfnfrp9Jypr7aaJMGn8NC.[E+Gvb9&nRazs6Mm{fEW98.z9yzV*phu)U97#"
  42. useCache = true
  43. [Scheduler]
  44. updateHookURLCacheTask = "0 */10 * * * ?"
  45. active = false
  46. [auth]
  47. managerHost = "http://uat-manager.bilibili.co"
  48. dashboardHost = "http://dashboard-mng.bilibili.co"
  49. dashboardCaller = "merlin"
  50. [auth.DsHTTPClient]
  51. key = "merlin"
  52. secret = "4fb521f66dfd5efcf6e77d078ed2eb0a"
  53. dial = "1s"
  54. timeout = "1s"
  55. keepAlive = "60s"
  56. [auth.DsHTTPClient.breaker]
  57. window = "3s"
  58. sleep = "100ms"
  59. bucket = 10
  60. ratio = 0.5
  61. request = 100
  62. [auth.MaHTTPClient]
  63. key = "f6433799dbd88751"
  64. secret = "36f8ddb1806207fe07013ab6a77a3935"
  65. dial = "1ms"
  66. timeout = "1ms"
  67. keepAlive = "60s"
  68. [auth.MaHTTPClient.breaker]
  69. window = "3s"
  70. sleep = "100ms"
  71. bucket = 10
  72. ratio = 0.5
  73. request = 100
  74. [auth.session]
  75. sessionIDLength = 32
  76. cookieLifeTime = 1
  77. cookieName = "mng-go"
  78. domain = ".bilibili.co"
  79. [auth.session.Memcache]
  80. name = "go-business/auth"
  81. proto = "tcp"
  82. addr = "172.16.33.54:11211"
  83. active = 10
  84. idle = 10
  85. dialTimeout = "1ms"
  86. readTimeout = "1ms"
  87. writeTimeout = "1ms"
  88. idleTimeout = "80s"