danilobuerger / autocert-s3-cache

AWS S3 Cache for Go acme/autocert

Home Page:https://godoc.org/github.com/danilobuerger/autocert-s3-cache

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoDoc Build Status Coverage Status Go Report Card

autocert-s3-cache

AWS S3 cache for acme/autocert written in Go.

Example

cache, err := s3cache.New("eu-west-1", "my-bucket")
if err != nil {
  // Handle error
}

m := autocert.Manager{
  Prompt:     autocert.AcceptTOS,
  HostPolicy: autocert.HostWhitelist("example.org"),
  Cache:      cache,
}

s := &http.Server{
  Addr:      ":https",
  TLSConfig: &tls.Config{GetCertificate: m.GetCertificate},
}

s.ListenAndServeTLS("", "")

About

AWS S3 Cache for Go acme/autocert

https://godoc.org/github.com/danilobuerger/autocert-s3-cache

License:MIT License


Languages

Language:Go 100.0%