@strapi/provider-upload-aws-s3 4.20.3 → 4.20.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -113,7 +113,7 @@ module.exports = ({ env }) => ({
|
|
|
113
113
|
|
|
114
114
|
#### Configuration for S3 compatible services
|
|
115
115
|
|
|
116
|
-
This plugin may work with S3 compatible services by using the `endpoint
|
|
116
|
+
This plugin may work with S3 compatible services by using the `endpoint`. Scaleway example:
|
|
117
117
|
`./config/plugins.js`
|
|
118
118
|
|
|
119
119
|
```js
|
|
@@ -127,7 +127,8 @@ module.exports = ({ env }) => ({
|
|
|
127
127
|
accessKeyId: env('SCALEWAY_ACCESS_KEY_ID'),
|
|
128
128
|
secretAccessKey: env('SCALEWAY_ACCESS_SECRET'),
|
|
129
129
|
},
|
|
130
|
-
|
|
130
|
+
region: env('SCALEWAY_REGION'), // e.g "fr-par"
|
|
131
|
+
endpoint: env('SCALEWAY_ENDPOINT'), // e.g. "https://s3.fr-par.scw.cloud"
|
|
131
132
|
params: {
|
|
132
133
|
Bucket: env('SCALEWAY_BUCKET'),
|
|
133
134
|
},
|
|
@@ -177,7 +178,7 @@ module.exports = [
|
|
|
177
178
|
];
|
|
178
179
|
```
|
|
179
180
|
|
|
180
|
-
If you use dots in your bucket name, the url of the resource is in directory style (`s3.yourRegion.amazonaws.com/your.bucket.name/image.jpg`) instead of `yourBucketName.s3.yourRegion.amazonaws.com/image.jpg` so in that case the img-src and media-src directives to add will be `s3.yourRegion.amazonaws.com` without the bucket name in the url.
|
|
181
|
+
If you use dots in your bucket name (`forcePathStyle set to false`), the url of the resource is in directory style (`s3.yourRegion.amazonaws.com/your.bucket.name/image.jpg`) instead of `yourBucketName.s3.yourRegion.amazonaws.com/image.jpg` so in that case the img-src and media-src directives to add will be `s3.yourRegion.amazonaws.com` without the bucket name in the url.
|
|
181
182
|
|
|
182
183
|
## Bucket CORS Configuration
|
|
183
184
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/provider-upload-aws-s3",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.5",
|
|
4
4
|
"description": "AWS S3 provider for strapi upload",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"upload",
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"lodash": "4.17.21"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@strapi/pack-up": "4.20.
|
|
55
|
+
"@strapi/pack-up": "4.20.5",
|
|
56
56
|
"@types/jest": "29.5.2",
|
|
57
|
-
"eslint-config-custom": "4.20.
|
|
58
|
-
"tsconfig": "4.20.
|
|
57
|
+
"eslint-config-custom": "4.20.5",
|
|
58
|
+
"tsconfig": "4.20.5"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=18.0.0 <=20.x.x",
|
|
62
62
|
"npm": ">=6.0.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "7a2a86e65faa175172945f55afe1b0f299fe98cc"
|
|
65
65
|
}
|