Skip to content

Instantly share code, notes, and snippets.

@nleiva
Last active July 18, 2019 14:03
Show Gist options
  • Save nleiva/5d2c72b9d1813a6e545d2562982c0524 to your computer and use it in GitHub Desktop.
Save nleiva/5d2c72b9d1813a6e545d2562982c0524 to your computer and use it in GitHub Desktop.
manager := autocert.Manager{
Prompt: autocert.AcceptTOS,
Cache: autocert.DirCache("golang-autocert"),
HostPolicy: autocert.HostWhitelist(host),
Email: "[email protected]",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment