2019-05-08 13:06:36 +00:00
|
|
|
[![CircleCI](https://circleci.com/gh/cderche/greenlock-storage-s3.svg?style=svg)](https://circleci.com/gh/cderche/greenlock-storage-s3)
|
2019-05-08 13:49:02 +00:00
|
|
|
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/0923e01ff76e403abab4637a45149155)](https://www.codacy.com/app/c.derche/greenlock-storage-s3?utm_source=github.com&utm_medium=referral&utm_content=cderche/greenlock-storage-s3&utm_campaign=Badge_Grade)
|
2019-05-08 14:06:29 +00:00
|
|
|
[![Known Vulnerabilities](https://snyk.io/test/github/cderche/greenlock-storage-s3/badge.svg)](https://snyk.io/test/github/cderche/greenlock-storage-s3)
|
2019-05-08 13:06:36 +00:00
|
|
|
|
2019-05-08 09:38:04 +00:00
|
|
|
# greenlock-storage-s3
|
2019-05-08 09:42:14 +00:00
|
|
|
S3 backed storage strategy for greenlock-express.js (and greenlock.js)
|
2019-05-08 09:52:09 +00:00
|
|
|
|
2019-05-08 10:43:59 +00:00
|
|
|
## Requirements
|
2019-05-08 09:52:09 +00:00
|
|
|
|
2019-05-08 14:25:23 +00:00
|
|
|
You will need a s3 bucket and the corresponding credentials.
|
2019-05-08 14:20:09 +00:00
|
|
|
|
|
|
|
## Integration
|
|
|
|
|
|
|
|
### greenlock-express.js
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
|
2019-05-08 14:25:23 +00:00
|
|
|
let store = require('greenlock-storage-s3').create({
|
2019-05-08 14:20:09 +00:00
|
|
|
accessKeyId: accessKeyId // Your accessKeyId
|
|
|
|
, secretAccessKey: secretAccessKey // Your secretAccessKey
|
|
|
|
, regionName: regionName // Your regionName
|
|
|
|
, bucketName: bucketName // Your bucketName
|
|
|
|
, configDir: 'acme/' // Recommended
|
|
|
|
, accountsDir: 'accounts/' // Recommended
|
|
|
|
, debug: true // Debug
|
|
|
|
});
|
|
|
|
|
|
|
|
var Greenlock = require("greenlock-express");
|
|
|
|
|
|
|
|
var greenlock = Greenlock.create({
|
|
|
|
// Other options
|
|
|
|
, store: store
|
|
|
|
});
|
|
|
|
|
|
|
|
// Continue your greenlock setup
|
|
|
|
|
|
|
|
```
|
2019-05-08 09:52:09 +00:00
|
|
|
|
2019-05-08 10:43:59 +00:00
|
|
|
## License
|
2019-05-08 09:52:09 +00:00
|
|
|
|
2019-05-08 13:06:36 +00:00
|
|
|
ISC
|