Skip to content

Commit

Permalink
lug: ubuntu-releases (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhotonQuantum authored Sep 15, 2024
1 parent 91df382 commit a02b76b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
9 changes: 9 additions & 0 deletions caddy/Caddyfile.siyuan
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,15 @@ https://mirror.sjtu.edu.cn {
@hidden path */.*
respond @hidden 404
}
redir /ubuntu-releases /ubuntu-releases/ 301
handle /ubuntu-releases/* {
file_server browse {
root /srv/data32T
hide .*
}
@hidden path */.*
respond @hidden 404
}
redir /ubuntu-cdimage /ubuntu-cdimage/ 301
handle /ubuntu-cdimage/* {
file_server browse {
Expand Down
5 changes: 5 additions & 0 deletions caddy/Caddyfile.zhiyuan
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ https://mirrors.sjtug.sjtu.edu.cn {
not path /remi/*
not path /termux/*
not path /ubuntu/*
not path /ubuntu-releases/*
not path /ubuntu-cdimage/*
not path /ubuntu-ports/*
not path /openwrt/*
Expand Down Expand Up @@ -716,6 +717,10 @@ https://mirrors.sjtug.sjtu.edu.cn {
handle_path /ubuntu/* {
redir * https://mirror.sjtu.edu.cn/ubuntu{uri} 302
}
redir /ubuntu-releases /ubuntu-releases/ 301
handle_path /ubuntu-releases/* {
redir * https://mirror.sjtu.edu.cn/ubuntu-releases{uri} 302
}
redir /ubuntu-cdimage /ubuntu-cdimage/ 301
handle_path /ubuntu-cdimage/* {
redir * https://mirror.sjtu.edu.cn/ubuntu-cdimage{uri} 302
Expand Down
16 changes: 8 additions & 8 deletions config.siyuan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -397,14 +397,14 @@ repos:
name: ubuntu
no_redir_http: true
<<: *oneshot_common
# # ubuntu-cd
# - type: shell_script
# script: /worker-script/rsync.sh
# source: rsync://rsync.releases.ubuntu.com/releases/
# interval: 24600
# path: /srv/data32T/ubuntu-cd
# name: ubuntu-cd
# <<: *oneshot_common
# ubuntu-releases
- type: shell_script
script: /worker-script/rsync.sh
source: rsync://rsync.releases.ubuntu.com/releases/
interval: 24600
path: /srv/data32T/ubuntu-releases
name: ubuntu-releases
<<: *oneshot_common
# ubuntu-cdimage
- type: shell_script
script: /worker-script/rsync.sh
Expand Down

0 comments on commit a02b76b

Please sign in to comment.