lstellway / wp-uploads-mirror-s3
WordPress plugin to mirror uploads directory to S3 bucket
Installs: 286
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:wordpress-muplugin
Requires
- aws/aws-sdk-php: ^3
- composer/installers: ~1.0
README
WordPress plugin to mirror uploads directory to an S3 bucket.
Installation
Composer
composer require lstellway/wp-uploads-mirror-s3
Dependencies
This plugin utilizes the PHP AWS SDK, and as a result should support any configuration options native to the SDK. Refer to the SDK documentation for more details.
This plugin is a small project developed to be included in my personal projects. If there is any further interest or ideas, I am happy to consider them.
Environment Variables
Variable Name | Description |
---|---|
S3_UPLOADS_ENDPOINT |
HTTP endpoint for accessing an S3-compatible API endpoint using path-style access |
S3_UPLOADS_BUCKET |
Name of the bucket to upload files to. (This can include a path to a subdirectory intended for files to be uploaded to: eg, bucket_name/path/to/subdirectory ) |
S3_UPLOADS_REGION |
Region of the S3 bucket. |
S3_UPLOADS_KEY |
S3 access key id. |
S3_UPLOADS_SECRET |
S3 access key secret. |
S3_UPLOADS_BUCKET_URL |
URL used for WordPress media URL's. |