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
@@ -59,6 +59,25 @@ spec:
|
||||
- name: RABBITMQ_DEFAULT_PASS
|
||||
value: "{{ $root.Values.sharedInfra.rabbitmq.password }}"
|
||||
{{- end }}
|
||||
{{- if eq .name "audit-nanomq" }}
|
||||
command: ["/bin/sh"]
|
||||
args:
|
||||
- "-c"
|
||||
- |
|
||||
cat > /etc/nanomq.conf <<EOF
|
||||
mqtt {
|
||||
allow_anonymous = true
|
||||
max_mqueue_len = 128
|
||||
}
|
||||
http_server {
|
||||
enable = true
|
||||
port = 8081
|
||||
username = {{ $root.Values.audit.mqtt.managementUsername }}
|
||||
password = {{ $root.Values.audit.mqtt.managementPassword }}
|
||||
}
|
||||
EOF
|
||||
exec nanomq start --conf /etc/nanomq.conf
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: {{ .mountPath }}
|
||||
@@ -84,4 +103,14 @@ spec:
|
||||
targetPort: 15672
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
{{- if eq .name "audit-nanomq" }}
|
||||
- name: mqtt
|
||||
port: {{ $root.Values.audit.mqtt.brokerPort }}
|
||||
targetPort: {{ $root.Values.audit.mqtt.brokerPort }}
|
||||
protocol: TCP
|
||||
- name: management
|
||||
port: {{ $root.Values.audit.mqtt.managementPort }}
|
||||
targetPort: {{ $root.Values.audit.mqtt.managementPort }}
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in new issue
Block a user