Imager X Storage Driver for FortRabbit icon

Imager X Storage Driver for FortRabbit

Requirements

This plugin requires Craft CMS 3.3.0 or later, and Imager X 3.0 or later. External storages are only available in the Pro edition of Imager.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require RedEyeDevelopment/imager-x-storage-driver-for-fort-rabbit
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Imager X Storage Driver for FortRabbit.

Configuration

Configure the storage driver by adding new key named fortrabbit to the storagesConfig config setting in your imager-x.php config file, with the following configuration:

'storageConfig' => [
    'fortrabbit' => [
        'endpoint' => '',
        'accessKey' => '',
        'secretAccessKey' => '',
        'region' => '',
        'bucket' => '',
        'folder' => '',
        'requestHeaders' => array(),
    ]
],

Enable the storage driver by adding the key fortrabbit to Imager's storages config setting:

'storages' => ['fortrabbit'],

Here's an example config, note that the endpoint has to be a complete URL with scheme, and as always you need to make sure that imagerUrl is pointed to the right location:

'imagerUrl' => 'https://SUBDOMAIN.objects.frb.io/transforms/',
'storages' => ['fortrabbit'],
'storageConfig' => [
    'fortrabbit' => [
        'endpoint' => 'https://objects.us1.frbit.com',
        'accessKey' => 'MYACCESSKEY',
        'secretAccessKey' => 'MYSECRETKEY',
        'region' => 'us-east-1',
        'bucket' => 'MYBUCKET',
        'folder' => 'transforms',
        'requestHeaders' => array(),
    ]
],

Also remember to always empty your Imager transforms cache when adding or removing external storages, as the transforms won't be uploaded if the transform already exists in the cache.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Active Installs
1
Version
1.0.1
License
MIT
Compatibility
Craft 3
Last release
June 10, 2021
Categories
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs