Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.53 KB

README.md

File metadata and controls

57 lines (40 loc) · 1.53 KB

Flarum Azure Storage

License Latest Stable Version Total Downloads

A Flarum extension. Azure Filesystem Extender for Flarum.

This is a proof of concept extension for flarum/framework#2732. It does not contain proper features needed for a driver like this, such as caching. It should NOT be used in production!!!!

Installation

Install with composer:

composer require askvortsov/flarum-azure:"*"

Configuration

Set up a blob storage container via the azure portal.

Add the following to your config.php:

'azure-config' => 
  array (
    'DISK_NAME' =>
    array (
      'accountName' => '...',
      'accountKey' => '...',
      'containerName' => '...'
    )
  )

Add the following row to your settings table:

key: 'disk_driver.DISK_NAME'
value: 'azure'

Flarum's default disk names are flarum-assets and flarum-avatars. I recommend testing with flarum-assets.

Updating

composer update askvortsov/flarum-azure:"*"
php flarum migrate
php flarum cache:clear

Links