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
This commit is contained in:
Roman Walters 2022-05-10 13:17:48 +02:00 committed by GitHub
parent cd023b6662
commit 941c39eea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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