Files
bj_power/bj_power_wms/etc/bj_power_wms-api.yaml
T

67 lines
2.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Name: bj_power_wms
Host: 0.0.0.0
Port: 8890
Timeout: 10000
# 请求体上限:go-zero 默认仅 1MB,会拦住照片/PDF/Excel 上传;取各文件类型上限的最大值(50MB)
MaxBytes: 52428800
# PostgreSQL
Postgres:
Host: 127.0.0.1
Port: 5432
User: postgres
Password: postgres
DBName: bj_power_wms
SSLMode: disable
# JWT(短有效期 + 滑动续签)
Auth:
AccessSecret: Hardman_2026
AccessExpire: 3600
# 项目间内部 API 写死 token
Internal:
Token: Hardman_2026
# MES 服务对接(备料单拉取/状态回写,AGV 配送用)
Mes:
BaseURL: http://127.0.0.1:8888
Token: Hardman_2026
Log:
Mode: file
Path: logs
Level: info
Redis:
Host: 127.0.0.1:6379
Type: node
# 前端页面托管(原库房客户端 8891 已合并进主服务)
Web:
OpenBrowser: true
# 命令行敏感操作门禁密码(migrate/reset-all/seed 需输入,独立于后台登录账号密码)
Cli:
AdminPassword: "Hardman_2026"
# 扫码中间件(键盘 HID 注入):启用后随 WMS 启动监听 7757,接收网络型扫码枪
# (iData PAD / 新大陆手机)推送,模拟键盘注入当前光标窗口(库房屏同机可用)。
# Enable=false 时不监听。生产环境不装新大陆官方工具(会抢 7757)。
Scanner:
Enabled: true
# 附件存储(年/月/日/文件类型/uuid.ext,库内只存相对路径,不存绝对路径)
# 生产环境改 RootDir: /data/bj_power/attachments
Attachment:
RootDir: "D:/hardman/bj_power/attachments"
DefaultMaxSize: 20971520 # 默认单文件 20MB
MaxSize:
PROCESS_PDF: 52428800 # 工艺流程作业指导书 50MB
INSPECTION_PHOTO: 20971520 # 检验照片 20MB
EXCEL_IMPORT: 10485760 # Excel 导入 10MB
LocalRetentionYears: 1 # 本地保留最近 1 年
DiskWarnPercent: 20 # 剩余空间 <20% 告警
DiskCriticalPercent: 10 # 剩余空间 <10% 提示清理/归档
DiskCheckHour: 7 # 每天 07:00 检测