Update README.md

This commit is contained in:
cyrille 2019-05-08 15:51:26 +01:00 committed by GitHub
parent a828c3fbac
commit c1f92a6253
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 9 deletions

View File

@ -16,10 +16,10 @@ You will need a s3 bucket and the corresponding credentials.
```javascript
let store = require('greenlock-storage-s3').create({
accessKeyId: accessKeyId // Your accessKeyId
, secretAccessKey: secretAccessKey // Your secretAccessKey
, regionName: regionName // Your regionName
, bucketName: bucketName // Your bucketName
accessKeyId: accessKeyId // Replace with your accessKeyId
, secretAccessKey: secretAccessKey // Replace with your secretAccessKey
, regionName: regionName // Replace with your regionName
, bucketName: bucketName // Replace with your bucketName
, configDir: 'acme/' // Recommended
, accountsDir: 'accounts/' // Recommended
, debug: true // Debug
@ -44,13 +44,16 @@ To run the tests yourself, create a `.env` file with the following
```
// .env file
AWS_ACCESS_KEY_ID=abc // Your accessKeyId
AWS_SECRET_ACCESS_KEY=abc // Your secretAccessKey
AWS_BUCKET_REGION=abc // Your regionName
AWS_BUCKET_NAME=abc // Your bucketName
AWS_ACCESS_KEY_ID=abc // Replace with your accessKeyId
AWS_SECRET_ACCESS_KEY=abc // Replace with your secretAccessKey
AWS_BUCKET_REGION=abc // Replace with your regionName
AWS_BUCKET_NAME=abc // Replace with your bucketName
```
Run the following command: `npm run clean && npm run test && npm run clean`
Run the following command:
```console
$ npm run clean && npm run test && npm run clean
```
## License