up-job.toml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. IsTest = true
  2. [log]
  3. stdout = true
  4. # dir = "/data/log/up/"
  5. [Upcrm]
  6. dsn = "upcrm:DdL6c5JaWCYKMAQ10PURbfeImow9HXlx@tcp(172.16.33.205:3306)/bilibili_upcrm?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  7. active = 5
  8. idle = 1
  9. idleTimeout = "4h"
  10. [ArchiveOrm]
  11. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_archive?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  12. active = 5
  13. idle = 1
  14. idleTimeout = "4h"
  15. [job]
  16. UpCheckDateDueTaskTime = "0 0 7 * * ?"
  17. TaskScheduleTime = "0 0 1 * * ?"
  18. CheckStateJobTime = "0 30 /1 * * ?"
  19. UpdateUpTidJobTime = "0 15 0 * * ?"
  20. [MailConf]
  21. host = "smtp.exmail.qq.com"
  22. port = 465
  23. username = "manager@bilibili.com"
  24. password = "123"
  25. DueMailReceivers = [""] # 需要发送的额外管理员名称
  26. [DatabusConf]
  27. [DatabusConf.ArchiveNotify]
  28. key = "4c76cbb7a985ac90"
  29. secret= "43bb22ce34a6b13e7814f09cb8116522"
  30. group= "ArchiveNotify-MainArchive-UpArchives-S"
  31. topic= "ArchiveNotify-T"
  32. action = "sub"
  33. name = "up-job"
  34. proto = "tcp"
  35. addr = "172.18.33.50:6205"
  36. idle = 5
  37. active = 20
  38. dialTimeout = "1s"
  39. readTimeout = "60s"
  40. writeTimeout = "1s"
  41. idleTimeout = "10s"
  42. [DatabusConf.Archive]
  43. key = "4c76cbb7a985ac90"
  44. secret= "43bb22ce34a6b13e7814f09cb8116522"
  45. group= "Archive-MainArchive-UpService-S"
  46. topic= "Archive-T"
  47. action = "sub"
  48. name = "up-job"
  49. proto = "tcp"
  50. addr = "172.18.33.50:6205"
  51. idle = 5
  52. active = 20
  53. dialTimeout = "1s"
  54. readTimeout = "60s"
  55. writeTimeout = "1s"
  56. idleTimeout = "10s"
  57. [grpcclient]
  58. [grpcclient.up]
  59. timeout = "5s"
  60. [grpcclient.archive]
  61. timeout = "2s"