Merge pull request #13283 from pointout/patch-2

Added config info about S3 compatible services
This commit is contained in:
Jean-Sébastien Herbaux 2022-07-18 11:45:57 +02:00 committed by GitHub
commit 00b95ca902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ### Security Middleware Configuration