Caddyfile
:80 {
route /* {
root * D:/www/html
try_files {path} /index.html
file_server
}
route /api/* {
uri strip_prefix /api
reverse_proxy http://x.x.x.x:8000 # 前后端同机可直接使用 reverse_proxy :8000
}
}