Skip to content

Commit 2765c79

Browse files
lug: add keyarchos (#488)
1 parent 2163535 commit 2765c79

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

Diff for: caddy/Caddyfile.siyuan

+5
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ https://mirror.sjtu.edu.cn {
188188
header /mirrorz/* Access-Control-Request-Method GET
189189

190190
@gzip_enabled {
191+
not path /keyarchos/*
191192
not path /racket/*
192193
not path /bmclapi/*
193194
not path /alhp/*
@@ -322,6 +323,10 @@ https://mirror.sjtu.edu.cn {
322323
}
323324
encode @gzip_enabled gzip zstd
324325

326+
redir /keyarchos /keyarchos/ 301
327+
handle /keyarchos/* {
328+
reverse_proxy rsync-gateway:8000
329+
}
325330
redir /racket /racket/ 301
326331
handle /racket/* {
327332
reverse_proxy rsync-gateway:8000

Diff for: caddy/Caddyfile.zhiyuan

+5
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ https://mirrors.sjtug.sjtu.edu.cn {
179179
not path /registry.k8s.io/*
180180
not path /google-fonts/*
181181
not path /anaconda/*
182+
not path /keyarchos/*
182183
not path /racket/*
183184
not path /bmclapi/*
184185
not path /alhp/*
@@ -571,6 +572,10 @@ https://mirrors.sjtug.sjtu.edu.cn {
571572
@hidden path */.*
572573
respond @hidden 404
573574
}
575+
redir /keyarchos /keyarchos/ 301
576+
handle_path /keyarchos/* {
577+
redir * https://mirror.sjtu.edu.cn/keyarchos{uri} 302
578+
}
574579
redir /racket /racket/ 301
575580
handle_path /racket/* {
576581
redir * https://mirror.sjtu.edu.cn/racket{uri} 302

Diff for: config.siyuan.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ repos:
3636
# no_redir_http: true
3737
# <<: *oneshot_common
3838

39+
# keyarchos
40+
- type: shell_script
41+
name: keyarchos
42+
script: /worker-script/rsync-fetcher.sh
43+
interval: 29291
44+
source: rsync://kos.ieisystem.com/wwwroot
45+
password: Keyarchos_yum
46+
serve_mode: rsync_gateway
47+
<<: *rsync_fetcher_common
48+
<<: *oneshot_common
3949
# racket
4050
- type: shell_script
4151
name: racket

Diff for: rsync-gateway/config.siyuan.toml

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ database_url = "postgres://rsync-sjtug@postgres/rsync-sjtug"
77
format = "json"
88
target = "tcp://tunnel:5007"
99

10+
[endpoints.keyarchos]
11+
namespace = "keyarchos"
12+
s3_bucket = "899a892efef34b1b944a19981040f55b-oss01"
13+
s3_prefix = "rsync/keyarchos"
14+
1015
[endpoints.racket]
1116
namespace = "racket"
1217
s3_bucket = "899a892efef34b1b944a19981040f55b-oss01"

0 commit comments

Comments
 (0)