This commit is contained in:
ailanyin
2023-05-09 15:21:05 +08:00
commit 6f3c27dee5
257 changed files with 19631 additions and 0 deletions

21
Caddyfile Normal file
View File

@ -0,0 +1,21 @@
{
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}
}