feat(audit): 审计服务重构为PostgreSQL + MQTT架构并添加前端
- 将数据库从MongoDB迁移至PostgreSQL,更新连接配置和环境变量 - 引入MQTT协议支持,配置NanoMQ作为消息代理并添加管理API - 添加审计服务前端部署,使用nginx托管Web界面 - 配置JWT鉴权和SSO集成,添加健康检查探针 - 更新共享基础设施模板以支持audit-nanomq服务 - 调整端口号从5600至5900,增加并发消费队列配置
This commit is contained in:
1 parent
8ffbf97cce
commit
114321a888
5 files changed
+307
-33
No files matched your search
@@ -74,8 +74,25 @@ gateway:
|
||||
audit:
|
||||
enabled: true
|
||||
image: audit
|
||||
port: 5600
|
||||
port: 5900
|
||||
replicas: 2
|
||||
webName: audit-web
|
||||
webImage: audit-web
|
||||
webBasePath: /audit/
|
||||
webPort: 8900
|
||||
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"
|
||||
|
||||
sharedDatastores:
|
||||
- name: redis
|
||||
@@ -93,6 +110,12 @@ sharedDatastores:
|
||||
port: 5672
|
||||
storage: 2Gi
|
||||
mountPath: /var/lib/rabbitmq
|
||||
- name: audit-nanomq
|
||||
image: emqx/nanomq:0.25.2-2
|
||||
port: 1883
|
||||
storage: 1Gi
|
||||
mountPath: /var/lib/nanomq
|
||||
managementPort: 8081
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
|
||||
Reference in new issue
Block a user