nalinv-ui-html/web.conf
2026-04-24 16:25:47 +08:00

33 lines
1.2 KiB
Plaintext

server {
listen 80;
root /app/www;
index index.html index.htm;
gzip on;
gzip_static on;
gzip_min_length 1k;
gzip_comp_level 4;
gzip_proxied any;
gzip_types text/plain text/css application/json application/javascript application/xml image/svg+xml;
gzip_vary on;
client_max_body_size "100M"; # 檔案大小限制在100MB
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;
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.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
}
location / {
try_files $uri $uri/ /index.html;
}
}