archive-job-example.toml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. version = "1.0.0"
  2. user = "nobody"
  3. pid = "/tmp/archive-job.pid"
  4. dir = "./"
  5. perf = "127.0.0.1:6161"
  6. trace = false
  7. debug = false
  8. env = "test"
  9. tick = "50ms"
  10. [xlog]
  11. dir = "/data/log/archive-job/"
  12. [app]
  13. key = "e7482d29be4a95b8"
  14. secret = "9e803791cdef756e75faee68e12b7442"
  15. [host]
  16. apiCo = "http://api.bilibili.co"
  17. [httpClient]
  18. dial = "100ms"
  19. timeout = "1s"
  20. keepAlive = "60s"
  21. timer = 128
  22. [databus]
  23. key = "0Pub71WwEMKXu63qtztu"
  24. secret = "0Pub71WwEMKXu63qtztv"
  25. group = "Stat-UGC-S"
  26. topic = "Stat-T"
  27. action = "sub"
  28. [databus.redis]
  29. name = "archive-job/databus"
  30. proto = "tcp"
  31. addr = "172.16.33.56:6205"
  32. idle = 100
  33. active = 100
  34. dialTimeout = "1s"
  35. readTimeout = "60s"
  36. writeTimeout = "1s"
  37. idleTimeout = "10s"
  38. [kafka]
  39. group = "archive-job-consumer"
  40. topics = ["archive-push", "stat"]
  41. offset = false
  42. [kafka.zookeeper]
  43. root = "/kafka"
  44. addrs = ["172.16.0.148:2181"]
  45. timeout = "30s"
  46. [archiveRPC]
  47. pullInterval = "10s"
  48. [archiveRPC.client]
  49. proto = "tcp"
  50. addr = "172.16.0.26:6089"
  51. timeout = "1s"
  52. timer = 1000
  53. [[archiveRPC.backup]]
  54. proto = "tcp"
  55. addr = "172.16.0.26:6089"
  56. timeout = "1s"
  57. timer = 1000
  58. [archiveRPC.zookeeper]
  59. root = "/microservice/archive-service/"
  60. addrs = ["172.16.0.148:2181"]
  61. timeout = "30s"
  62. [mail]
  63. host = "smtp.exmail.qq.com"
  64. port = 465
  65. username = "2333@bilibili.com"
  66. password = "2333"
  67. bangumi = ["233@bilibili.com", "2333@bilibili.com"]
  68. movie = ["233@bilibili.com", "2333@bilibili.com"]