Skip to content

Commit 8f037ca

Browse files
committed
lug: move almalinux & kali to zhiyuan
1 parent b350eb5 commit 8f037ca

File tree

4 files changed

+44
-43
lines changed

4 files changed

+44
-43
lines changed

caddy/Caddyfile.siyuan

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ https://mirror.sjtu.edu.cn {
278278
not path /git/lean4-packages/mathematics_in_lean_source/*
279279
not path /git/lean4-packages/mathematics_in_lean/*
280280
not path /git/lean4-packages/import-graph/*
281+
not path /kali/*
282+
not path /almalinux/*
281283
not path /immortalwrt/*
282284
not path /putty/*
283285
not path /gentoo/*
@@ -441,15 +443,6 @@ https://mirror.sjtu.edu.cn {
441443
@hidden path */.*
442444
respond @hidden 404
443445
}
444-
redir /kali /kali/ 301
445-
handle /kali/* {
446-
file_server browse {
447-
root /srv/data32T
448-
hide .*
449-
}
450-
@hidden path */.*
451-
respond @hidden 404
452-
}
453446
redir /linuxmint /linuxmint/ 301
454447
handle /linuxmint/* {
455448
file_server browse {
@@ -811,15 +804,6 @@ https://mirror.sjtu.edu.cn {
811804
@hidden path */.*
812805
respond @hidden 404
813806
}
814-
redir /almalinux /almalinux/ 301
815-
handle /almalinux/* {
816-
file_server browse {
817-
root /srv/data32T
818-
hide .*
819-
}
820-
@hidden path */.*
821-
respond @hidden 404
822-
}
823807
redir /kernel /kernel/ 301
824808
handle /kernel/* {
825809
reverse_proxy mirror-intel:8000
@@ -902,6 +886,14 @@ https://mirror.sjtu.edu.cn {
902886
handle_path /scientific/* {
903887
redir * https://mirrors.ustc.edu.cn/scientificlinux/{uri} 302
904888
}
889+
redir /kali /kali/ 301
890+
handle_path /kali/* {
891+
redir * https://mirrors.sjtug.sjtu.edu.cn/kali{uri} 302
892+
}
893+
redir /almalinux /almalinux/ 301
894+
handle_path /almalinux/* {
895+
redir * https://mirrors.sjtug.sjtu.edu.cn/almalinux{uri} 302
896+
}
905897
redir /immortalwrt /immortalwrt/ 301
906898
handle_path /immortalwrt/* {
907899
redir * https://mirrors.sjtug.sjtu.edu.cn/immortalwrt{uri} 302

caddy/Caddyfile.zhiyuan

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ https://mirrors.sjtug.sjtu.edu.cn {
200200
not path /deepin-cd/*
201201
not path /docker-ce/*
202202
not path /fedora-secondary/*
203-
not path /kali/*
204203
not path /linuxmint/*
205204
not path /linuxmint-cd/*
206205
not path /mageia/*
@@ -277,7 +276,6 @@ https://mirrors.sjtug.sjtu.edu.cn {
277276
not path /gimp/*
278277
not path /flutter_infra_release/*
279278
not path /armbian/*
280-
not path /almalinux/*
281279
not path /kernel/*
282280
not path /git/linux.git/*
283281
not path /raspbian-addons/*
@@ -310,6 +308,24 @@ https://mirrors.sjtug.sjtu.edu.cn {
310308
}
311309
encode @gzip_enabled gzip zstd
312310

311+
redir /kali /kali/ 301
312+
handle /kali/* {
313+
file_server browse {
314+
root /mnt
315+
hide .*
316+
}
317+
@hidden path */.*
318+
respond @hidden 404
319+
}
320+
redir /almalinux /almalinux/ 301
321+
handle /almalinux/* {
322+
file_server browse {
323+
root /mnt
324+
hide .*
325+
}
326+
@hidden path */.*
327+
respond @hidden 404
328+
}
313329
redir /immortalwrt /immortalwrt/ 301
314330
handle /immortalwrt/* {
315331
file_server browse {
@@ -641,10 +657,6 @@ https://mirrors.sjtug.sjtu.edu.cn {
641657
handle_path /fedora-secondary/* {
642658
redir * https://mirror.sjtu.edu.cn/fedora-secondary{uri} 302
643659
}
644-
redir /kali /kali/ 301
645-
handle_path /kali/* {
646-
redir * https://mirror.sjtu.edu.cn/kali{uri} 302
647-
}
648660
redir /linuxmint /linuxmint/ 301
649661
handle_path /linuxmint/* {
650662
redir * https://mirror.sjtu.edu.cn/linuxmint{uri} 302
@@ -897,10 +909,6 @@ https://mirrors.sjtug.sjtu.edu.cn {
897909
handle_path /armbian/* {
898910
redir * https://mirror.sjtu.edu.cn/armbian{uri} 302
899911
}
900-
redir /almalinux /almalinux/ 301
901-
handle_path /almalinux/* {
902-
redir * https://mirror.sjtu.edu.cn/almalinux{uri} 302
903-
}
904912
redir /kernel /kernel/ 301
905913
handle /kernel/* {
906914
reverse_proxy mirror-intel:8000

config.siyuan.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -253,14 +253,6 @@ repos:
253253
rsync_extra_flags: --exclude "development/*" --exclude "extras/*" --exclude "*/debug/*"
254254
no_redir_http: true
255255
<<: *oneshot_common
256-
# kali
257-
- type: shell_script
258-
script: /worker-script/rsync.sh
259-
source: rsync://ftp.jaist.ac.jp/kali/
260-
interval: 10800
261-
path: /srv/data32T/kali
262-
name: kali
263-
<<: *oneshot_common
264256
# linuxmint
265257
- type: shell_script
266258
script: /worker-script/rsync.sh
@@ -861,13 +853,6 @@ repos:
861853
path: /srv/data32T/armbian
862854
name: armbian
863855
<<: *oneshot_common
864-
- type: shell_script
865-
script: /worker-script/rsync.sh
866-
source: rsync://rsync.repo.almalinux.org/almalinux/
867-
interval: 28800
868-
path: /srv/data32T/almalinux
869-
name: almalinux
870-
<<: *oneshot_common
871856
- type: shell_script
872857
script: /worker-script/mirror-clone-v2.sh --workers 4 --target-type s3 --s3-prefix kernel --s3-buffer-path /var/cache --print-plan 100 rsync --http-base https://mirrors.tuna.tsinghua.edu.cn/kernel --rsync-base rsync://mirrors.tuna.tsinghua.edu.cn/kernel/
873858
serve_mode: mirror_intel

config.zhiyuan.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,22 @@ dummy:
2424
partial: 5
2525

2626
repos:
27+
# kali
28+
- type: shell_script
29+
script: /worker-script/rsync.sh
30+
source: rsync://ftp.jaist.ac.jp/kali/
31+
interval: 10800
32+
path: /mnt/kali
33+
name: kali
34+
<<: *oneshot_common
35+
# almalinux
36+
- type: shell_script
37+
script: /worker-script/rsync.sh
38+
source: rsync://rsync.repo.almalinux.org/almalinux/
39+
interval: 28800
40+
path: /mnt/almalinux
41+
name: almalinux
42+
<<: *oneshot_common
2743
# immortalwrt
2844
- type: shell_script
2945
script: /worker-script/rsync_password.sh

0 commit comments

Comments
 (0)