strapi-provider-upload-ibm-object-storage
v1.2.0
Published
IBM Cloud Object Storage provider for Strapi upload plugin
Readme
strapi-provider-upload-ibm
Strapi Upload plugin provider for IBM Cloud Object Storage.
Install
npm install --save IBMResearch/strapi-provider-upload-ibm-object-storageConfiguration
Your configuration is passed down to the provider. (e.g: new imb.S3(config)).
Example
In ./config/plugins.js (or ./config/env/{env}/plugins.js):
module.exports = ({ env }) => ({
upload: {
provider: 'ibm-object-storage',
providerOptions: {
endpoint: env('IBM_COS_ENDPOINT', '<endpoint>'),
apiKeyId: env('IBM_COS_API_KEY_ID', '<api-key>'),
serviceInstanceId: env('IBM_COS_SERVICE_INSTANCE_ID', '<resource-instance-id>'),
params: {
Bucket: env('IBM_COS_BUCKET', '<bucket>'),
},
},
},
});To get these values you need to create new service credentials. Except for the endpoint, which is provided in the setup section of the bucket.
You can read more about the configuration framework and the usage of environment variables in the Strapi 3.x stable documentation.
