优化证书数量很多时的页面加载速度

This commit is contained in:
刘祥超
2022-12-31 17:12:55 +08:00
parent bd4cc6f5f5
commit bd5a1c5eda
6 changed files with 664 additions and 635 deletions

View File

@@ -3020,7 +3020,10 @@
"responseMessageName": "RPCSuccess",
"code": "rpc updateHTTPWebUserAgent(UpdateHTTPWebUserAgentRequest) returns (RPCSuccess);",
"doc": "修改UserAgent设置",
"roles": [],
"roles": [
"admin",
"user"
],
"isDeprecated": false
},
{
@@ -3029,7 +3032,10 @@
"responseMessageName": "FindHTTPWebUserAgentResponse",
"code": "rpc findHTTPWebUserAgent(FindHTTPWebUserAgentRequest) returns (FindHTTPWebUserAgentResponse);",
"doc": "查找UserAgent设置",
"roles": [],
"roles": [
"admin",
"user"
],
"isDeprecated": false
}
],
@@ -16845,7 +16851,7 @@
},
{
"name": "FindEnabledSSLPolicyConfigRequest",
"code": "message FindEnabledSSLPolicyConfigRequest {\n\tint64 sslPolicyId = 1;\n}",
"code": "message FindEnabledSSLPolicyConfigRequest {\n\tint64 sslPolicyId = 1; // SSL策略ID\n\tbool ignoreData = 2; // 忽略证书内容数据\n}",
"doc": "查找Policy"
},
{
@@ -16905,7 +16911,7 @@
},
{
"name": "FindEnabledServerRequest",
"code": "message FindEnabledServerRequest {\n\tint64 serverId = 1;\n}",
"code": "message FindEnabledServerRequest {\n\tint64 serverId = 1; // 服务ID\n\tbool ignoreSSLCertData = 2; // 忽略SSL证书数据\n}",
"doc": "查找单个服务"
},
{

File diff suppressed because it is too large Load Diff

View File

@@ -314,7 +314,8 @@ type FindEnabledSSLPolicyConfigRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SslPolicyId int64 `protobuf:"varint,1,opt,name=sslPolicyId,proto3" json:"sslPolicyId,omitempty"`
SslPolicyId int64 `protobuf:"varint,1,opt,name=sslPolicyId,proto3" json:"sslPolicyId,omitempty"` // SSL策略ID
IgnoreData bool `protobuf:"varint,2,opt,name=ignoreData,proto3" json:"ignoreData,omitempty"` // 忽略证书内容数据
}
func (x *FindEnabledSSLPolicyConfigRequest) Reset() {
@@ -356,6 +357,13 @@ func (x *FindEnabledSSLPolicyConfigRequest) GetSslPolicyId() int64 {
return 0
}
func (x *FindEnabledSSLPolicyConfigRequest) GetIgnoreData() bool {
if x != nil {
return x.IgnoreData
}
return false
}
type FindEnabledSSLPolicyConfigResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -459,12 +467,14 @@ var file_service_ssl_policy_proto_rawDesc = []byte{
0x65, 0x73, 0x49, 0x73, 0x4f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x63, 0x69,
0x70, 0x68, 0x65, 0x72, 0x53, 0x75, 0x69, 0x74, 0x65, 0x73, 0x49, 0x73, 0x4f, 0x6e, 0x12, 0x1a,
0x0a, 0x08, 0x6f, 0x63, 0x73, 0x70, 0x49, 0x73, 0x4f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08,
0x52, 0x08, 0x6f, 0x63, 0x73, 0x70, 0x49, 0x73, 0x4f, 0x6e, 0x22, 0x45, 0x0a, 0x21, 0x46, 0x69,
0x52, 0x08, 0x6f, 0x63, 0x73, 0x70, 0x49, 0x73, 0x4f, 0x6e, 0x22, 0x65, 0x0a, 0x21, 0x46, 0x69,
0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x53, 0x53, 0x4c, 0x50, 0x6f, 0x6c, 0x69,
0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x20, 0x0a, 0x0b, 0x73, 0x73, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x73, 0x73, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49,
0x64, 0x22, 0x4a, 0x0a, 0x22, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x18,
0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x44, 0x61, 0x74,
0x61, 0x22, 0x4a, 0x0a, 0x22, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
0x53, 0x53, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x73, 0x73, 0x6c, 0x50, 0x6f,
0x6c, 0x69, 0x63, 0x79, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d,

View File

@@ -354,7 +354,8 @@ message DeleteServerRequest {
// 查找单个服务
message FindEnabledServerRequest {
int64 serverId = 1;
int64 serverId = 1; // 服务ID
bool ignoreSSLCertData = 2; // 忽略SSL证书数据
}
message FindEnabledServerResponse {

View File

@@ -50,7 +50,8 @@ message UpdateSSLPolicyRequest {
// 查找Policy
message FindEnabledSSLPolicyConfigRequest {
int64 sslPolicyId = 1;
int64 sslPolicyId = 1; // SSL策略ID
bool ignoreData = 2; // 忽略证书内容数据
}
message FindEnabledSSLPolicyConfigResponse {

View File

@@ -24,12 +24,7 @@ func AllServerTypes() []maps.Map {
"description": "可以通过CDN边缘节点分发源站内容。",
},
{
"name": "HTTP Web服务",
"code": ServerTypeHTTPWeb,
"description": "普通的HTTP Web服务可以用来访问边缘节点上的静态文件内容。",
},
{
"name": "TCP反向代理",
"name": "TCP负载均衡",
"code": ServerTypeTCPProxy,
"description": "通过反向代理访问源站TCP服务",
},
@@ -38,10 +33,15 @@ func AllServerTypes() []maps.Map {
"code": ServerTypeUnixProxy,
},**/
{
"name": "UDP反向代理",
"name": "UDP负载均衡",
"code": ServerTypeUDPProxy,
"description": "通过反向代理访问源站UDP服务",
},
{
"name": "HTTP Web服务",
"code": ServerTypeHTTPWeb,
"description": "普通的HTTP Web服务可以用来访问边缘节点上的静态文件内容。",
},
}
}