|
|
@ -1,4 +1,5 @@
|
|
|
|
:8300, localhost {
|
|
|
|
:8300, localhost {
|
|
|
|
|
|
|
|
|
|
|
|
root * /data/dist
|
|
|
|
root * /data/dist
|
|
|
|
# Vue Router history模式,避免刷新后404页面;字符中间不可有空格
|
|
|
|
# Vue Router history模式,避免刷新后404页面;字符中间不可有空格
|
|
|
|
try_files {path} /index.html
|
|
|
|
try_files {path} /index.html
|
|
|
@ -9,4 +10,14 @@
|
|
|
|
reverse_proxy ruoyi-admin:8080
|
|
|
|
reverse_proxy ruoyi-admin:8080
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_server
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|