- 在 .env.production 中新增 VITE_AUTH_COOKIE_NAME 配置项用于设置认证cookie名称 - 将 AcceptanceException.vue 中的表单标签宽度从固定90px改为自动适配 - 在 ActionDialog.vue 中将多个表单项标记为必填项并调整标签宽度为自动适配 - 重构 ActionHistory.vue 中的按钮布局结构并添加表格列样式类名 - 更新 api-contract-audit.cjs 添加生产任务和BOM相关接口的契约测试 - 修改 auth.js 使用动态认证cookie键名替换硬编码的Admin-Token - 调整系统角色授权用户页面的表单布局和表格样式类名 - 优化 ReceiptDialog Batch 组件的对话框尺寸、表单验证和分页功能
52 lines
1.9 KiB
Plaintext
52 lines
1.9 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;
|
|
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;
|
|
}
|
|
}
|