nowzoo/wp-s3

Stores WordPress uploads on Amazon S3. Optionally allows you to use a Cloudfront distribution.

v0.3 2015-04-08 13:55 UTC

This package is not auto-updated.

Last update: 2024-05-11 15:56:38 UTC


README

Stores WordPress uploads in an Amazon S3 bucket. Optionally, enables the use of a Cloudfront distribution.

##Features

  • Works on both network and single WordPress installations. The bucket directly mirrors the wp-content/uploads directory.
  • Syncs files immediately on upload, edit and delete.
  • Can sync all a site's uploads at once -- useful if you are importing a site.

Installation

$ composer require nowzoo/wp-s3

Instantiate the admin panels by including this code somewhere (e.g in wp-content/mu-plugins/index.php):

<?php
NowZoo\WPS3\Plugin::inst();

Setup

  • You need an Amazon S3 account.
  • Create an S3 bucket for your WordPress installation. Networked installations only need one bucket.
  • Recommended: Create a dedicated IAM user for the bucket, and attach a policy to the bucket that allows that user to upload and delete objects. Instructions for bucket policies.
  • Enter the AWS user credentials, bucket name and, optionally, a Cloudfront distribution domain...
    • Network installs: /wp-admin/network/settings.php?page=nowzoo-aws-s3
    • Single installs: /wp-admin/settings.php?page=nowzoo-aws-s3