服务支持自定义访客IP地址获取方式

This commit is contained in:
GoEdgeLab
2021-10-06 11:42:52 +08:00
parent 9b556abafe
commit bc8c1d8fb8
5 changed files with 448 additions and 220 deletions

View File

@@ -25,6 +25,9 @@ service HTTPWebService {
// 更改WebP配置
rpc updateHTTPWebWebP (UpdateHTTPWebWebPRequest) returns (RPCSuccess);
// 更改RemoteAddr配置
rpc updateHTTPWebRemoteAddr(UpdateHTTPWebRemoteAddrRequest) returns (RPCSuccess);
// 更改字符集配置
rpc updateHTTPWebCharset (UpdateHTTPWebCharsetRequest) returns (RPCSuccess);
@@ -122,6 +125,12 @@ message UpdateHTTPWebWebPRequest {
bytes webpJSON = 2;
}
// 更改RemoteAddr配置
message UpdateHTTPWebRemoteAddrRequest {
int64 webId = 1;
bytes remoteAddrJSON = 2;
}
// 更改字符集配置
message UpdateHTTPWebCharsetRequest {
int64 webId = 1;