暗黑模式
Deploy frontend with caddy
caddy
camp.teclub.cn {
root * /usr/share/caddy/camp
file_server
# 将 /api/ 开头的请求代理到 localhost:5000
reverse_proxy /api/* localhost:5000
reverse_proxy /UgLucgUDn3R780eLNW24oippAjfeIvz7/* localhost:5000
reverse_proxy /static/* localhost:5000
# 重定向所有未知路径到 index.html
@notFound {
not file
not path /api/*
not path /UgLucgUDn3R780eLNW24oippAjfeIvz7/*
not path /static/*
}
rewrite @notFound /index.html
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19