strapi-provider-upload-bunnystorage
v1.0.2
Published
bunnystorage is provider for strapi, upload files to storage zone and upload video to stream service
Downloads
4
Readme
strapi-provider-upload-bunnystorage
BunnyStorage is a BunnyCDN Upload Provider for Strapi, ispired at strapi-provider-upload-bunnycdn, but different, BunnyStorage upload videos to Stream service.
Install
npm i strapi-provider-upload-bunnystorage
Configurations
See the using a provider documentation for information on installing and using a provider. And see the environment variables for setting and using environment variables in your configs.
Example
./config/plugins.js
module.exports = ({ env }) => ({
//...
upload: {
provider: 'bunnystorage',
providerOptions: {
storageHost: env('BUNNYSTORAGE_STORAGE_HOST'),
storageZone: env('BUNNYSTORAGE_STORAGE_ZONE'),
pullZone: env('BUNNYSTORAGE_PULL_ZONE'),
storageFolder: env('BUNNYSTORAGE_STORAGE_FOLDER', null),
storageApiKey: env('BUNNYSTORAGE_STORAGE_API_KEY'),
videostreamLibraryId: env('BUNNYSTORAGE_VIDEOSTREAM_LIBRARY_ID'),
videostreamApiKey: env('BUNNYSTORAGE_VIDEOSTREAM_API_KEY'),
videostreamCollectionId: env('BUNNYSTORAGE_VIDEOSTREAM_COLLECTION_ID', null),
}
},
//...
});
.env
HOST=0.0.0.0
PORT=1337
BASE_URL=http://localhost:1337
//...
//BunnyStorage
BUNNYSTORAGE_STORAGE_HOST=https://storage.bunnycdn.com
BUNNYSTORAGE_STORAGE_ZONE=xxxxxx
BUNNYSTORAGE_PULL_ZONE=xxxxxx
BUNNYSTORAGE_STORAGE_FOLDER=strapi
BUNNYSTORAGE_STORAGE_API_KEY=xxxxxx
BUNNYSTORAGE_VIDEOSTREAM_LIBRARY_ID=xxxxxx
BUNNYSTORAGE_VIDEOSTREAM_API_KEY=xxxxxx
BUNNYSTORAGE_VIDEOSTREAM_COLLECTION_ID=xxxxxx