mirror of
https://github.com/strapi/strapi.git
synced 2025-11-30 17:18:24 +00:00
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:
parent
cd023b6662
commit
941c39eea7
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user