player-example.toml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/player.pid"
  5. dir = "./"
  6. perf = "127.0.0.1:6260"
  7. checkFile = "/data/www/player-interface.html"
  8. family = "player-interface"
  9. address = "172.16.33.56"
  10. env = "test"
  11. tick = "5m"
  12. [Broadcast]
  13. tcpAddr = "172.16.0.238:4080"
  14. wsAddr = "172.16.0.238:4090"
  15. wssAddr = "chat2.bilibili.com:4095"
  16. begin = "2016-10-31 00:00:00"
  17. end = "2017-01-20 23:59:59"
  18. [policy]
  19. id=1
  20. des="D区广告方案新版灰度"
  21. type="用户随机-尾号"
  22. start="2016-12-06 00:00:00"
  23. end="2017-12-01 00:00:00"
  24. mtime="2016-12-07 15:09:00"
  25. [[pitem]]
  26. Id=1
  27. Data="new"
  28. Comment="新样式"
  29. ExtData="00-04"
  30. [[pitem]]
  31. Id=2
  32. Data="old"
  33. Comment="旧样式"
  34. ExtData="05-99"
  35. [[pitem]]
  36. Id=3
  37. Data="old"
  38. Comment="默认/未登录"
  39. ExtData="default"
  40. [matsuri]
  41. pastID = 5461206
  42. matID = 5461533
  43. matTime = "2016-12-15T16:57:03+08:00"
  44. tick = "10s"
  45. [identify]
  46. whiteAccessKey = ""
  47. whiteMid = 0
  48. [identify.app]
  49. key = "6a29f8ed87407c11"
  50. secret = "d3c5a85f5b895a03735b5d20a273bc57"
  51. [identify.memcache]
  52. name = "go-business/identify"
  53. proto = "tcp"
  54. addr = "172.16.33.54:11211"
  55. active = 5
  56. idle = 10
  57. dialTimeout = "1s"
  58. readTimeout = "1s"
  59. writeTimeout = "1s"
  60. idleTimeout = "80s"
  61. [identify.host]
  62. auth = "http://passport.bilibili.com"
  63. secret = "http://open.bilibili.com"
  64. [identify.authHTTPClient]
  65. dial = "1s"
  66. timeout = "1s"
  67. keepAlive = "60s"
  68. timer = 1000
  69. [identify.secretHTTPClient]
  70. dial = "1s"
  71. timeout = "1s"
  72. keepAlive = "60s"
  73. timer = 1000
  74. [player]
  75. IPFile = "/data/conf/iprepo/iprepo.txt"
  76. [host]
  77. apiCo = "http://api.bilibili.co"
  78. [xlog]
  79. dir = "/data/log/player-interface/"
  80. [ecode]
  81. service = "player-interface"
  82. [ecode.mysql]
  83. name = "[player-interface]tcp@172.16.33.54:3306"
  84. dsn = "test:test@tcp(172.16.33.54:3306)/bilibili_apm?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  85. active = 5
  86. idle = 5
  87. [tracer]
  88. proto = "tcp"
  89. addr = "172.16.33.46:5140"
  90. tag = "platform/player-inferface"
  91. [app]
  92. key = "3c4e41f926e51656"
  93. secret = "26a2095b60c24154521d24ae62b885bb"
  94. [httpClient]
  95. dial = "500ms"
  96. timeout = "500ms"
  97. keepAlive = "60s"
  98. timer = 1000
  99. [multiHttp]
  100. [multiHttp.outer]
  101. addrs = ["0.0.0.0:6261"]
  102. maxListen = 1000
  103. [multiHttp.inner]
  104. addrs = ["0.0.0.0:6262"]
  105. maxListen = 1000
  106. [multiHttp.local]
  107. addrs = ["0.0.0.0:6263"]
  108. maxListen = 1000
  109. [mysql]
  110. [mysql.player]
  111. addr = "172.16.33.54"
  112. dsn = "test:test@tcp(172.16.33.54:3306)/bilibili_player?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  113. active = 5
  114. idle = 2
  115. [mysql.dede]
  116. addr = "172.16.0.5"
  117. dsn = "bilibili:5Fq2M4FbPZK4fhtE@tcp(172.16.0.5:3306)/bilibili?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  118. active = 5
  119. idle = 2
  120. [accountRPC]
  121. pullInterval = "10s"
  122. [accountRPC.client]
  123. proto = "tcp"
  124. addr = "172.16.33.56:6079"
  125. timeout = "1s"
  126. timer = 1000
  127. [[accountRPC.backup]]
  128. proto = "tcp"
  129. addr = "172.16.33.56:6079"
  130. timeout = "1s"
  131. timer = 1000
  132. [accountRPC.zookeeper]
  133. root = "/microservice/account-service/"
  134. addrs = ["172.16.33.54:2181"]
  135. timeout = "30s"
  136. [archiveRPC]
  137. pullInterval = "10s"
  138. [archiveRPC.client]
  139. proto = "tcp"
  140. addr = "172.16.33.56:6089"
  141. timeout = "1s"
  142. timer = 1000
  143. [[archiveRPC.backup]]
  144. proto = "tcp"
  145. addr = "172.16.33.56:6089"
  146. timeout = "1s"
  147. timer = 1000
  148. [archiveRPC.zookeeper]
  149. root = "/microservice/archive-service/"
  150. addrs = ["172.16.33.54:2181"]
  151. timeout = "30s"