myenso/module-azure-blob-storage

Azure 存储适配器,适用于 Magento 2

1.0.0 2024-07-18 20:12 UTC

This package is auto-updated.

Last update: 2024-09-18 20:44:03 UTC


README

此软件包提供了一种简单的方法,将 Azure Blob Storage 作为 Magento 2 应用程序的远程存储使用。在 composer.json 中也支持由 "magestyapps/module-web-images" 提供的 svg 图像。

将此添加到您的 env.php 文件中,并根据需要配置

'remote_storage' => [
    'driver' => 'azure-blob-storage',
    'config' => [
        'account_name' => 'devstoreaccount1',
        'account_key' => 'Eby8vdM02xNOcqFe6SuKF4rPcU31qVbVSveG+8n8uBL2AZuZ4nSPZo98YwHst9JdXN3H3G8HC1E0T1G6+UD7Lw==',
        'blob_container' => 'category-images',
        'endpoint' => 'http://10.192.19.58:10000/devstoreaccount1/'
    ]
],

对于本地测试,您可以使用

  • Azure 存储模拟器。您可以从 此处 下载。
  • Azurite。您可以从 ./docker/azurite/docker-compose.yml 文件启动它。