mirror of
https://github.com/strapi/strapi.git
synced 2025-10-27 16:10:08 +00:00
Merge pull request #13283 from pointout/patch-2
Added config info about S3 compatible services
This commit is contained in:
commit
00b95ca902
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user