Skip to content

Commit

Permalink
lug: migrate docker-ce back to rsync-gateway (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
truc0 authored Jan 9, 2025
1 parent 1e20bc4 commit cd61d4e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
8 changes: 4 additions & 4 deletions caddy/Caddyfile.siyuan
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ http://mirror.sjtu.edu.cn {
redir * {scheme}://ftp.sjtu.edu.cn/deepin{uri} 302
}
redir /docker-ce /docker-ce/ 301
handle_path /docker-ce/* {
redir * {scheme}://ftp.sjtu.edu.cn/docker-ce{uri} 302
handle /docker-ce/* {
reverse_proxy rsync-gateway:8000
}
redir /fedora/linux /fedora/linux/ 301
handle_path /fedora/linux/* {
Expand Down Expand Up @@ -429,8 +429,8 @@ https://mirror.sjtu.edu.cn {
redir * {scheme}://ftp.sjtu.edu.cn/deepin-cd{uri} 302
}
redir /docker-ce /docker-ce/ 301
handle_path /docker-ce/* {
redir * {scheme}://ftp.sjtu.edu.cn/docker-ce{uri} 302
handle /docker-ce/* {
reverse_proxy rsync-gateway:8000
}
redir /fedora/linux /fedora/linux/ 301
handle_path /fedora/linux/* {
Expand Down
2 changes: 1 addition & 1 deletion caddy/Caddyfile.zhiyuan
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ https://mirrors.sjtug.sjtu.edu.cn {
}
redir /docker-ce /docker-ce/ 301
handle_path /docker-ce/* {
redir * {scheme}://ftp.sjtu.edu.cn/docker-ce{uri} 302
redir * https://mirror.sjtu.edu.cn/docker-ce{uri} 302
}
redir /fedora/linux /fedora/linux/ 301
handle_path /fedora/linux/* {
Expand Down
9 changes: 6 additions & 3 deletions config.siyuan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,14 @@ repos:
target: "{scheme}://ftp.sjtu.edu.cn/deepin-cd"
<<: *oneshot_common
# docker-ce
- type: external
- type: shell_script
name: docker-ce
serve_mode: redir
target: "{scheme}://ftp.sjtu.edu.cn/docker-ce"
script: /worker-script/rsync-fetcher.sh
source: rsync://mirrors6.tuna.tsinghua.edu.cn/docker-ce/
interval: 4900
serve_mode: rsync_gateway
no_redir_http: true
<<: *rsync_fetcher_common
<<: *oneshot_common
# fedora/linux
- type: external
Expand Down
5 changes: 5 additions & 0 deletions rsync-gateway/config.siyuan.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ namespace = "opencloudos"
s3_bucket = "899a892efef34b1b944a19981040f55b-oss01"
s3_prefix = "rsync/opencloudos"

[endpoints.docker-ce]
namespace = "docker-ce"
s3_bucket = "899a892efef34b1b944a19981040f55b-oss01"
s3_prefix = "rsync/docker-ce"

[endpoints.openkylin]
namespace = "openkylin"
s3_bucket = "899a892efef34b1b944a19981040f55b-oss01"
Expand Down

0 comments on commit cd61d4e

Please sign in to comment.