Add an Amazon S3 document store

This commit is contained in:
Jacob Parker
2019-06-28 19:09:40 +01:00
parent b866c33c93
commit b4c666fbcf
2 changed files with 77 additions and 0 deletions

View File

@@ -198,6 +198,27 @@ Also, you must create an `uploads` table, which will store all the data for uplo
You can optionally add the `user` and `password` properties to use a user system.
### Amazon S3
To use [Amazon S3](https://aws.amazon.com/s3/) as a storage system, you must
install the `aws-sdk` package via npm:
`npm install aws-sdk`
Once you've done that, your config section should look like this:
```json
{
"type": "amazon-s3",
"bucket": "your-bucket-name",
"region": "us-east-1"
}
```
Authentication is handled automatically by the client. Check
[Amazon's documentation](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-credentials-node.html)
for more information.
## Author
John Crepezzi <john.crepezzi@gmail.com>