Files
qiaoba-vue3/Caddyfile
ailanyin 6f3c27dee5 init
2023-05-09 15:21:05 +08:00

22 lines
351 B
Caddyfile

{
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}
}