Files
bj_power/bj_power_mes/etc/bj_power_mes-api.yaml
T
2026-08-28 15:06:01 +08:00

52 lines
1.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_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
# 日志:按天存储 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