https://github.com/danilobuerger/autocert-s3-cache
AWS S3 Cache for Go acme/autocert
https://github.com/danilobuerger/autocert-s3-cache
acme autocert aws go s3
Last synced: about 1 year ago
JSON representation
AWS S3 Cache for Go acme/autocert
- Host: GitHub
- URL: https://github.com/danilobuerger/autocert-s3-cache
- Owner: danilobuerger
- License: mit
- Created: 2016-10-19T10:33:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-09T09:34:16.000Z (over 7 years ago)
- Last Synced: 2025-03-24T21:13:58.325Z (over 1 year ago)
- Topics: acme, autocert, aws, go, s3
- Language: Go
- Homepage: https://godoc.org/github.com/danilobuerger/autocert-s3-cache
- Size: 12.7 KB
- Stars: 16
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://godoc.org/github.com/danilobuerger/autocert-s3-cache) [](https://travis-ci.org/danilobuerger/autocert-s3-cache) [](https://coveralls.io/github/danilobuerger/autocert-s3-cache?branch=master) [](https://goreportcard.com/report/github.com/danilobuerger/autocert-s3-cache)
# autocert-s3-cache
AWS S3 cache for [acme/autocert](https://godoc.org/golang.org/x/crypto/acme/autocert) written in Go.
## Example
```go
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("", "")
```