Minor tweaks

This commit is contained in:
Matthew Holt 2021-04-01 12:49:51 -06:00
parent a0a7c60cb9
commit d21e88ae3a
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
2 changed files with 3 additions and 3 deletions

View file

@ -51,10 +51,10 @@ type CA struct {
// and Mozilla Firefox trust stores. Default: true.
InstallTrust *bool `json:"install_trust,omitempty"`
// The root certificate to use; if empty, one will be generated.
// The root certificate to use; if null, one will be generated.
Root *KeyPair `json:"root,omitempty"`
// The intermediate (signing) certificate; if empty, one will be generated.
// The intermediate (signing) certificate; if null, one will be generated.
Intermediate *KeyPair `json:"intermediate,omitempty"`
// Optionally configure a separate storage module associated with this

View file

@ -34,7 +34,7 @@ type PEMLoader []CertKeyPEMPair
func (PEMLoader) CaddyModule() caddy.ModuleInfo {
return caddy.ModuleInfo{
ID: "tls.certificates.load_pem",
New: func() caddy.Module { return PEMLoader{} },
New: func() caddy.Module { return new(PEMLoader) },
}
}