mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-04-23 05:35:18 +08:00
增加简化版的创建HTTP网站API
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -14,6 +14,9 @@ service ServerService {
|
||||
// 创建网站
|
||||
rpc createServer (CreateServerRequest) returns (CreateServerResponse);
|
||||
|
||||
// 快速创建基本的HTTP网站
|
||||
rpc createBasicHTTPServer(CreateBasicHTTPServerRequest) returns (CreateBasicHTTPServerResponse);
|
||||
|
||||
// 修改网站基本信息
|
||||
rpc updateServerBasic (UpdateServerBasicRequest) returns (RPCSuccess);
|
||||
|
||||
@@ -205,7 +208,22 @@ message CreateServerRequest {
|
||||
}
|
||||
|
||||
message CreateServerResponse {
|
||||
int64 serverId = 1;
|
||||
int64 serverId = 1; // 所创建的网站ID
|
||||
}
|
||||
|
||||
// 快速创建基本的HTTP网站
|
||||
message CreateBasicHTTPServerRequest {
|
||||
int64 nodeClusterId = 1; // 部署的集群ID,用户创建时不需要指定此项
|
||||
int64 userId = 2; // 管理员创建网站时可以指定此用户ID,也可以为0表示不指定
|
||||
repeated string domains = 3; // 域名列表
|
||||
repeated int64 sslCertIds = 4; // HTTPS用到的证书ID列表
|
||||
repeated string originAddrs = 5; // 源站地址列表,每一个源站地址需要带协议部分,比如 http://example.com
|
||||
|
||||
bool enableWebsocket = 6; // 可选项,是否启用Websocket
|
||||
}
|
||||
|
||||
message CreateBasicHTTPServerResponse {
|
||||
int64 serverId = 1; // 所创建的网站ID
|
||||
}
|
||||
|
||||
// 修改网站基本信息
|
||||
|
||||
Reference in New Issue
Block a user