This commit is contained in:
凌子曦
2024-02-15 22:27:50 +08:00
parent edefe82c8c
commit 9f6d5f2571
6 changed files with 156 additions and 8 deletions

View File

@@ -1,6 +1,154 @@
localhost:50000
file_server
reverse_proxy /api/* https://mirror.zju.edu.cn {
header_up Host {upstream_hostport}
:8080 {
log {
output file /var/log/caddy/access.log
}
handle /rocky/* {
file_server {
root /mirrors/
browse
}
}
handle /centos/* {
file_server {
root /mirrors/
browse
}
}
handle /epel/* {
file_server {
root /mirrors/
browse
}
}
handle /archlinux/* {
file_server {
root /mirrors/
browse
}
}
handle /archlinuxcn/* {
file_server {
root /mirrors/
browse
}
}
handle /kali/* {
file_server {
root /mirrors/
browse
}
}
handle /lyx/* {
file_server {
root /mirrors/
browse
}
}
handle /apache/* {
file_server {
root /mirrors1/
browse
}
}
handle /kali-images/* {
file_server {
root /mirrors1/
browse
}
}
handle /debian/* {
file_server {
root /mirrors1/
browse
}
}
handle /debian-security/* {
file_server {
root /mirrors1/
browse
}
}
handle /debian-cd/* {
file_server {
root /mirrors1/
browse
}
}
handle /ubuntu/* {
file_server {
root /mirrors1/
browse
}
}
handle /ubuntu-releases/* {
file_server {
root /mirrors1/
browse
}
}
handle /centos-vault/* {
file_server {
root /mirrors1/
browse
}
}
handle /openjdk/* {
file_server {
root /mirrors1/
browse
}
}
handle /Adoptium/* {
file_server {
root /mirrors1/
browse
}
}
handle /alpine/* {
file_server {
root /mirrors1/
browse
}
}
handle /manjaro/* {
file_server {
root /mirrors1/
browse
}
}
handle /GNU/* {
file_server {
root /mirrors1/
browse
}
}
handle /Adoptium/* {
file_server {
root /mirrors1/
browse
}
}
handle /nodejs-release/* {
file_server {
root /mirrors1/
browse
}
}
handle /CTAN/* {
file_server {
root /mirrors1/
index index.html
browse
}
}
handle /jobs {
reverse_proxy 127.0.0.1:12345
}
handle /api/* {
reverse_proxy 127.0.0.1:7000
}
file_server {
root /home/mirror/jcutmirror/caddy/
index index.html
}
}

BIN
caddy/caddy Executable file

Binary file not shown.

View File

@@ -1 +0,0 @@
index/docs

1
caddy/docs Symbolic link
View File

@@ -0,0 +1 @@
./index/docs/

View File

@@ -1 +0,0 @@
index/en

1
caddy/en Symbolic link
View File

@@ -0,0 +1 @@
./index/en/

View File

@@ -1 +0,0 @@
../public/

1
caddy/index Symbolic link
View File

@@ -0,0 +1 @@
../public/

View File

@@ -1 +0,0 @@
index/index.html

1
caddy/index.html Symbolic link
View File

@@ -0,0 +1 @@
./index/index.html