feed-admin-test.toml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. version = "1.0.0"
  2. user = "nobody"
  3. dir = "./"
  4. family = "feed-admin"
  5. env = "uat"
  6. [log]
  7. dir = "/data/log/feed-admin/"
  8. [orm]
  9. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_show?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  10. active = 5
  11. idle = 5
  12. idleTimeout = "4h"
  13. [ormResource]
  14. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_resource?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  15. active = 5
  16. idle = 5
  17. idleTimeout = "4h"
  18. [HTTPServer]
  19. addr = "0.0.0.0:6683"
  20. timeout = "1s"
  21. [auth]
  22. managerHost = "http://uat-manager.bilibili.co"
  23. dashboardHost = "http://dashboard-mng.bilibili.co"
  24. dashboardCaller = "manager-go"
  25. [auth.DsHTTPClient]
  26. key = "manager-go"
  27. secret = "949bbb2dd3178252638c2407578bc7ad"
  28. dial = "1s"
  29. timeout = "1s"
  30. keepAlive = "60s"
  31. [auth.DsHTTPClient.breaker]
  32. window = "3s"
  33. sleep = "100ms"
  34. bucket = 10
  35. ratio = 0.5
  36. request = 100
  37. [auth.MaHTTPClient]
  38. key = "f6433799dbd88751"
  39. secret = "36f8ddb1806207fe07013ab6a77a3935"
  40. dial = "1s"
  41. timeout = "1s"
  42. keepAlive = "60s"
  43. [auth.MaHTTPClient.breaker]
  44. window = "3s"
  45. sleep = "100ms"
  46. bucket = 10
  47. ratio = 0.5
  48. request = 100
  49. [auth.session]
  50. sessionIDLength = 32
  51. cookieLifeTime = 1800
  52. cookieName = "mng-go"
  53. domain = ".bilibili.co"
  54. [auth.session.Memcache]
  55. name = "go-business/auth"
  56. proto = "tcp"
  57. addr = "172.16.33.54:11211"
  58. active = 10
  59. idle = 10
  60. dialTimeout = "1s"
  61. readTimeout = "1s"
  62. writeTimeout = "1s"
  63. idleTimeout = "80s"
  64. [httpClient]
  65. key = "1f2620da295d326b"
  66. secret = "test"
  67. dial = "500ms"
  68. timeout = "2s"
  69. keepAlive = "60s"
  70. timer = 10
  71. [httpClient.breaker]
  72. window = "10s"
  73. sleep = "100ms"
  74. bucket = 10
  75. ratio = 0.5
  76. request = 100
  77. [bfs]
  78. #key = "b525299741c108ef"
  79. #secret = "ef1d0b536d4bcef04dd7c75014c51f"
  80. #addr = "http://uat-bfs.bilibili.co/bfs/feed-admin/"
  81. #bucket = "feed-admin"
  82. #timeout = "10s"
  83. key = "b525299741c108ef"
  84. secret = "ef1d0b536d4bcef04dd7c75014c51f"
  85. addr = "http://bfs.bilibili.co/bfs/feed-admin/"
  86. bucket = "feed-admin"
  87. timeout = "10s"
  88. maxFileSize = 10485760
  89. [archiveRPC]
  90. timeout = "500ms"
  91. [archiveRPC.conf]
  92. domain = "api.bilibili.co"
  93. key = "53e2fa226f5ad348"
  94. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  95. [accountRPC]
  96. timeout = "500ms"
  97. [accountRPC.conf]
  98. domain = "api.bilibili.co"
  99. key = "53e2fa226f5ad348"
  100. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  101. [memcache]
  102. name = "tv-admin"
  103. proto = "tcp"
  104. addr = "172.18.33.60:11236"
  105. active = 10
  106. idle = 10
  107. dialTimeout = "1s"
  108. readTimeout = "1s"
  109. writeTimeout = "1s"
  110. idleTimeout = "80s"
  111. [cfg]
  112. # HotCroFre = "*/30 * * * * *"
  113. # DarkCroFre = "*/30 * * * * *"
  114. HotCroFre = "0 */10 * * * *"
  115. DarkCroFre = "0 */10 * * * *"
  116. # DarkCroFre = "0 */10 * * * *"
  117. [host]
  118. manager = "http://uat-manager.bilibili.co"