Skip to content
This repository has been archived by the owner on Dec 17, 2019. It is now read-only.

Craft 2 plugin to support the fortrabbit Object Storage

License

Notifications You must be signed in to change notification settings

fortrabbit/craft-s3-fortrabbit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Craft Plugin for the fortrabbit Object Storage

Plugin changes the default API endpoint of Craft's S3-AssetSource.

Requirements

This plugin requires Craft CMS 2. There is another NEWER plugin to provide this for the Craft 3 over here.

Quickstart

  1. Copy the fortrabbitobjectstorage/ folder to your craft/plugins/ folder.
  2. Go to Settings > Plugins from your Craft control panel and install the "Support for fortrabbit Object Storage" plugin.
  3. Go to Settings > Assets and click the "New asset source" button.
  4. Select a Amazon S3
  5. Enter your Access Key ID (KEY) and Secret Access Key (SECRET)
  6. Hit Refesh to get the bucket
  7. Save

Credentials

Use this SSH command to get the Object Storage credentials for your App:

Schema: ssh git@deploy.{region}.frbit.com secrets {your-app} object_storage

EU: ssh [email protected] secrets {your-app} object_storage

US: ssh [email protected] secrets {your-app} object_storage

API Endpoint

Per default the plugin uses the API endpoint of fortrabbit's EU region. If your App runs in the US region, copy fortrabbitobjectstorage/config.php to craft/config/fortrabbitobjectstorage.php and change the endpoint.

Hack Craft

Unfortunately with resource requests no plugin get's loaded. This means the modified S3 client we provide is not used in any case. Here is a way to fix it:

Include our modified S3 client very early, e.g. at the top in your config/general.php, like so require_once('../craft/plugins/fortrabbitobjectstorage/S3.php');

About

Craft 2 plugin to support the fortrabbit Object Storage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages