fix: proxy prd visual api compatibility paths

This commit is contained in:
tsiji 2026-06-03 11:22:08 +08:00
parent 155288b371
commit 6b4414e4be

View File

@ -19,6 +19,32 @@ data:
gzip_vary on;
client_max_body_size 100M;
location = /api/visual-global/list {
proxy_pass http://mom-gateway:9999/rpt/dashboard/visual/list;
proxy_connect_timeout 240s;
proxy_send_timeout 240s;
proxy_read_timeout 240s;
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.0;
proxy_set_header Connection "";
proxy_set_header Host $http_host;
}
location = /api/visual/detail {
proxy_pass http://mom-gateway:9999/rpt/dashboard/visual/detail;
proxy_connect_timeout 240s;
proxy_send_timeout 240s;
proxy_read_timeout 240s;
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.0;
proxy_set_header Connection "";
proxy_set_header Host $http_host;
}
location ~* ^/(code|auth|admin|monitor|actuator|gen|job|tx|act|mp|pay|jimu|aj|rpt|iep-app|iep-pms|iep-tms|iep-tap|iep-qms|iep-alm|tqm-lims|iep-oem|iep-tds|iep-wms|iep-flow|iep-dcc|iMES-jxls|nlv-wms|nlv-print|mom-xxl-job-admin|iep-int|mom-wms|mom-pms) {
proxy_pass http://mom-gateway:9999;
proxy_connect_timeout 240s;