push-admin-test.toml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. version = "1.0.0"
  2. user = "nobody"
  3. dir = "./"
  4. family = "push-admin"
  5. [log]
  6. dir = "/data/log/push-admin/"
  7. [HTTPServer]
  8. addr = "0.0.0.0:7141"
  9. maxListen = 1000
  10. timeout = "10m"
  11. readTimeout = "10m"
  12. writeTimeout = "10m"
  13. [httpClient]
  14. key = "b1014d7c339a5649"
  15. secret = "75b74b612aa792b112e6504cae44c319"
  16. dial = "10s"
  17. timeout = "10s"
  18. keepAlive = "60s"
  19. [httpClient.breaker]
  20. window ="3s"
  21. sleep ="100ms"
  22. bucket = 10
  23. ratio = 0.5
  24. request = 100
  25. [dpClient]
  26. key = "17d515f7fa6324a19cfc6546d17ddca7"
  27. secret = "eee2d709e54600ce147a4f522dc3c86e"
  28. dial = "2s"
  29. timeout = "30s"
  30. keepAlive = "60s"
  31. [dpClient.breaker]
  32. window = "10s"
  33. sleep = "100ms"
  34. bucket = 10
  35. ratio = 0.5
  36. request = 100
  37. [orm]
  38. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_push?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4&allowNativePasswords=true"
  39. active = 5
  40. idle = 5
  41. idleTimeout = "4h"
  42. [mysql]
  43. addr = "172.16.33.205"
  44. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_push?timeout=1m&readTimeout=1m&writeTimeout=1m&parseTime=true&loc=Local&charset=utf8,utf8mb4&allowNativePasswords=true"
  45. active = 10
  46. idle = 5
  47. queryTimeout = "1m"
  48. execTimeout = "1m"
  49. tranTimeout = "1m"
  50. [mysql.breaker]
  51. window = "3s"
  52. sleep = "100ms"
  53. bucket = 10
  54. ratio = 0.5
  55. request = 100
  56. [wechat]
  57. token = "GYQeuDWBbAsCNeGz"
  58. secret = "ZKpmgINTkianyMbMixyxcPQjMCSHCDrk"
  59. username = "wangjian"
  60. [cfg]
  61. mountDir = "/data/storage/"
  62. diskFileExpireDay = 7
  63. limitPerTask = 200000
  64. taskGoroutines = 10
  65. partitionsURL = "http://uat-api.bilibili.co/x/internal/v2/archive/typelist"
  66. upimgURL = "http://uat-api.bilibili.co/x/internal/push-service/upimg"
  67. [auth]
  68. managerHost = "http://uat-manager.bilibili.co"
  69. dashboardHost = "http://dashboard-mng.bilibili.co"
  70. dashboardCaller = "manager-go"
  71. [auth.DsHTTPClient]
  72. key = "manager-go"
  73. secret = "949bbb2dd3178252638c2407578bc7ad"
  74. dial = "1s"
  75. timeout = "1s"
  76. keepAlive = "60s"
  77. [auth.DsHTTPClient.breaker]
  78. window = "3s"
  79. sleep = "100ms"
  80. bucket = 10
  81. ratio = 0.5
  82. request = 100
  83. [auth.MaHTTPClient]
  84. key = "f6433799dbd88751"
  85. secret = "36f8ddb1806207fe07013ab6a77a3935"
  86. dial = "1s"
  87. timeout = "1s"
  88. keepAlive = "60s"
  89. [auth.MaHTTPClient.breaker]
  90. window = "3s"
  91. sleep = "100ms"
  92. bucket = 10
  93. ratio = 0.5
  94. request = 100
  95. [auth.session]
  96. sessionIDLength = 32
  97. cookieLifeTime = 1800
  98. cookieName = "mng-go"
  99. domain = ".bilibili.co"
  100. [auth.session.Memcache]
  101. name = "go-business/auth"
  102. proto = "tcp"
  103. addr = "172.16.33.54:11211"
  104. active = 10
  105. idle = 5
  106. dialTimeout = "1s"
  107. readTimeout = "1s"
  108. writeTimeout = "1s"
  109. idleTimeout = "80s"