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

56 lines
1.2 KiB
YAML
Raw Normal View History

2026-08-28 15:06:01 +08:00
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 需输入,与 admin 账号密码一致)
Cli:
AdminPassword: Hardman_2026
2026-08-28 15:06:01 +08:00
# 日志:按天存储 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