标签:报告 ups bsp 压缩包 python out pytho 服务 root

rm -rf /neworiental/latest/aliceVue/* && unzip -d /neworiental/latest/aliceVue/ /neworiental/backupalice/dist.zip
====前端nginx====
server {
listen 80;
server_name alice.xdf.cn;
location /alice {
alias /neworiental/latest/aliceVue/;
index index.html;
try_files $uri $uri/ /alice/index.html;
}
error_page 500 502 503 504 /50json.html;
location = /50json.html {
root /usr/share/nginx/html;
}
location ~* ^/prod-api/(.*) {
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 X-Forwarded-Proto $scheme;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
if ($request_uri ~ /prod-api/(.+))
{
set $p1 $1;
}
proxy_pass http://alice-api/alice/$p1;
}
}
后端配置server
upstream alice-api {
server 127.0.0.1:9898;
keepalive 1000;
}
标签:报告 ups bsp 压缩包 python out pytho 服务 root
原文地址:https://www.cnblogs.com/zhangxue521/p/14940820.html