Provides plugin to integrate Azure Blob Storage with Flysystem module.
Requirements
Requires the Flysystem module:
https://www.drupal.org/project/flysystem
and the league/flysystem-azure-blob-storage library:
https://github.com/thephpleague/flysystem-azure-blob-storage
Requires an Azure Blob Storage account.
Install
Install can be done through composer, as dependencies are required:
composer require drupal/flysystem_az_blob
Configuration
You can get all the configuration variables you need from Azure:
- Goto storage account you want to use and then Settings -> Access keys
- Click the show keys button
Make a note of the following:
- DefaultEndpointsProtocol
- AccountName
- AccountKey
- EndpointSuffix
- Container Name (Blob service -> Containers in the storage account)
When you have these, add the below to your web/sites/default/settings.php file:
$schemes = [
'az_blob' => [
'driver' => 'azure_blob_storage',
'config' => [
'name' => '<your account name>',
'key' => '<your account key>',
'container' => '<your container name>',
'prefix' => '<your prefix>',
'endpointSuffix' => '<your endpoint suffix>',
'protocol' => 'https',
],
'cache' => TRUE,
#'serve_js' => TRUE,
#'serve_css' => TRUE,
],
];
$settings['flysystem'] = $schemes;
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Flysystem ecosystem
Most installed first
Activity
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 1.x-dev | Dev | Mar 15, 2023 |