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.
|
|
|
|
: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"
|
|
|
|
|
}
|