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.
RuoYi-flowable-bak/_compose/caddy/conf/Caddyfile

23 lines
596 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

:8300, localhost {
root * /data/dist
# 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"
}