|
@@ -127,4 +127,13 @@ type SSlCert struct {
|
|
|
type EditServerNames struct {
|
|
|
ServerId int64 `json:"serverId" form:"serverId"`
|
|
|
ServerNamesJSON []byte `json:"serverNamesJSON" form:"serverNamesJSON"`
|
|
|
+}
|
|
|
+
|
|
|
+type AddSSLPolicy struct {
|
|
|
+ Http2Enabled bool `json:"http2Enabled" form:"http2Enabled"` //是否支持HTTP/2
|
|
|
+ Http3Enabled bool `json:"http3Enabled" form:"http3Enabled"` //是否支持Http3Enabled
|
|
|
+ MinVersion string `json:"minVersion" form:"minVersion"` //最小TLS版本
|
|
|
+ SslCertsJSON []byte `json:"sslCertsJSON" form:"sslCertsJSON"` //SslCertsJSON
|
|
|
+ HstsJSON []byte `json:"hstsJSON" form:"hstsJSON"` //HstsJSON
|
|
|
+ ClientAuthType string `json:"clientAuthType" form:"clientAuthType"` //可选项,客户端校验类型:0 无需证书,1 需要客户端证书,2 需要任一客户端证书,3 如果客户端上传了证书才校验,4 需要客户端证书而且需要校验
|
|
|
}
|