admin.toml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. [bm]
  2. addr = "0.0.0.0:9001"
  3. timeout = "10s"
  4. [httpClient]
  5. key = "c05dd4e1638a8af0"
  6. secret = "7daa7f8c06cd33c5c3067063c746fdcb"
  7. dial = "2s"
  8. timeout = "100s"
  9. keepAlive = "60s"
  10. timer = 1000
  11. [httpClient.breaker]
  12. window = "10s"
  13. sleep = "2000ms"
  14. bucket = 10
  15. ratio = 0.5
  16. request = 100
  17. [mail]
  18. host = "smtp.exmail.qq.com"
  19. port = 465
  20. username = "merlin@bilibili.com"
  21. password = ""
  22. noticeOwner = ["fengyifeng@bilibili.com"]
  23. [memcache]
  24. name = "merlin"
  25. proto = "tcp"
  26. addr = "172.18.33.61:11232"
  27. idle = 5
  28. active = 10
  29. dialTimeout = "1s"
  30. readTimeout = "1s"
  31. writeTimeout = "1s"
  32. idleTimeout = "10s"
  33. expire = "12h"
  34. [bugly]
  35. #bugly URL
  36. host = "https://bugly.qq.com"
  37. #bugly请求尝试次数
  38. urlRetryCount = 3
  39. #cookie 使用上限次数
  40. cookieUsageUpper = 300
  41. #bugly 每页获取issue个数
  42. issuePageSize = 50
  43. #bugly 抓取issue上限个数
  44. issueCountUpper = 100
  45. #bugly 超级管理员
  46. superOwner = ["fengyifeng","yuanmin"]
  47. [tapd]
  48. #tapd bug相关操作 是否认证tapd权限
  49. bugOperateAuth = false
  50. [Scheduler]
  51. #每过30分钟 跑enable version 抓bugly数据
  52. batchRunEnableVersion = "0 */30 * * * ?"
  53. #每天晚上23点 定时更新tapd bug
  54. batchRunUpdateTapdBug = "0 0 23 * * ?"
  55. #每10分钟,定时删除超过三小时为执行完毕的任务
  56. disableBatchRunOverTime = "0 */10 * * * ?"
  57. #过期时限
  58. batchRunOverHourTime = 3
  59. #每天晚上22点,更新同步wechat contact
  60. syncWechatContact = "0 0 22 * * ?"
  61. #是否开启定时任务
  62. active = false
  63. [orm]
  64. dsn = "root:123456@tcp(172.18.33.130:3306)/Marthe2?timeout=200ms&readTimeout=2000ms&writeTimeout=2000ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  65. active = 5
  66. idle = 5
  67. idleTimeout = "4h"
  68. [auth]
  69. managerHost = "http://uat-manager.bilibili.co"
  70. dashboardHost = "http://dashboard-mng.bilibili.co"
  71. dashboardCaller = "marthe"
  72. [auth.DsHTTPClient]
  73. key = "marthe"
  74. secret = "4344bea3587b383bc0b9de5de0efcc3f"
  75. dial = "1s"
  76. timeout = "1s"
  77. keepAlive = "60s"
  78. [auth.DsHTTPClient.breaker]
  79. window = "3s"
  80. sleep = "100ms"
  81. bucket = 10
  82. ratio = 0.5
  83. request = 100
  84. [auth.MaHTTPClient]
  85. key = "f6433799dbd88751"
  86. secret = "36f8ddb1806207fe07013ab6a77a3935"
  87. dial = "1ms"
  88. timeout = "1ms"
  89. keepAlive = "60s"
  90. [auth.MaHTTPClient.breaker]
  91. window = "3s"
  92. sleep = "100ms"
  93. bucket = 10
  94. ratio = 0.5
  95. request = 100
  96. [auth.session]
  97. sessionIDLength = 32
  98. cookieLifeTime = 1
  99. cookieName = "mng-go"
  100. domain = ".bilibili.co"
  101. [auth.session.Memcache]
  102. name = "go-business/auth"
  103. proto = "tcp"
  104. addr = "172.18.33.61:11232"
  105. active = 10
  106. idle = 10
  107. dialTimeout = "1ms"
  108. readTimeout = "1ms"
  109. writeTimeout = "1ms"
  110. idleTimeout = "80s"