-
Notifications
You must be signed in to change notification settings - Fork 13
/
config.zhiyuan.yaml
366 lines (362 loc) · 10.6 KB
/
config.zhiyuan.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
interval: 10 # Interval between pollings
loglevel: 4 # 1-5
concurrent_limit: 5
# Prometheus metrics are exposed at http://exporter_address/metrics
exporter_address: :8081
# Address where JSON API will be served
json_api:
address: :7001
checkpoint: /data/checkpoint.json
dummy:
oneshot_common: &oneshot_common
retry: 5
retry_interval: 60
rsync_fetcher_common: &rsync_fetcher_common
s3_api: "https://s3.jcloud.sjtu.edu.cn"
s3_region: "jCloud S3"
s3_bucket: "899a892efef34b1b944a19981040f55b-oss01"
pg: "postgres://rsync-sjtug@postgres/rsync-sjtug"
tmp_path: "/mnt/rsync_fetcher_tmp"
keep: 2
partial: 5
repos:
# kali
- type: shell_script
script: /worker-script/rsync.sh
source: rsync://ftp.jaist.ac.jp/kali/
interval: 10800
path: /mnt/kali
name: kali
<<: *oneshot_common
# almalinux
- type: shell_script
script: /worker-script/rsync.sh
source: rsync://rsync.repo.almalinux.org/almalinux/
interval: 10903
path: /mnt/almalinux
name: almalinux
<<: *oneshot_common
# immortalwrt
- type: shell_script
script: /worker-script/rsync_password.sh
source: rsync://[email protected]/firmware-public
interval: 40401
path: /mnt/immortalwrt
name: immortalwrt
# Password is made public at #319
# So we do not hide it behind secrets
password: immortalwrt-org
rsync_extra_flags: --exclude "/snapshots/" --exclude "/releases/*18.06*"
<<: *oneshot_common
- type: shell_script
script: /worker-script/rsync.sh
source: rsync://rsync.chiark.greenend.org.uk/ftp/users/sgtatham/putty-website-mirror/
interval: 3600
path: /mnt/putty
name: putty
<<: *oneshot_common
- type: shell_script
script: /worker-script/rsync.sh
source: rsync://rsync11.us.gentoo.org/gentoo-portage/
interval: 3600
path: /mnt/gentoo
name: gentoo
<<: *oneshot_common
- type: shell_script
script: /worker-script/rsync.sh
source: rsync://ftp.ca.vim.org/vim
interval: 3600
path: /mnt/vim
name: vim
<<: *oneshot_common
- type: shell_script
script: /worker-script/rsync.sh
source: rsync://rsync.alpinelinux.org/alpine/
interval: 3600
path: /mnt/alpine
name: alpine
no_redir_http: true
<<: *oneshot_common
- type: shell_script
script: /worker-script/rsync.sh
source: cpan-rsync.perl.org::CPAN
interval: 3600
path: /mnt/cpan
name: cpan
<<: *oneshot_common
- type: shell_script
script: /worker-script/zhiyuan/worker-script/rsync_ssh.sh
source: "[email protected]:"
interval: 43200
path: /mnt/cran
name: cran
ignore_vanish: true
<<: *oneshot_common
- type: shell_script
script: /worker-script/rsync.sh
source: rsync://mirrors.tuna.tsinghua.edu.cn/ctex/
interval: 3600
path: /mnt/ctex
name: ctex
<<: *oneshot_common
- type: shell_script
script: /worker-script/rsync.sh
source: rsync://mirrors.tuna.tsinghua.edu.cn/gnu/
interval: 43200
path: /mnt/gnu
name: gnu
<<: *oneshot_common
- type: shell_script
script: /worker-script/rsync.sh
source: rsync://mirror.steadfast.net/cygwin/
interval: 3600
path: /mnt/cygwin
name: cygwin
<<: *oneshot_common
- type: shell_script
script: /worker-script/zhiyuan/worker-script/rsync.sh
source: rsync.osuosl.org::ros-main
interval: 3600
path: /mnt/ros
mirror_path: /mnt/ros/ubuntu
name: ros
<<: *oneshot_common
- type: shell_script
script: /worker-script/rsync-fetcher.sh
source: rsync://ftp.jaist.ac.jp/kali-images/
interval: 10800
path: /mnt/kali-images
name: kali-images
serve_mode: rsync_gateway
<<: *rsync_fetcher_common
<<: *oneshot_common
- type: shell_script
script: /worker-script/zhiyuan/worker-script/git.sh
name: git/homebrew-core.git
origin: https://github.com/Homebrew/homebrew-core.git
interval: 3801
path: /mnt/git/homebrew-core.git
target: https://git.sjtu.edu.cn/sjtug/homebrew-core.git
serve_mode: git
<<: *oneshot_common
- type: shell_script
script: /worker-script/zhiyuan/worker-script/git.sh
name: git/homebrew-cask.git
interval: 3801
path: /mnt/git/homebrew-cask.git
origin: https://github.com/Homebrew/homebrew-cask.git
target: https://git.sjtu.edu.cn/sjtug/homebrew-cask.git
serve_mode: git
<<: *oneshot_common
- type: shell_script
script: /worker-script/zhiyuan/worker-script/git.sh
name: git/brew.git
interval: 3927
path: /mnt/git/brew.git
origin: https://github.com/Homebrew/brew.git
target: https://git.sjtu.edu.cn/sjtug/brew.git
serve_mode: git
<<: *oneshot_common
- type: shell_script
script: /worker-script/zhiyuan/worker-script/crates-io.sh
name: git/crates.io-index
interval: 3601
path: /mnt/git/crates.io-index
origin: https://github.com/rust-lang/crates.io-index.git
target: https://git.sjtu.edu.cn/sjtug/crates.io-index.git
serve_mode: git
<<: *oneshot_common
- type: external
name: crates.io-index
path: /mnt/git/crates.io-index
disabled: true
z_link_to: git/crates.io-index
- type: shell_script
name: raspbian
script: /worker-script/rsync-fetcher.sh
interval: 10801
source: rsync://mirrors6.tuna.tsinghua.edu.cn/raspbian/
no_redir_http: true
serve_mode: rsync_gateway
<<: *rsync_fetcher_common
<<: *oneshot_common
- type: shell_script
name: parrot
script: /worker-script/rsync-fetcher.sh
interval: 3802
source: rsync://archive.parrotsec.org/parrot
serve_mode: rsync_gateway
<<: *rsync_fetcher_common
<<: *oneshot_common
- type: shell_script
name: raspberrypi
script: /worker-script/rsync-fetcher.sh
interval: 10801
source: rsync://apt-repo.raspberrypi.org/archive
serve_mode: rsync_gateway
<<: *rsync_fetcher_common
<<: *oneshot_common
- type: shell_script
name: mx-isos
script: /worker-script/rsync_password.sh
path: /mnt/mx-isos
interval: 43301
source: [email protected]::MX-Linux/
# Password is made public at https://mxlinux.org/wiki/rsyncserver/mirroring-mx-antix-linux/
# So we do not hide it behind secrets
password: dstuPwd
<<: *oneshot_common
- type: shell_script
script: /worker-script/zhiyuan/worker-script/packagist.sh
interval: 4800
path: /mnt/packagist
name: packagist
subdomain: packagist.mirrors.sjtug.sjtu.edu.cn
upstream: https://repo.packagist.org
extra_directives:
- precompressed gzip
<<: *oneshot_common
- type: shell_script
script: /worker-script/zhiyuan/worker-script/mongodb.sh
source: s3://repo.mongodb.org/
interval: 4600
path: /mnt/mongodb
name: mongodb
<<: *oneshot_common
# - type: shell_script
# script: julia -t auto /worker-script/zhiyuan/worker-script/julia.jl
# interval: 8000
# path: /mnt/julia
# name: julia
- type: external
name: julia
serve_mode: redir
target: https://mirrors.pku.edu.cn/julia/
disabled: true
- type: shell_script
name: emacs-elpa
script: /worker-script/rsync.sh
path: /mnt/emacs-elpa
interval: 5000
source: rsync://mirrors.tuna.tsinghua.edu.cn/elpa/
- type: shell_script
script: /worker-script/zhiyuan/worker-script/julia-releases.sh
source: s3://julialang2/
interval: 9200
path: /mnt/julia-releases
name: julia-releases
<<: *oneshot_common
- type: shell_script
name: msys2
script: /worker-script/rsync-fetcher.sh
interval: 12001
source: rsync://repo.msys2.org/builds
serve_mode: rsync_gateway
<<: *rsync_fetcher_common
<<: *oneshot_common
- type: shell_script
script: /worker-script/zhiyuan/worker-script/opam.sh
name: git/opam-repository.git
interval: 4623
path: /mnt/git/opam-repository.git
origin: https://github.com/ocaml/opam-repository.git
target: https://git.sjtu.edu.cn/sjtug/opam-repository.git
serve_mode: git
<<: *oneshot_common
- type: shell_script
script: /worker-script/zhiyuan/worker-script/git.sh
name: git/qemu.git
origin: https://git.qemu.org/git/qemu.git
interval: 4300
path: /mnt/git/qemu.git
target: https://git.sjtu.edu.cn/sjtug/qemu.git
serve_mode: git
<<: *oneshot_common
- type: shell_script
script: /worker-script/rsync.sh
source: rsync://repo.linuxliteos.com/repo
interval: 7200
path: /mnt/linuxliteos
name: linuxliteos
<<: *oneshot_common
# - type: shell_script
# name: download.flutter.io
# script: /worker-script/rsync.sh
# path: /mnt/download.flutter.io
# interval: 7200
# source: rsync://mirrors.tuna.tsinghua.edu.cn/flutter/download.flutter.io/
# <<: *oneshot_common
- type: external
name: download.flutter.io
serve_mode: redir
target: https://mirrors.tuna.tsinghua.edu.cn/flutter/download.flutter.io/
disabled: true
- type: external
name: k8s.gcr.io
subdomain: k8s-gcr-io.mirrors.sjtug.sjtu.edu.cn
serve_mode: redir
target: https://mirrors.sjtug.sjtu.edu.cn/registry.k8s.io
disabled: true
- type: external
name: registry.k8s.io
subdomain: registry-k8s-io.mirrors.sjtug.sjtu.edu.cn
proxy_to: k8s-registry:80
unified: disable
serve_mode: proxy
# - type: external
# name: docker-registry
# proxy_to: docker-registry:80
# subdomain: docker.mirrors.sjtug.sjtu.edu.cn
# unified: disable
# serve_mode: proxy
- type: external
name: google-fonts
subdomain: google-fonts.mirrors.sjtug.sjtu.edu.cn
serve_mode: redir
target: https://fonts.googleapis.com
disabled: true
- type: external
name: CPAN
path: /mnt/CPAN
disabled: true
- type: external
name: CRAN
path: /mnt/CRAN
disabled: true
- type: external
serve_mode: mirror_intel
name: anaconda
subdomain: anaconda.mirrors.sjtug.sjtu.edu.cn
disabled: true
unified: disable
<<: *oneshot_common
- type: external
name: CTAN
path: /mnt/CTAN
disabled: true
- type: shell_script
script: /worker-script/rsync.sh
source: rsync://rsync.dante.ctan.org/CTAN
interval: 4800
path: /mnt/ctan
no_redir_http: true
name: ctan
<<: *oneshot_common
- type: shell_script
script: /worker-script/mirrorz.sh
interval: 300
target: https://mirrorz.org/
serve_mode: ignore
unified: disable
name: .mirrorz
- type: shell_script
script: /worker-script/rsync.sh
source: master.qt.io::qt-all
interval: 6000
path: /mnt/qt
name: qt
rsync_extra_flags: --exclude "snapshots/*"
# no_redir_http: true
# serve_mode: ignore
# unified: disable
# hidden: true