1.1.0 • Published 4 years ago
jsreport-aws-s3-storage v1.1.0
jsreport-aws-s3-storage
jsreport extension adding support for storing blobs in aws s3
Some of the jsreport extensions requires a blob storage for storing binary objects. This implementation stores these objects like output reports inside cost effective aws s3.
See the blob sorages general documentation https://jsreport.net/learn/blob-storages
See how to persist jsreport output reports https://jsreport.net/learn/reports
Installation
npm install jsreport-aws-s3-storage
Configuration
Required options are:
accessKeyId
secretAccessKey
bucket
Optionally you can set
s3Options
: azure blob storage container, this defaults to jsreport
{
"blobStorage": {
"provider": "aws-s3-storage"
},
"extensions": {
"aws-s3-storage": {
"accessKeyId": "...",
"secretAccessKey": "...",
"bucket": "...",
"s3Options": {...}
}
}
}
jsreport-core
var jsreport = require('jsreport-core')({ blobStorage: { provider: 'aws-s3-storage' } })
jsreport.use(require('jsreport-aws-s3-storage')({...}))