mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-28 05:16:39 +08:00
实现URL跳转功能
This commit is contained in:
@@ -31,7 +31,7 @@ message ListHTTPAccessLogsRequest {
|
||||
string requestId = 1; // 上一页请求ID,可选
|
||||
int64 serverId = 2; // 服务ID
|
||||
int64 size = 3; // 单页条数
|
||||
string day = 4; // 日期
|
||||
string day = 4; // 日期,格式YYYYMMDD
|
||||
bool reverse = 5; // 是否反向查找,可选
|
||||
bool hasError = 6; // 是否有错误,可选
|
||||
int64 firewallPolicyId = 7; // WAF策略ID,可选
|
||||
|
||||
@@ -60,6 +60,12 @@ service HTTPWebService {
|
||||
|
||||
// 更改重写规则设置
|
||||
rpc updateHTTPWebRewriteRules (UpdateHTTPWebRewriteRulesRequest) returns (RPCSuccess);
|
||||
|
||||
// 更改主机跳转设置
|
||||
rpc updateHTTPWebHostRedirects (UpdateHTTPWebHostRedirectsRequest) returns (RPCSuccess);
|
||||
|
||||
// 查找主机跳转设置
|
||||
rpc findHTTPWebHostRedirects (FindHTTPWebHostRedirectsRequest) returns (FindHTTPWebHostRedirectsResponse);
|
||||
}
|
||||
|
||||
// 创建Web配置
|
||||
@@ -177,4 +183,19 @@ message UpdateHTTPWebWebsocketRequest {
|
||||
message UpdateHTTPWebRewriteRulesRequest {
|
||||
int64 webId = 1;
|
||||
bytes rewriteRulesJSON = 2;
|
||||
}
|
||||
|
||||
// 更改主机跳转设置
|
||||
message UpdateHTTPWebHostRedirectsRequest {
|
||||
int64 webId = 1;
|
||||
bytes hostRedirectsJSON = 2;
|
||||
}
|
||||
|
||||
// 查找主机跳转设置
|
||||
message FindHTTPWebHostRedirectsRequest {
|
||||
int64 webId = 1;
|
||||
}
|
||||
|
||||
message FindHTTPWebHostRedirectsResponse {
|
||||
bytes hostRedirectsJSON = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user