Files
bj_power/bj_power_mes/etc/bj_power_mes-api.yaml
T
SunYF bb1bb2c3f5 feat: 新增文件上传支持,优化移动端UI与巡检功能
1.  新增全局上传配置,设置默认20MB请求体上限与上传目录
2.  重构上传文件处理,按天自动创建子目录存储文件
3.  修复巡检上传表单移动端强制调用相机的问题
4.  为MES与库房客户端添加响应式侧边栏,支持桌面折叠与移动端抽屉模式
5.  补充PAD端巡检页面的独立访问说明文档
6.  删除冗余的前端静态首页文件
7.  更新库房客户端静态资源哈希值
2026-08-31 18:54:15 +08:00

61 lines
1.3 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_mes
Host: 0.0.0.0
Port: 8888
Timeout: 10000
# PostgreSQL(独立库 bj_power_mes
Database:
Host: 127.0.0.1
Port: 5432
User: postgres
Password: postgres
Dbname: bj_power_mes
MaxIdle: 10
MaxOpen: 20
# Redis(看板缓存 + 防击穿)
Redis:
Host: 127.0.0.1:6379
Type: node
# JWT(统一密钥 Hardman_2026access 短有效 + refresh 滑动续签)
Auth:
AccessSecret: Hardman_2026
AccessExpire: 1800
RefreshExpire: 86400
# 项目间内部 API 鉴权(X-API-TOKEN
Internal:
Token: Hardman_2026
# 命令行敏感操作门禁密码(migrate/reset-all/seed/change-password 需输入,独立于后台登录账号密码)
Cli:
AdminPassword: "Hardman_2026"
# 日志:按天存储 logs/bj_power_mes-2026-xx-xx.log,保留 30 天
Logger:
Level: INFO
Format: text
Filename: logs/bj_power_mes.log
Daily: true
MaxSize: 100
MaxBackups: 10
MaxAge: 30
Compress: false
Console: true
# WMS 内部接口(半成品流转等)
Wms:
BaseURL: http://127.0.0.1:8890
Token: Hardman_2026
# PLC 对接(mock 模式时 Enable=false,写入工序码 + 读完成信号)
Plc:
Enable: false
Host: 127.0.0.1
Port: 102
# 文件上传(工艺图纸 PDF / 巡检照片):Dir 相对服务启动目录,可改绝对路径;按天自动分子目录
Upload:
Dir: uploads
MaxMB: 20