支持更多的分组全局设置功能

This commit is contained in:
GoEdgeLab
2021-10-07 16:47:31 +08:00
parent 5e49ccaf75
commit c8daee237f
9 changed files with 787 additions and 344 deletions

View File

@@ -67,6 +67,7 @@ message CreateHTTPFirewallPolicyRequest {
string description = 3;
repeated string httpFirewallGroupCodes = 4;
int64 serverId = 5;
int64 serverGroupId = 6;
}
message CreateHTTPFirewallPolicyResponse {
@@ -79,6 +80,7 @@ message CreateEmptyHTTPFirewallPolicyRequest {
string name = 2;
string description = 3;
int64 serverId = 4;
int64 serverGroupId = 5;
}
message CreateEmptyHTTPFirewallPolicyResponse {

View File

@@ -46,6 +46,9 @@ service ServerGroupService {
// 取得分组的配置概要信息
rpc findEnabledServerGroupConfigInfo (FindEnabledServerGroupConfigInfoRequest) returns (FindEnabledServerGroupConfigInfoResponse);
// 初始化Web设置
rpc findAndInitServerGroupWebConfig (FindAndInitServerGroupWebConfigRequest) returns (FindAndInitServerGroupWebConfigResponse);
}
// 创建分组
@@ -149,4 +152,25 @@ message FindEnabledServerGroupConfigInfoResponse {
bool hasTCPReverseProxy = 2;
bool hasUDPReverseProxy = 3;
int64 serverGroupId = 4;
bool hasRootConfig = 5;
bool hasWAFConfig = 6;
bool hasCacheConfig = 7;
bool hasCharsetConfig = 8;
bool hasStatConfig = 9;
bool hasCompressionConfig = 10;
bool hasRequestHeadersConfig = 11;
bool hasResponseHeadersConfig = 12;
bool hasWebsocketConfig = 13;
bool hasWebPConfig = 14;
bool hasAccessLogConfig = 15;
bool hasRemoteAddrConfig = 16;
}
// 初始化Web设置
message FindAndInitServerGroupWebConfigRequest {
int64 serverGroupId = 1;
}
message FindAndInitServerGroupWebConfigResponse {
bytes webJSON = 1;
}