vmol-s3
v0.2.3
Published
Moleculer mixin for S3 object storage
Downloads
2
Readme
vmol-s3
Moleculer mixin adding s3 access to the local service.
Configuration
Settings can be provided by the service or using enviroment variables.
settings: {
s3: {
keyId: process.env.S3_STORAGE_KEYID,
key: process.env.S3_STORAGE_KEY,
region: process.env.S3_STORAGE_REGION,
endpoint: process.env.S3_STORAGE_ENDPOINT,
container: process.env.S3_STORAGE_CONTAINER,
delimiter: process.env.S3_STORAGE_DELIMITER
}
}
Usage
To enable, add the middleware to your services.
const S3Service = require('vmol-s3');
module.exports = {
name: 'myservice',
/**
* Mixins
*/
mixins: [ S3Service ],
};