You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
oa-flowable/_compose/caddy/conf/Caddyfile

23 lines
596 B

:8300, localhost {
root * /data/dist
2 years ago
# Vue Router history模式避免刷新后404页面字符中间不可有空格
try_files {path} /index.html
handle_path /stage-api/* {
uri strip_prefix /stage-api
# 需要代理到的IP以及端口号
reverse_proxy ruoyi-admin:8080
}
file_server
encode zstd gzip
# CORS
import CORS
}
(CORS) {
header replace Access-Control-Allow-Origin "*"
header replace Access-Control-Allow-Headers "*"
header replace Access-Control-Allow-Methods "*"
header replace Access-Control-Request-Method "POST, GET, OPTIONS"
}