33 lines
1003 B
Plaintext
33 lines
1003 B
Plaintext
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
|
||
|
|
gzip on;
|
||
|
|
gzip_static on; # 需要http_gzip_static_module 模块
|
||
|
|
gzip_min_length 1k;
|
||
|
|
gzip_comp_level 4;
|
||
|
|
gzip_proxied any;
|
||
|
|
gzip_types text/plain text/xml text/css;
|
||
|
|
gzip_vary on;
|
||
|
|
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
|
||
|
|
|
||
|
|
root /app/www;
|
||
|
|
|
||
|
|
client_max_body_size 50m;
|
||
|
|
|
||
|
|
# 若新增后端路由前缀注意在此处添加(|新增)
|
||
|
|
location ~* ^/(code|auth|admin|monitor|gen|actuator|job|tx|act|mp|pay|jimu|aj|rpt|mes-core|pms|tooling|anomaly|tap-mom|qms) {
|
||
|
|
proxy_pass http://mom-gateway:9999;
|
||
|
|
proxy_connect_timeout 600s;
|
||
|
|
proxy_send_timeout 600s;
|
||
|
|
proxy_read_timeout 600s;
|
||
|
|
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 http;
|
||
|
|
|
||
|
|
proxy_http_version 1.1;
|
||
|
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
|
proxy_set_header Connection "upgrade";
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
}
|
||
|
|
}
|