diff --git a/packages/providers/upload-aws-s3/README.md b/packages/providers/upload-aws-s3/README.md index c089757144..a1e41be7bd 100644 --- a/packages/providers/upload-aws-s3/README.md +++ b/packages/providers/upload-aws-s3/README.md @@ -57,6 +57,29 @@ module.exports = ({ env }) => ({ // ... }); ``` +#### Configuration for S3 compatible services +This plugin may work with S3 compatible services by using the `endpoint` option instead of `region`. Scaleway example: +`./config/plugins.js` + +```js +module.exports = ({ env }) => ({ + // ... + upload: { + config: { + provider: 'aws-s3', + providerOptions: { + accessKeyId: env('SCALEWAY_ACCESS_KEY_ID'), + secretAccessKey: env('SCALEWAY_ACCESS_SECRET'), + endpoint: env('SCALEWAY_ENDPOINT'), // e.g. "s3.fr-par.scw.cloud" + params: { + Bucket: env('SCALEWAY_BUCKET'), + }, + }, + }, + }, + // ... +}); +``` ### Security Middleware Configuration