craftcms / azure-blob
Craft CMS 的 Azure Blob 存储集成
2.1.0
2024-03-19 23:11 UTC
Requires
- php: ^8.0.2
- craftcms/cms: ^4.0.0-alpha.1|^5.0.0-beta.1
- craftcms/flysystem: ^1.0.0-beta.2|^2.0.0
- league/flysystem-azure-blob-storage: ^3.0.5
Requires (Dev)
- craftcms/ecs: dev-main
- craftcms/phpstan: dev-main
- craftcms/rector: dev-main
This package is auto-updated.
Last update: 2024-09-20 00:16:02 UTC
README
Azure Blob Storage for Craft CMS
此插件为 Azure Blob Storage 提供了 Craft CMS 的集成。
要求
此插件需要 Craft CMS 4.0.0+ 或 5.0.0+。
安装
您可以从插件商店或使用 Composer 安装此插件。
从插件商店
转到您项目控制面板中的插件商店,搜索“Azure Blob Storage”,然后在其模态窗口中点击“安装”按钮。
使用 Composer
打开您的终端并运行以下命令
# go to the project directory cd /path/to/my-project.test # tell Composer to load the plugin composer require craftcms/azure-blob # tell Craft to install the plugin ./craft install/plugin craftcms/azure-blob
设置
要为您的 Azure 容器创建一个新的资产卷,请转到“设置”→“资产”,创建一个新的卷,并将卷类型设置为“Azure Blob 存储”。
提示:连接字符串、基本 URL、容器和子文件夹设置可以设置为环境变量。有关更多信息,请参阅 Craft 文档中的环境配置。