@strapi/provider-upload-aws-s3 4.20.4 → 4.21.0

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.
Files changed (2) hide show
  1. package/README.md +4 -3
  2. 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` option instead of `region`. Scaleway example:
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
- endpoint: env('SCALEWAY_ENDPOINT'), // e.g. "s3.fr-par.scw.cloud"
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.4",
3
+ "version": "4.21.0",
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.4",
55
+ "@strapi/pack-up": "4.21.0",
56
56
  "@types/jest": "29.5.2",
57
- "eslint-config-custom": "4.20.4",
58
- "tsconfig": "4.20.4"
57
+ "eslint-config-custom": "4.21.0",
58
+ "tsconfig": "4.21.0"
59
59
  },
60
60
  "engines": {
61
61
  "node": ">=18.0.0 <=20.x.x",
62
62
  "npm": ">=6.0.0"
63
63
  },
64
- "gitHead": "f37fdb46ce2d5275ef44892d3cea2ce836b745da"
64
+ "gitHead": "e87fdd461d2765e19edd14156a9a500e17fbeeb4"
65
65
  }