From 5df62392be0d8256fce234a481bc1add3cd29da4 Mon Sep 17 00:00:00 2001 From: David van der Spek Date: Fri, 25 Nov 2022 17:55:50 +0100 Subject: [PATCH] improve s3 bucket name env var Signed-off-by: David van der Spek --- config/middlewares.ts | 4 ++-- config/plugins.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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: {