2
0
鏡像自 https://github.com/cderche/greenlock-storage-s3 synced 2025-07-02 06:06:32 +00:00

Merge pull request #1 from cderche/update-readme

Update Readme.md
This commit is contained in:
cyrille 2019-05-08 15:23:36 +01:00 提交者 GitHub
當前提交 20c3e070ef
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 4AEE18F83AFDEB23

查看文件

@ -7,11 +7,42 @@ S3 backed storage strategy for greenlock-express.js (and greenlock.js)
## Requirements ## Requirements
- AWS Account You will need:
- S3 Bucket 1. S3 Bucket (<a href="https://aws.amazon.com/s3/" target="_blank">more info.</a>)
- Access to S3 Bucket via the AWS CLI (accessKeyId, secretAccessKey) 2. AWS API credentials with read and write access to the bucket (<a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html" target="_blank">more info.</a>)
For more information see https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html You will need to pass the following information to greenlock-storage-s3
1. Your accessKeyId
2. Your secretAccessKey
3. Your regionName
4. Your bucketName
## Integration
### greenlock-express.js
```javascript
let store = require('./index').create({
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
```
## License ## License