Add the "tls.email" directive
To receive expiration warnings from Let's Encrypt.
This commit is contained in:
parent
86f5946603
commit
3825cdccff
|
@ -103,6 +103,12 @@ func parseTLS(srv *Server, d *Directive) error {
|
|||
return err
|
||||
}
|
||||
srv.ACMEManager.CA = caURL
|
||||
case "email":
|
||||
var email string
|
||||
if err := child.ParseParams(&email); err != nil {
|
||||
return err
|
||||
}
|
||||
srv.ACMEManager.Email = email
|
||||
default:
|
||||
return fmt.Errorf("unknown %q directive", child.Name)
|
||||
}
|
||||
|
|
|
@ -64,6 +64,10 @@ The following directives are supported:
|
|||
*acme_ca* <url>
|
||||
ACME Certificate Authority endpoint.
|
||||
|
||||
*email* <address>
|
||||
The email address to use when creating or selecting an existing ACME
|
||||
server account
|
||||
|
||||
# FILES
|
||||
|
||||
_/etc/tlstunnel/config_
|
||||
|
|
Loading…
Reference in New Issue