Strapi plugin logo for Upload OVH

Upload OVH

A provider for using ovh object storage to store statics assets

strapi-provider-upload-ovh

Resources

Links

Installation

# using yarn
yarn add strapi-provider-upload-ovh

# using npm
npm install strapi-provider-upload-ovh --save

Provider Configuration

./config/plugins.js

1module.exports = ({ env }) => ({
2  // ...
3  upload: {
4    config: {
5      provider: 'ovh',
6      providerOptions: {
7        keystoneAuthVersion: 'v3',
8        provider: 'openstack',
9        username: env('STORAGE_USERNAME'),
10        password: env('STORAGE_PASSWORD'),
11        region: env('STORAGE_REGION', 'GRA'),
12        domainId: env('STORAGE_DOMAIN_ID', 'default'),
13        domainName: env('STORAGE_TENANT_NAME', 'tenant_name'),
14        authUrl: env('STORAGE_AUTH_URL', 'https://auth.cloud.ovh.net/'),
15        defaultContainerName: env('STORAGE_CONTAINER_NAME'),
16        publicUrlPrefix: env('STORAGE_PUBLIC_URL_PREFIX')
17      }
18    },
19  },
20  // ...
21});

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

1module.exports = [
2  // ...
3  {
4    name: 'strapi::security',
5    config: {
6      contentSecurityPolicy: {
7        useDefaults: true,
8        directives: {
9          'connect-src': ["'self'", 'https:'],
10          'img-src': ["'self'", 'data:', 'blob:', 'https://auth.cloud.ovh.net'],
11          'media-src': ["'self'", 'data:', 'blob:', 'https://auth.cloud.ovh.net'],
12          upgradeInsecureRequests: null,
13        },
14      },
15    },
16  },
17  // ...
18];

Install now

npm install strapi-provider-upload-ovh

STATS

3 GitHub stars1 weekly download

Last updated

696 days ago

Strapi Version

Unavailable

Related plugin

Email

Useful links

Create your own plugin

Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.