This package has been deprecated

Author message:

This package has been deprecated and will no longer be maintained by Strapi.

@strapi/provider-upload-rackspace

4.3.2 • Public • Published

@strapi/provider-upload-rackspace

Resources

Links

Installation

# using yarn
yarn add @strapi/provider-upload-rackspace

# using npm
npm install @strapi/provider-upload-rackspace --save

Configuration

  • provider defines the name of the provider
  • providerOptions is passed down during the construction of the provider. (ex: createClient(config)). Complete list of options. The implementation is based on the package pkgcloud. Documentation
  • actionOptions is passed directly to each method respectively allowing for custom options. You can find the complete list of upload/ uploadStream options and delete options

See the documentation about using a provider for information on installing and using a provider. To understand how environment variables are used in Strapi, please refer to the documentation about environment variables.

Provider Configuration

./config/plugins.js

module.exports = ({ env }) => ({
  // ...
  upload: {
    config: {
      provider: 'rackspace',
      providerOptions: {
        username: env('RACKSPACE_USERNAME'),
        apiKey: env('RACKSPACE_KEY'),
        region: env('RACKSPACE_REGION'),
        container: env('RACKSPACE_CONTAINER'),
      },
      actionOptions: {
        upload: {},
        uploadStream: {},
        delete: {},
      },
    },
  },
  // ...
});

Security Middleware Configuration

Due to the default settings in the Strapi Security Middleware you will need to modify the contentSecurityPolicy settings to properly see thumbnail previews in the Media Library. You should replace strapi::security string with the object bellow instead as explained in the middleware configuration documentation.

./config/middlewares.js

module.exports = [
  // ...
  {
    name: 'strapi::security',
    config: {
      contentSecurityPolicy: {
        useDefaults: true,
        directives: {
          'connect-src': ["'self'", 'https:'],
          'img-src': ["'self'", 'data:', 'blob:', 'storage.clouddrive.com'],
          'media-src': ["'self'", 'data:', 'blob:', 'storage.clouddrive.com'],
          upgradeInsecureRequests: null,
        },
      },
    },
  },
  // ...
];

Dependents (0)

Package Sidebar

Install

npm i @strapi/provider-upload-rackspace

Weekly Downloads

1

Version

4.3.2

License

SEE LICENSE IN LICENSE

Unpacked Size

7.09 kB

Total Files

4

Last publish

Collaborators

  • tdfka_rick
  • markkaylor
  • marc-roig-strapi
  • lauriejim
  • pierreburgy
  • aurelsicoko
  • alexandrebodin
  • convly