反向代理管理服务找到 7 个接口
修改反向代理设置
updateReverseProxy
POST/ReverseProxyService/updateReverseProxy
- 定义文件
service_reverse_proxy.proto- 可用角色
- 管理员用户
rpc updateReverseProxy (UpdateReverseProxyRequest) returns (RPCSuccess);
请求消息
UpdateReverseProxyRequest修改反向代理设置
message UpdateReverseProxyRequest {
int64 reverseProxyId = 1; // 反向代理ID
int32 requestHostType = 6; // 可选参数,回源主机名类型:0 跟随CDN域名,1跟随源站,2自定义
string requestHost = 2; // 可选参数,自定义回源主机名
bool requestHostExcludingPort = 15; // 可选参数,回源主机名中去除端口
string requestURI = 3; // 可选参数,请求URI
string stripPrefix = 4; // 可选参数,去除URI前缀
bool autoFlush = 5; // 可选参数,自动刷新
repeated string addHeaders = 7; // 可选参数,可以添加的请求报头
bytes connTimeoutJSON = 8; // 可选参数,连接超时时间
bytes readTimeoutJSON = 9; // 可选参数,读取超时时间
bytes idleTimeoutJSON = 10; // 可选参数,空闲连接超时时间
int32 maxConns = 11; // 可选参数,最大连接数
int32 maxIdleConns = 12; // 可选参数,最大空闲连接数
bytes proxyProtocolJSON = 13; // 可选参数,PROXY Protocol设置
bool followRedirects = 14; // 可选参数,跳转跟随
bool retry50X = 16; // 可选参数,是否启用50X重试
bool retry40X = 17; // 可选参数,是否启用40X重试
}