mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
grpc 服务增加证书校验
This commit is contained in:
@@ -232,6 +232,10 @@ class Application {
|
||||
}
|
||||
|
||||
private async startHttpService() {
|
||||
// 在导入任何 gRPC 客户端模块之前初始化 mTLS 证书
|
||||
const { initGrpcCerts } = await import('./config/grpcCerts');
|
||||
await initGrpcCerts();
|
||||
|
||||
this.setupMiddlewares();
|
||||
|
||||
const { HttpServerService } = await import('./services/http');
|
||||
|
||||
Reference in New Issue
Block a user