Skip to content

Commit 902b5fe

Browse files
committed
acme/autocert: include email in example
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.
1 parent c07d793 commit 902b5fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

acme/autocert/example_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ func ExampleManager() {
2424
m := &autocert.Manager{
2525
Cache: autocert.DirCache("secret-dir"),
2626
Prompt: autocert.AcceptTOS,
27+
Email: "example@example.org",
2728
HostPolicy: autocert.HostWhitelist("example.org", "www.example.org"),
2829
}
2930
s := &http.Server{

0 commit comments

Comments
 (0)