File tree 3 files changed +22
-8
lines changed
3 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -529,6 +529,15 @@ https://mirror.sjtu.edu.cn {
529
529
@hidden path */.*
530
530
respond @hidden 404
531
531
}
532
+ redir /ubuntu-releases /ubuntu-releases/ 301
533
+ handle /ubuntu-releases/* {
534
+ file_server browse {
535
+ root /srv/data32T
536
+ hide .*
537
+ }
538
+ @hidden path */.*
539
+ respond @hidden 404
540
+ }
532
541
redir /ubuntu-cdimage /ubuntu-cdimage/ 301
533
542
handle /ubuntu-cdimage/* {
534
543
file_server browse {
Original file line number Diff line number Diff line change @@ -213,6 +213,7 @@ https://mirrors.sjtug.sjtu.edu.cn {
213
213
not path /remi/*
214
214
not path /termux/*
215
215
not path /ubuntu/*
216
+ not path /ubuntu-releases/*
216
217
not path /ubuntu-cdimage/*
217
218
not path /ubuntu-ports/*
218
219
not path /openwrt/*
@@ -716,6 +717,10 @@ https://mirrors.sjtug.sjtu.edu.cn {
716
717
handle_path /ubuntu/* {
717
718
redir * https://mirror.sjtu.edu.cn/ubuntu{uri} 302
718
719
}
720
+ redir /ubuntu-releases /ubuntu-releases/ 301
721
+ handle_path /ubuntu-releases/* {
722
+ redir * https://mirror.sjtu.edu.cn/ubuntu-releases{uri} 302
723
+ }
719
724
redir /ubuntu-cdimage /ubuntu-cdimage/ 301
720
725
handle_path /ubuntu-cdimage/* {
721
726
redir * https://mirror.sjtu.edu.cn/ubuntu-cdimage{uri} 302
Original file line number Diff line number Diff line change @@ -397,14 +397,14 @@ repos:
397
397
name : ubuntu
398
398
no_redir_http : true
399
399
<< : *oneshot_common
400
- # # ubuntu-cd
401
- # - type: shell_script
402
- # script: /worker-script/rsync.sh
403
- # source: rsync://rsync.releases.ubuntu.com/releases/
404
- # interval: 24600
405
- # path: /srv/data32T/ubuntu-cd
406
- # name: ubuntu-cd
407
- # <<: *oneshot_common
400
+ # ubuntu-releases
401
+ - type : shell_script
402
+ script : /worker-script/rsync.sh
403
+ source : rsync://rsync.releases.ubuntu.com/releases/
404
+ interval : 24600
405
+ path : /srv/data32T/ubuntu-releases
406
+ name : ubuntu-releases
407
+ << : *oneshot_common
408
408
# ubuntu-cdimage
409
409
- type : shell_script
410
410
script : /worker-script/rsync.sh
You can’t perform that action at this time.
0 commit comments