feat(audit): 审计服务重构为PostgreSQL + MQTT架构并添加前端

- 将数据库从MongoDB迁移至PostgreSQL,更新连接配置和环境变量
- 引入MQTT协议支持,配置NanoMQ作为消息代理并添加管理API
- 添加审计服务前端部署,使用nginx托管Web界面
- 配置JWT鉴权和SSO集成,添加健康检查探针
- 更新共享基础设施模板以支持audit-nanomq服务
- 调整端口号从5600至5900,增加并发消费队列配置
This commit is contained in:
王野 committed 2026-08-06 18:33:53 +08:00
1 parent 8ffbf97cce
commit 114321a888
5 files changed
+307 -33

No files matched your search

+24 -11
View File
@@ -3,25 +3,38 @@ tag: latest
timezone: Asia/Shanghai
sharedInfra:
mongo:
host: mongo-service
port: 27017
username: admin
postgres:
image: docker.io/library/postgres:17
username: postgres
password: "Admin12345"
database: mixingx_audit
rabbitmq:
host: messaging-service
port: 5672
username: guest
password: guest
port: 5432
otlp:
endpoint: http://k8s-dashboard-service:18889
protocol: grpc
audit:
enabled: true
port: 5600
port: 5900
replicas: 2
database: audit-db
pgStorage: 5Gi
# MQTT broker (中心 Audit NanoMQ)
mqtt:
brokerHost: "audit-nanomq-service"
brokerPort: 1883
managementPort: 8081
managementUsername: "admin"
managementPassword: "public"
# JWT 鉴权(通过 SSO JWKS)
jwt:
issuer: "mixingx-sso"
audience: "mixingx-audit"
# 消费队列/并发配置
consume:
queueCapacity: 128
queueMaxWaitMs: 5000
dbWriteTimeoutMs: 3000
concurrency: 4
images:
audit: