Skip to content

Commit

Permalink
README: Add hint about NextProtos for certmagic.TLS (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverpool authored Aug 22, 2023
1 parent e822453 commit 4fbb049
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ tlsConfig, err := certmagic.TLS([]string{"example.com"})
if err != nil {
return err
}
// be sure to customize NextProtos if serving a specific
// application protocol after the TLS handshake, for example:
tlsConfig.NextProtos = append([]string{"h2", "http/1.1"}, tlsConfig.NextProtos...)
```


Expand Down

0 comments on commit 4fbb049

Please sign in to comment.