mwikala / linode-s3
此插件为Craft CMS提供了Linode对象存储集成
2.0.1
2022-08-14 17:27 UTC
Requires
- php: ^8.0
- craftcms/cms: ^4.0.0-beta.4
- craftcms/flysystem: ^1.0.0-beta.2
- league/flysystem-aws-s3-v3: ^3.0.0
Requires (Dev)
- craftcms/rector: dev-main
README
为Craft CMS提供的Linode对象存储
此插件为Linode对象存储提供了Craft CMS的集成。
要求
此插件需要Craft CMS 3.1.0或更高版本。
安装
您可以从插件商店或使用Composer安装此插件。
从插件商店
转到项目的控制面板中的插件商店,搜索“Linode对象存储”。然后在弹出的模态窗口中点击“安装”按钮。
使用Composer
打开终端并运行以下命令
# go to the project directory cd /path/to/my-project.test # tell Composer to load the plugin composer require mwikala/linode-s3 # tell Craft to install the plugin ./craft install/plugin linode-s3
设置
要为您的Amazon S3存储桶创建一个新的资产文件系统,请转到设置→文件系统,创建一个新的文件系统,并将文件系统类型设置为“Linode S3”。
环境变量
为了允许您为不同的环境设置不同的存储桶,您可以在.env
和.env.example
中设置这些方便的环境变量(这样在推送到源代码控制后就不会忘记它们了)
# The Linode Object Storage Access Key with read/write access to Buckets LINODE_S3_ACCESS_KEY= # The Linode Object Storage Access Secret LINODE_S3_SECRET= # THE URL endpoint for your Buckets LINODE_S3_ENDPOINT= # The region your Object Storage bucket is in LINODE_S3_REGION= # The name of your bucket LINODE_S3_BUCKET= # The URL of the bucket LINODE_S3_BUCKET_URL=
许可证和支持
此插件遵循MIT许可证,这意味着您可以随意使用它。
如果您在使用插件时遇到任何问题,请在此处创建一个问题,我会尽量在有空时修复或回答。