# strapi-provider-upload-ovh

> OVH provider for strapi upload

Latest version **4.15.5** (published 2023-12-05) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install strapi-provider-upload-ovh
pnpm add strapi-provider-upload-ovh
yarn add strapi-provider-upload-ovh
bun add strapi-provider-upload-ovh
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.15.5 |
| Published | 2023-12-05 |
| First published | 2022-07-25 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=18.0.0 <=20.x.x |
| Dependencies | 2 |
| Unpacked size | 173.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | cto-akatek |
| Keywords | upload, ovh, object storage, strapi |

## Links

- npm: https://www.npmjs.com/package/strapi-provider-upload-ovh
- Repository: https://github.com/Kazdan1994/strapi-provider-upload-ovh
- Homepage: https://strapi.io
- Issues: https://github.com/Kazdan1994/strapi-provider-upload-ovh/issues
- npm.io page: https://npm.io/package/strapi-provider-upload-ovh

## Dependencies (2)

- [pkgcloud](https://npm.io/package/pkgcloud.md) ^2.2.0
- [streamifier](https://npm.io/package/streamifier.md) ^0.1.1

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 4.15.5 (latest) — 2023-12-05
- 4.7.1 — 2023-03-02
- 4.6.1 — 2023-02-20
- 4.2.4 — 2022-07-25
- 4.2.3 — 2022-07-25

## README

# strapi-provider-upload-ovh

## Resources

- [LICENSE](LICENSE)

## Links

- [Strapi website](https://strapi.io/)
- [Strapi documentation](https://docs.strapi.io)
- [Strapi community on Discord](https://discord.strapi.io)
- [Strapi news on Twitter](https://twitter.com/strapijs)

## Installation

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

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

### Provider Configuration

`./config/plugins.js`

```js
module.exports = ({ env }) => ({
  // ...
  upload: {
    config: {
      provider: 'ovh',
      providerOptions: {
        keystoneAuthVersion: 'v3',
        provider: 'openstack',
        username: env('STORAGE_USERNAME'),
        password: env('STORAGE_PASSWORD'),
        region: env('STORAGE_REGION', 'GRA'),
        domainId: env('STORAGE_DOMAIN_ID', 'default'),
        domainName: env('STORAGE_TENANT_NAME', 'tenant_name'),
        authUrl: env('STORAGE_AUTH_URL', 'https://auth.cloud.ovh.net/'),
        defaultContainerName: env('STORAGE_CONTAINER_NAME'),
        publicUrlPrefix: env('STORAGE_PUBLIC_URL_PREFIX')
      }
    },
  },
  // ...
});
```


### 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](https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/configurations/required/middlewares.html#loading-order) documentation.

`./config/middlewares.js`

```js
module.exports = [
  // ...
  {
    name: 'strapi::security',
    config: {
      contentSecurityPolicy: {
        useDefaults: true,
        directives: {
          'connect-src': ["'self'", 'https:'],
          'img-src': ["'self'", 'data:', 'blob:', 'https://auth.cloud.ovh.net'],
          'media-src': ["'self'", 'data:', 'blob:', 'https://auth.cloud.ovh.net'],
          upgradeInsecureRequests: null,
        },
      },
    },
  },
  // ...
];
```

---
_Source: https://npm.io/package/strapi-provider-upload-ovh · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
