mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
refactor: auto certificate options
1. Add OCSP Must Staple options #292 2. Add LEGO_DISABLE_CNAME_SUPPORT options #407
This commit is contained in:
parent
532d6e83c5
commit
4660a46a7e
18 changed files with 234 additions and 212 deletions
|
@ -71,12 +71,14 @@ func autoCert(certModel *model.Cert) {
|
|||
|
||||
// support SAN certification
|
||||
payload := &ConfigPayload{
|
||||
CertID: certModel.ID,
|
||||
ServerName: certModel.Domains,
|
||||
ChallengeMethod: certModel.ChallengeMethod,
|
||||
DNSCredentialID: certModel.DnsCredentialID,
|
||||
KeyType: certModel.GetKeyType(),
|
||||
NotBefore: certInfo.NotBefore,
|
||||
CertID: certModel.ID,
|
||||
ServerName: certModel.Domains,
|
||||
ChallengeMethod: certModel.ChallengeMethod,
|
||||
DNSCredentialID: certModel.DnsCredentialID,
|
||||
KeyType: certModel.GetKeyType(),
|
||||
NotBefore: certInfo.NotBefore,
|
||||
MustStaple: certModel.MustStaple,
|
||||
LegoDisableCNAMESupport: certModel.LegoDisableCNAMESupport,
|
||||
}
|
||||
|
||||
if certModel.Resource != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue