**THIS EXTENSION IS NOT MAINTAINED ANYMORE** - Magento CDN module that allows hosting all media on AWS S3. A must when you need to scale Magento horizontally.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Update mysql4-install-0.2.0.php Aug 15, 2014
lib Namespace autoloader Aug 13, 2014
LICENSE initial commit Jan 7, 2014
README.md Added deleteFolder method to storage May 26, 2014

README.md

MageFM CDN

This is a Magento CDN module, built to use when you need scale multiple Magento instances horizontally, avoinding the need of tools like s3fs, rsync, etc to keep the media folder in-sync on every instance.

Features

  • Store product images on CDN;
  • Store merged CSS and Javascript files on CDN;
  • Upload product images directly to CDN;

Supported storages

  • Amazon Simple Storage Service

Installation

  1. Copy all files to the Magento directory;
  2. Clean your cache;
  3. Configure your Amazon S3 credentials at System > Configuration > MageFM > CDN;
  4. Configure your Base Media URL at System > Configuration > General > Web;

Configuring IAM

It is recommended to create a specific IAM userfor handling files on S3. To avoid permission problems, use the following policy:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "Stmt1393288415000",
      "Effect": "Allow",
      "Action": [
        "s3:DeleteObject",
        "s3:GetObject",
        "s3:GetObjectAcl",
        "s3:PutObject",
        "s3:PutObjectAcl",
        "s3:ListBucket"
      ],
      "Resource": [
        "arn:aws:s3:::bucket-name",
        "arn:aws:s3:::bucket-name/*"
      ]
    }
  ]
}

Don't forget to change the bucket-name.