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"