1.0.2 • Published 2 years ago

strapi-provider-upload-bunnystorage v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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

Contributors

Other

image

image

image

1.0.2

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago