1
1
Fork 0
mirror of https://git.sr.ht/~emersion/tlstunnel synced 2024-05-12 02:16:11 +02:00

Add the "tls.email" directive

To receive expiration warnings from Let's Encrypt.
This commit is contained in:
Hubert Hirtz 2020-10-02 15:51:43 +02:00 committed by Simon Ser
parent 86f5946603
commit 3825cdccff
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
2 changed files with 10 additions and 0 deletions

View File

@ -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)
}

View File

@ -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_