Skip to content

Commit

Permalink
lug: redirect julia to pku
Browse files Browse the repository at this point in the history
  • Loading branch information
PhotonQuantum committed Dec 19, 2023
1 parent ccd3d79 commit c90ac44
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion caddy/Caddyfile.siyuan
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ https://mirror.sjtu.edu.cn {
}
redir /julia /julia/ 301
handle_path /julia/* {
redir * https://mirrors.sjtug.sjtu.edu.cn/julia{uri} 302
redir * https://mirrors.pku.edu.cn/julia/{uri} 302
}
redir /emacs-elpa /emacs-elpa/ 301
handle_path /emacs-elpa/* {
Expand Down
10 changes: 3 additions & 7 deletions caddy/Caddyfile.zhiyuan
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ https://mirrors.sjtug.sjtu.edu.cn {
not path /raspbian/*
not path /parrot/*
not path /raspberrypi/*
not path /julia/*
not path /msys2/*
not path /git/opam-repository.git/*
not path /git/qemu.git/*
Expand Down Expand Up @@ -458,13 +459,8 @@ https://mirrors.sjtug.sjtu.edu.cn {
respond @hidden 404
}
redir /julia /julia/ 301
handle /julia/* {
file_server browse {
root /mnt
hide .*
}
@hidden path */.*
respond @hidden 404
handle_path /julia/* {
redir * https://mirrors.pku.edu.cn/julia/{uri} 302
}
redir /emacs-elpa /emacs-elpa/ 301
handle /emacs-elpa/* {
Expand Down
13 changes: 9 additions & 4 deletions config.zhiyuan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,16 @@ repos:
path: /mnt/mongodb
name: mongodb
<<: *oneshot_common
- type: shell_script
script: julia -t auto /worker-script/zhiyuan/worker-script/julia.jl
interval: 8000
path: /mnt/julia
# - type: shell_script
# script: julia -t auto /worker-script/zhiyuan/worker-script/julia.jl
# interval: 8000
# path: /mnt/julia
# name: julia
- type: external
name: julia
serve_mode: redir
target: https://mirrors.pku.edu.cn/julia/
disabled: true
- type: shell_script
name: emacs-elpa
script: /worker-script/rsync.sh
Expand Down

0 comments on commit c90ac44

Please sign in to comment.