Skip to content

Commit

Permalink
acme/autocert: include email in example
Browse files Browse the repository at this point in the history
At Let's Encrypt, we've found that most autocert users do not provide an
email address, which makes it hard to get in touch when things go wrong
with their client. Demonstrating how to provide an email will probably
encourage more people to provide one.
  • Loading branch information
jsha committed May 28, 2021
1 parent c07d793 commit 902b5fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions acme/autocert/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func ExampleManager() {
m := &autocert.Manager{
Cache: autocert.DirCache("secret-dir"),
Prompt: autocert.AcceptTOS,
Email: "[email protected]",
HostPolicy: autocert.HostWhitelist("example.org", "www.example.org"),
}
s := &http.Server{
Expand Down

0 comments on commit 902b5fe

Please sign in to comment.