Greetings, thanks for working on this magnificent CMD, I see that it can be integrated with AWS S3 which is great, but the OVH services in prices and services is better, I use it for years. In that sense, I request that the integration between Strapi and OVH be easy to implement as well as AWS S3. I hope you take this request into account.
The best way right now @JuancaValero would probably be to fork our existing provider and if OVH have a javascript SDK swap that out and make your own.
You can find the source code for our AWS-S3 provider here: strapi/packages/strapi-provider-upload-aws-s3 at master · strapi/strapi · GitHub
Hi! Do you found any solution for this?
Hello,
With strapi v5, you can use @strapi/provider-upload-aws-s3
with ovh object storage.
pnpm add @strapi/provider-upload-aws-s3
I used the following config in plugin.js
upload: {
config: {
provider: 'aws-s3',
providerOptions: {
baseUrl: env('STRAPI_UPLOAD_BASE_URL'),
rootPath: '',
s3Options: {
endpoint: env("STRAPI_UPLOAD_ENDPOINT"),
credentials: {
accessKeyId: env('STRAPI_UPLOAD_ACCESS_KEY_ID'),
secretAccessKey: env('STRAPI_UPLOAD_SECRET_ACCESS_KEY'),
},
region: env('STRAPI_UPLOAD_REGION'),
params: {
ACL: 'public-read',
signedUrlExpires: 15 * 60,
Bucket: env('STRAPI_UPLOAD_BUCKET'),
},
},
},
actionOptions: {
upload: {},
uploadStream: {},
delete: {},
},
},
},
With the following .env
STRAPI_UPLOAD_BASE_URL = https://<my_bucket_name>.s3.<my_region>.io.cloud.ovh.net
STRAPI_UPLOAD_ENDPOINT = https://s3.<my_region>.io.cloud.ovh.net
STRAPI_UPLOAD_REGION = <my_region>
STRAPI_UPLOAD_ACCESS_KEY_ID = <ovh_object_storage_access_key_id>
STRAPI_UPLOAD_SECRET_ACCESS_KEY = <ovh_object_storage_secret_access_key>
STRAPI_UPLOAD_BUCKET = <my_bucket_name>
Best,