chore(frontend): 更新前端配置文件和构建脚本
- 更新 uni-app 配置文件(manifest.json、vue.config.js) - 新增 babel.config.js 和 uni-h5-polyfill.js 支持 - 更新缓存工具类(cache.js、index.js) - 新增 nginx-crmeb.conf 部署配置 - 更新 package-lock.json
This commit is contained in:
33
pro_v3.5.1/nginx-crmeb.conf
Normal file
33
pro_v3.5.1/nginx-crmeb.conf
Normal file
@@ -0,0 +1,33 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name 127.0.0.1;
|
||||
|
||||
root /Users/apple/scott2026/huangjingfen/pro_v3.5.1/public;
|
||||
index index.html index.php;
|
||||
|
||||
location ~* \.(php|jsp|cgi|asp|aspx)$ {
|
||||
proxy_pass http://127.0.0.1:20199;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header REMOTE-HOST $remote_addr;
|
||||
}
|
||||
|
||||
location / {
|
||||
if (!-e $request_filename) {
|
||||
proxy_pass http://127.0.0.1:20199;
|
||||
}
|
||||
proxy_http_version 1.1;
|
||||
proxy_read_timeout 360s;
|
||||
proxy_redirect off;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header REMOTE-HOST $remote_addr;
|
||||
add_header X-Cache $upstream_cache_status;
|
||||
add_header Cache-Control no-cache;
|
||||
expires 12h;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user