Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lug: ubuntu-releases #490

Merged
merged 1 commit into from
Sep 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading