Files
qiaoba-vue3/Caddyfile

22 lines
351 B
Caddyfile
Raw Permalink Normal View History

2023-05-09 15:21:05 +08:00
{
http_port 4163
https_port 4173
}
192.168.1.200:4173 {
handle_path /api/* {
reverse_proxy 192.168.1.201:8080
}
handle_path /preview* {
reverse_proxy localhost:80
}
handle {
root * /Users/ailanyin/projects/qiaoba-vue3/dist
file_server
try_files {path} /
}
}
localhost:4173 {
redir https://192.168.1.200:4173{uri}
}