greenlock-storage-s3
S3 backed storage strategy for greenlock-express.js (and greenlock.js)
Requirements
You will need a s3 bucket and the corresponding credentials.
Integration
greenlock-express.js
let store = ; var Greenlock = ; var greenlock = Greenlock; // Continue your greenlock setup
Testing
The strategy is tested against the greenlock-store-test
To run the tests yourself, create a .env
file with the following
// .env fileAWS_ACCESS_KEY_ID=abc // Replace with your accessKeyIdAWS_SECRET_ACCESS_KEY=abc // Replace with your secretAccessKeyAWS_BUCKET_REGION=abc // Replace with your bucketRegionAWS_BUCKET_NAME=abc // Replace with your bucketName
Run the following command:
$ npm run clean && npm run test && npm run clean
License
ISC