Download the PHP package servd/craft-remote-assets without Composer
On this page you can find all versions of the php package servd/craft-remote-assets. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download servd/craft-remote-assets
More information about servd/craft-remote-assets
Files in servd/craft-remote-assets
Package craft-remote-assets
Short Description Move CP assets to an external filesystem such as S3
License MIT
Informations about the package craft-remote-assets
Craft Remote Assets plugin for Craft CMS 3.x
Move CP assets to an external filesystem such as S3
Props to yii-cdn-asset-management-library
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require servd/craft-remote-assets
- In the Control Panel, go to Settings → Plugins and click the “Install” button for Craft Remote Assets.
Craft Remote Assets Overview
In a load balanced environment with multiple PHP servers you can't serve Yii bundles or thumbnails from the local file system. This plugin publishes CP bundles and asset thumbnails to S3 instead. Tested in a multi-PHP, single nginx K8s cluster with no volume mounts.
Configuring Craft Remote Assets
Create a file at config/craft-remote-assets.php
which looks like this:
Your S3 API key will need to be linked to an IAM user with bucket read and write permissions.
Your Google Cloud cred sfile will need to belong to a service worker with read and write access to the bucket
Using Craft Remote Assets
Install it. You're done.
Brought to you by Servd
All versions of craft-remote-assets with dependencies
aws/aws-sdk-php Version ^3.61.0
google/cloud-storage Version ^1.3.0