From 6deed8034ef25af97d38e824e183a9602e5b308b Mon Sep 17 00:00:00 2001 From: yuzuki999 Date: Wed, 6 Sep 2023 23:28:38 +0800 Subject: [PATCH] fix lego --- node/lego.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/lego.go b/node/lego.go index e3af377..1c32726 100644 --- a/node/lego.go +++ b/node/lego.go @@ -92,6 +92,7 @@ func (l *Lego) SetProvider() error { func (l *Lego) CreateCert() (err error) { request := certificate.ObtainRequest{ Domains: []string{l.config.CertDomain}, + Bundle: true, } certificates, err := l.client.Certificate.Obtain(request) if err != nil { @@ -114,7 +115,7 @@ func (l *Lego) RenewCert() error { res, err := l.client.Certificate.Renew(certificate.Resource{ Domain: l.config.CertDomain, Certificate: file, - }, false, false, "") + }, true, false, "") if err != nil { return err }