diff --git a/config/middlewares.ts b/config/middlewares.ts index 0cd4386..24728bc 100644 --- a/config/middlewares.ts +++ b/config/middlewares.ts @@ -12,13 +12,13 @@ export default ({ env }) => ([ "'self'", 'data:', 'blob:', - env('S3_URL'), + env('S3_URL'), // yourBucketName.s3.yourRegion.amazonaws.com, or if path style access is enabled use s3.yourRegion.amazonaws.com ], 'media-src': [ "'self'", 'data:', 'blob:', - env('S3_URL'), + env('S3_URL'), // yourBucketName.s3.yourRegion.amazonaws.com, or if path style access is enabled use s3.yourRegion.amazonaws.com ], upgradeInsecureRequests: null, }, diff --git a/config/plugins.ts b/config/plugins.ts index ceabd63..8c72659 100644 --- a/config/plugins.ts +++ b/config/plugins.ts @@ -8,7 +8,7 @@ export default ({ env }) => ({ region: env('AWS_REGION'), /// if using aws S3 endpoint: env('S3_ENDPOINT'), // e.g. "s3.fr-par.scw.cloud" params: { - Bucket: env('AWS_BUCKET'), + Bucket: env('S3_BUCKET_NAME'), }, }, actionOptions: {