app-resource-test.toml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. tick = "5m"
  2. interestJSONFile="/data/conf/app-resource/interest.json"
  3. staticJsonFile="/data/conf/static/static.json"
  4. [guideRandom]
  5. [guideRandom.random]
  6. iphone = 2
  7. [guideRandom.buvid]
  8. iphone = 2
  9. [host]
  10. ad = "http://cm.bilibili.co"
  11. data = "http://172.18.33.162:6193"
  12. [white]
  13. [white.list]
  14. regex=['^(http(s)?://)?(\w+\.)?(bilibili\.(com|tv|cn)|biligame\.(com|cn)|(bilibiliyoo|im9)\.com|b23\.tv)($|/|\\)']
  15. [ABTest]
  16. Range = 49
  17. [duration]
  18. splash = "2h"
  19. [interestInfoc]
  20. taskID = "001229"
  21. proto = "tcp"
  22. addr = "172.19.100.20:5501"
  23. chanSize = 10240
  24. [httpClient]
  25. key = "e7482d29be4a95b8"
  26. secret = "9e803791cdef756e75faee68e12b7442"
  27. dial = "80ms"
  28. timeout = "500ms"
  29. keepAlive = "60s"
  30. timer = 10
  31. [httpClient.breaker]
  32. window = "10s"
  33. sleep = "100ms"
  34. bucket = 10
  35. ratio = 0.5
  36. request = 100
  37. [log]
  38. dir = "/data/log/app-resource/"
  39. [app]
  40. key = "e7482d29be4a95b8"
  41. secret = "9e803791cdef756e75faee68e12b7442"
  42. [bm]
  43. [bm.Outer]
  44. addr = "0.0.0.0:6851"
  45. timeout = "1s"
  46. [mysql]
  47. [mysql.show]
  48. addr = "172.16.33.205:3308"
  49. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_show?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8mb4,utf8"
  50. active = 5
  51. idle = 2
  52. idleTimeout ="4h"
  53. queryTimeout = "1s"
  54. execTimeout = "1s"
  55. tranTimeout = "1s"
  56. [mysql.show.breaker]
  57. window = "3s"
  58. sleep = "100ms"
  59. bucket = 10
  60. ratio = 0.5
  61. request = 100
  62. [mysql.resource]
  63. addr = "172.16.33.205:3308"
  64. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_resource?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  65. active = 5
  66. idle = 2
  67. idleTimeout ="4h"
  68. queryTimeout = "1s"
  69. execTimeout = "1s"
  70. tranTimeout = "1s"
  71. [mysql.resource.breaker]
  72. window = "3s"
  73. sleep = "100ms"
  74. bucket = 10
  75. ratio = 0.5
  76. request = 100
  77. [splash]
  78. [splash.random]
  79. iphone = ["250", "249"]
  80. ipad = ["255", "254"]
  81. android = ["275", "274"]
  82. [domain]
  83. addr = [
  84. "app.bilibili.com",
  85. "app.biliapi.net",
  86. "app.bilapi.com"
  87. ]