mirror of
https://github.com/certimate-go/certimate.git
synced 2026-09-24 23:10:13 +08:00
fix: #951
This commit is contained in:
@@ -114,8 +114,8 @@ func (d *SSLDeployerProvider) Deploy(ctx context.Context, certPEM string, privke
|
||||
modifySiteReq := &btwafsdk.ModifySiteRequest{
|
||||
SiteId: lo.ToPtr(siteId),
|
||||
Type: lo.ToPtr("openCert"),
|
||||
Server: &btwafsdk.SiteServerInfo{
|
||||
ListenSSLPorts: lo.ToPtr([]int32{d.config.SitePort}),
|
||||
Server: &btwafsdk.SiteServerInfoMod{
|
||||
ListenSSLPorts: lo.ToPtr([]string{fmt.Sprintf("%d", d.config.SitePort)}),
|
||||
SSL: &btwafsdk.SiteServerSSLInfo{
|
||||
IsSSL: lo.ToPtr(int32(1)),
|
||||
FullChain: lo.ToPtr(certPEM),
|
||||
|
||||
@@ -6,9 +6,9 @@ import (
|
||||
)
|
||||
|
||||
type ModifySiteRequest struct {
|
||||
SiteId *string `json:"site_id,omitempty"`
|
||||
Type *string `json:"types,omitempty"`
|
||||
Server *SiteServerInfo `json:"server,omitempty"`
|
||||
SiteId *string `json:"site_id,omitempty"`
|
||||
Type *string `json:"types,omitempty"`
|
||||
Server *SiteServerInfoMod `json:"server,omitempty"`
|
||||
}
|
||||
|
||||
type ModifySiteResponse struct {
|
||||
|
||||
@@ -32,6 +32,11 @@ type SiteServerInfo struct {
|
||||
SSL *SiteServerSSLInfo `json:"ssl,omitempty"`
|
||||
}
|
||||
|
||||
type SiteServerInfoMod struct {
|
||||
ListenSSLPorts *[]string `json:"listen_ssl_port,omitempty"`
|
||||
SSL *SiteServerSSLInfo `json:"ssl,omitempty"`
|
||||
}
|
||||
|
||||
type SiteServerSSLInfo struct {
|
||||
IsSSL *int32 `json:"is_ssl,omitempty"`
|
||||
FullChain *string `json:"full_chain,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user