appstatic-admin-test.toml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. version = "1.0.0"
  2. user = "nobody"
  3. pid = "/tmp/appstatic-admin.pid"
  4. dir = "./"
  5. unameTicker = "10s"
  6. [identify]
  7. whiteAccessKey = ""
  8. whiteMid = 0
  9. csrfOn = false
  10. [identify.memcache]
  11. name = "go-business/identify"
  12. proto = "tcp"
  13. addr = "172.16.33.54:11211"
  14. active = 10
  15. idle = 10
  16. dialTimeout = "1s"
  17. readTimeout = "1s"
  18. writeTimeout = "1s"
  19. idleTimeout = "80s"
  20. [identify.host]
  21. auth = "http://passport.bilibili.co"
  22. secret = "http://open.bilibili.co"
  23. [identify.HTTPClient]
  24. key = "f6433799dbd88751"
  25. secret = "36f8ddb1806207fe07013ab6a77a3935"
  26. dial = "1s"
  27. timeout = "1s"
  28. keepAlive = "60s"
  29. [identify.HTTPClient.breaker]
  30. window = "3s"
  31. sleep = "100ms"
  32. bucket = 10
  33. ratio = 0.5
  34. request = 100
  35. [identify.HTTPClient.URL]
  36. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  37. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  38. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  39. [auth]
  40. managerHost = "http://uat-manager.bilibili.co"
  41. dashboardHost = "http://uat-dashboard-mng.bilibili.co"
  42. dashboardCaller = "manager-go"
  43. [auth.DsHTTPClient]
  44. key = "manager-go"
  45. secret = "949bbb2dd3178252638c2407578bc7ad"
  46. dial = "1s"
  47. timeout = "1s"
  48. keepAlive = "60s"
  49. [auth.DsHTTPClient.breaker]
  50. window = "3s"
  51. sleep = "100ms"
  52. bucket = 10
  53. ratio = 0.5
  54. request = 100
  55. [auth.MaHTTPClient]
  56. key = "f6433799dbd88751"
  57. secret = "36f8ddb1806207fe07013ab6a77a3935"
  58. dial = "1s"
  59. timeout = "1s"
  60. keepAlive = "60s"
  61. [auth.MaHTTPClient.breaker]
  62. window = "3s"
  63. sleep = "100ms"
  64. bucket = 10
  65. ratio = 0.5
  66. request = 100
  67. [auth.session]
  68. sessionIDLength = 32
  69. cookieLifeTime = 1800
  70. cookieName = "mng-go"
  71. domain = ".bilibili.co"
  72. [auth.session.Memcache]
  73. name = "go-business/auth"
  74. proto = "tcp"
  75. addr = "172.16.33.54:11211"
  76. active = 10
  77. idle = 10
  78. dialTimeout = "1s"
  79. readTimeout = "1s"
  80. writeTimeout = "1s"
  81. idleTimeout = "80s"
  82. [BM]
  83. addr = "0.0.0.0:6683"
  84. maxListen = 10
  85. timeout = "1s"
  86. [orm]
  87. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_show?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  88. active = 5
  89. idle = 5
  90. idleTimeout = "4h"
  91. [cfg]
  92. historyVer = 10
  93. freDiff = "10s"
  94. folder = "/tmp/test"
  95. storage = "bfs"
  96. filetypes = []
  97. [xlog]
  98. dir = "/data/log/appstatic-admin"
  99. family = "appstatic-admin"
  100. [nas]
  101. key = "53e2fa226f5ad348"
  102. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  103. host = "http://macross.bilibili.co/api/v1/macross/manager/upload"
  104. timeout = 1000
  105. oldURL = "dl-hdslb-com"
  106. newURL = "http://dl.hdslb.com"
  107. [bfs]
  108. key = "fed7d6b5948c614f"
  109. secret = "280e9140721cff3879cd13f59fc28a"
  110. host = "http://uat-bfs.bilibili.co"
  111. timeout = 1000
  112. [httpClient]
  113. key = "b525299741c108ef"
  114. secret = "ef1d0b536d4bcef04dd7c75014c51f"
  115. dial = "500ms"
  116. timeout = "2s"
  117. keepAlive = "60s"
  118. timer = 10
  119. [httpClient.breaker]
  120. window = "10s"
  121. sleep = "100ms"
  122. bucket = 10
  123. ratio = 0.5
  124. request = 100
  125. [redis]
  126. name = "tv-job"
  127. proto = "tcp"
  128. addr = "127.0.0.1:6379"
  129. active = 10
  130. idle = 5
  131. dialTimeout = "1s"
  132. readTimeout = "1s"
  133. writeTimeout = "1s"
  134. idleTimeout = "10s"
  135. expire = "24h"