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: about 1 month 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-09T09:34:16.000Z (about 6 years ago)
- Last Synced: 2024-06-19T19:46:57.475Z (5 months 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
[![GoDoc](https://godoc.org/github.com/danilobuerger/autocert-s3-cache?status.svg)](https://godoc.org/github.com/danilobuerger/autocert-s3-cache) [![Build Status](https://travis-ci.org/danilobuerger/autocert-s3-cache.svg?branch=master)](https://travis-ci.org/danilobuerger/autocert-s3-cache) [![Coverage Status](https://coveralls.io/repos/github/danilobuerger/autocert-s3-cache/badge.svg?branch=master)](https://coveralls.io/github/danilobuerger/autocert-s3-cache?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/danilobuerger/autocert-s3-cache)](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("", "")
```