From 941c39eea7c5ea183073d5bae2dede743f54d273 Mon Sep 17 00:00:00 2001 From: Roman Walters Date: Tue, 10 May 2022 13:17:48 +0200 Subject: [PATCH] Added config info about S3 compatible services Added information, that this upload provider works also with S3 compatible services. I tested it with scaleway.com --- packages/providers/upload-aws-s3/README.md | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/packages/providers/upload-aws-s3/README.md b/packages/providers/upload-aws-s3/README.md index bbb6cc1be2..dd117cdcb7 100644 --- a/packages/providers/upload-aws-s3/README.md +++ b/packages/providers/upload-aws-s3/README.md @@ -50,6 +50,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