Files
msgexchange-v2/.env.example
T
windyboy fc744d0cfd feat(acm2): 闭合 G-KAFKA-D3 / G-IGNORE / G-EVENT-RETENTION 三个缺口
- G-KAFKA-D3:max-in-flight 默认收敛到 1,KafkaD3Check 启动自检钉住三项联合满足 D3
- G-IGNORE:IgnoreRules 在身份绑定后精确匹配 TYPE 字段,命中写 SKIPPED + 回填意图
- G-EVENT-RETENTION:V10 迁移加 SENT_AT 列,投递原子写,EventCleanupJob 有界清理过期 SENT 行
2026-09-13 15:48:16 +08:00

28 lines
1.4 KiB
Bash
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.
# =====================================================================
# msgexchange-v2 本地开发环境变量示例(ACM2-13 口径)
# 复制为 .env 或直接在本地启动时 export
# =====================================================================
# 1. 共享信箱 MySQLdev compose: mysql 服务)
MSGX_MAILBOX_URL=jdbc:mysql://localhost:3306/cdairport?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&characterEncoding=utf8mb4
MSGX_MAILBOX_USER=msgx_dev
MSGX_MAILBOX_PASSWORD=msgx_dev_pass
# 2. 自有 PostgreSQLdev compose: postgres 服务,应用启动设 MSGX_FLYWAY_ENABLED=true 时由 Flyway 自动执行 V1.0.0 与 V1.1.0 迁移)
MSGX_PG_URL=jdbc:postgresql://localhost:5432/msgx
MSGX_PG_USER=msgx_dev
MSGX_PG_PASSWORD=msgx_dev_pass
# 3. Redis / ValkeyACM2-28:核心管道已退役;仅供 FS7 影子 diff 对拍读取 legacy 现役数据)
# MSGX_REDIS_URI=redis://localhost:6379
# 4. Kafkadev compose: kafka 单节点 KRaft 服务,或对接现网/测试网)
MSGX_KAFKA_SERVERS=localhost:9092
# --- Kafka Broker 兼容配置 ---
# D3 要求:acks=all + enable-idempotence=true + max-in-flight=1(默认值已满足)
# 旧版 Kafka0.10.x/1.x,无 INIT_PRODUCER_ID 协议):取消注释以下三行以触发兼容降级
# MSGX_KAFKA_ACKS=1
# MSGX_KAFKA_IDEMPOTENCE=false
# MSGX_KAFKA_MAX_IN_FLIGHT=1