cmvr-wms/scripts/deploy/nginx-staging.conf
lixiaolong 149bde836f feat(assistant): 扩展业务助手功能支持更多文档类型和业务场景
- 新增 PDF 文档支持,包括格式校验和完整性检查
- 扩展 Word、TXT 和 ZIP 格式附件处理能力
- 添加 Excel 附件可选择仅作为业务文件不解析行数据
- 实现业务助手表格布局配置新增库存和预算字段
- 集成通知、反馈通知等新的业务助手动作类型
- 完善部门管理包含父级部门和排序字段支持
- 增强业务规则校验涵盖更多系统管理场景
- 优化附件上传限制提示信息更准确
- 添加生成文件下载的安全性校验机制
- 扩展测试覆盖确保各业务动作规则正确性
2026-10-18 08:49:30 +08:00

69 lines
2.4 KiB
Plaintext

# Temporary acceptance ports; change to 80 / 8182 only during the reviewed cutover.
server {
listen 28181;
server_name 192.168.28.10;
root /usr/share/nginx/html;
index index.html;
client_max_body_size 60m;
# CMVR mobile OTA is independent of backend releases.
location = /updates/prod {
proxy_pass http://127.0.0.1:8190;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_connect_timeout 3s;
proxy_read_timeout 15s;
proxy_buffering off;
}
location ^~ /updates/ { return 404; }
location ~ "^/assets/[a-f0-9]{64}$" {
proxy_pass http://127.0.0.1:8190;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_connect_timeout 3s;
proxy_read_timeout 30s;
}
location / {
try_files $uri $uri/ /index.html;
add_header Cache-Control "no-store" always;
}
# Nginx 1.25's default MIME map omits .mjs; PDF module workers require JavaScript MIME.
location ^~ /static/mjs/ {
types { application/javascript mjs; }
try_files $uri =404;
add_header Cache-Control "public, max-age=31536000, immutable" always;
}
location ^~ /static/ {
try_files $uri =404;
add_header Cache-Control "public, max-age=31536000, immutable" always;
}
# Attachment recognition may wait up to 180 seconds for the model.
# Keep this allowance local to the assistant; normal APIs retain 120 seconds.
location = /prod-api/warehouse/assistant/message {
proxy_pass http://127.0.0.1:28183/warehouse/assistant/message;
proxy_http_version 1.1;
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_set_header Connection "";
proxy_connect_timeout 10s;
proxy_read_timeout 210s;
proxy_buffering off;
}
location /prod-api/ {
proxy_pass http://127.0.0.1:28183/;
proxy_http_version 1.1;
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_set_header Connection "";
proxy_connect_timeout 10s;
proxy_read_timeout 120s;
proxy_buffering off;
}
location ~ /\. {
deny all;
}
}