2
0

workers.conf 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. [global]
  2. name = "mirror_worker"
  3. log_dir = "/srv/tunasync/log/tunasync/{{.Name}}"
  4. mirror_dir = "/srv/tunasync"
  5. concurrent = 10
  6. interval = 1
  7. [manager]
  8. api_base = "http://localhost:12345"
  9. token = "some_token"
  10. ca_cert = ""
  11. [cgroup]
  12. enable = false
  13. base_path = "/sys/fs/cgroup"
  14. group = "tunasync"
  15. [server]
  16. hostname = "localhost"
  17. listen_addr = "127.0.0.1"
  18. listen_port = 6000
  19. ssl_cert = ""
  20. ssl_key = ""
  21. [[mirrors]]
  22. name = "adobe-fonts"
  23. interval = 1440
  24. provider = "command"
  25. upstream = "https://github.com/adobe-fonts"
  26. #https://github.com/tuna/tunasync-scripts/blob/master/adobe-fonts.sh
  27. command = "/home/scripts/adobe-fonts.sh"
  28. docker_image = "tunathu/tunasync-scripts:latest"
  29. [[mirrors]]
  30. name = "anaconda"
  31. provider = "command"
  32. upstream = "https://repo.continuum.io/"
  33. #https://github.com/tuna/tunasync-scripts/blob/master/anaconda.py
  34. command = "/home/scripts/anaconda.py"
  35. interval = 1440
  36. docker_image = "tunathu/tunasync-scripts:latest"
  37. [[mirrors]]
  38. name = "gnu"
  39. provider = "rsync"
  40. upstream = "rsync://mirrors.ocf.berkeley.edu/gnu/"
  41. rsync_options = [ "--delete-excluded" ]
  42. memory_limit = "256M"
  43. [[mirrors]]
  44. name = "pypi"
  45. provider = "command"
  46. upstream = "https://pypi.python.org/"
  47. #https://github.com/tuna/tunasync-scripts/blob/master/pypi.sh
  48. command = "/home/scripts/pypi.sh"
  49. docker_image = "tunathu/tunasync-scripts:latest"
  50. interval = 5
  51. # set environment varialbes
  52. [mirrors.env]
  53. INIT = "0"
  54. [[mirrors]]
  55. name = "debian"
  56. interval = 720
  57. provider = "rsync"
  58. upstream = "rsync://mirrors.tuna.tsinghua.edu.cn/debian/"
  59. memory_limit = "256M"
  60. [[mirrors]]
  61. name = "ubuntu"
  62. provider = "two-stage-rsync"
  63. stage1_profile = "debian"
  64. upstream = "rsync://archive.ubuntu.com/ubuntu/"
  65. rsync_options = [ "--delete-excluded" ]
  66. memory_limit = "256M"
  67. # vim: ft=toml