Skip to content

Commit 7d052f7

Browse files
authored
Add S3 Uploads for uploaded files (#54)
Signed-off-by: Ryan McCue <me@ryanmccue.info>
1 parent 790b81a commit 7d052f7

File tree

3 files changed

+59
-2
lines changed

3 files changed

+59
-2
lines changed

.config/constants.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,10 @@
1111
define( 'AWS_SES_WP_MAIL_REGION', 'us-east-1' );
1212
define( 'AWS_SES_WP_MAIL_USE_INSTANCE_PROFILE', true );
1313

14+
// S3 Uploads configuration.
15+
define( 'S3_UPLOADS_BUCKET', 'fairpm-site-production' );
16+
define( 'S3_UPLOADS_REGION', 'us-east-1' );
17+
define( 'S3_UPLOADS_USE_INSTANCE_PROFILE', true );
18+
1419
// Root path for URL structure for Packages for Aspire Explorer.
1520
define( 'AE_ROOT', 'packages/' );

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"yoast/wordpress-seo": "*",
3535
"aspirepress/aspireexplorer": "^0.2",
3636
"fair/fair-plugin": "dev-main",
37-
"ocean90/public-post-preview": "^3.0"
37+
"ocean90/public-post-preview": "^3.0",
38+
"humanmade/s3-uploads": "^3.0"
3839
},
3940
"extra": {
4041
"installer-paths": {

composer.lock

Lines changed: 52 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)