smarcet/silverstripe-cloudassets-swift
Composer 安装命令:
composer require smarcet/silverstripe-cloudassets-swift
包简介
Swift CloudFiles bucket driver for markguinn/silverstripe-cloudassets
README 文档
README
Swift CloudFiles Driver
CloudAssets module allows you to host all or part of the assets folder on a cloud storage container (CDN). You can find more details about how it works here: https://github.com/markguinn/silverstripe-cloudassets
This driver gives you the bucket type SwiftBucket for connecting to CloudFiles.
This module can happily co-exist with other bucket driver modules (which don't exist at the time of this writing).
Requirements
- Silverstripe 3.1+
- Cloud Assets module
- php-opencloud/openstack
Best way to install by far is composer require smarcet/silverstripe-cloudassets-swift.
Example
Assuming you have a CloudFiles container called site-uploads:
mysite/_config/cloudassets.yml:
--- name: assetsconfig --- CloudAssets: map: 'assets': Type: SwiftBucket BaseURL: 'http://yourcdnbaseurl.com/' Container: site-uploads Region: Region Name Username: yourlogin UserDomainId: user domain id (default) ApiKey: yourkey ProjectName: your project name AuthURL: keystone base url ProjectDomainId: project domain id (default) LocalCopy: false
OR using application credentials
--- name: assetsconfig --- CloudAssets: map: 'assets': Type: SwiftBucket BaseURL: 'http://yourcdnbaseurl.com/' Container: site-uploads Region: Region Name ApplicationCredentialId: application credential id ApplicationCredentialSecret: application credential secret ProjectName: your project name AuthURL: keystone base url LocalCopy: false
统计信息
- 总下载量: 132
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-12