Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 days 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 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-09T09:34:16.000Z (over 6 years ago)
- Last Synced: 2025-02-03T11:03:58.607Z (18 days 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: 4
- 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("", "")
```