Skip to content

Commit

Permalink
improve s3 bucket name env var
Browse files Browse the repository at this point in the history
Signed-off-by: David van der Spek <[email protected]>
  • Loading branch information
davidspek committed Nov 25, 2022
1 parent 116c903 commit 5df6239
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/middlewares.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
2 changes: 1 addition & 1 deletion config/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 5df6239

Please sign in to comment.