symbiote/silverstripe-cdncontent
Composer 安装命令:
composer require symbiote/silverstripe-cdncontent
包简介
A module that uses the content-services module for mapping Files and/or theme content from the CMS to compatible CDNs.
README 文档
README
A module that allows the assets for a theme to be stored on a CDN
Overview
Provides a few CDN related pieces of functionality
- Store assets from Files & Images in a specified CDN
- Store theme related assets in a configured CDN
Requirements
- Content Services module https://github.com/nyeholt/silverstripe-content-services/
- Patches to the framework folder - see the framework.patch file
Installation
- Add the following extensions
File: extensions: - CDNFile Folder: extensions: - CDNFolder # If using the Versioned Files module FileVersion: extensions: - CDNFile
- Configure the locations for storing content items
ContentService:
constructor:
defaultStore: S3DevBucket
properties:
stores:
FileCDN:
ContentReader: FileContentReader
ContentWriter: FileContentWriter
Note: In this case, ContentReader and ContentWriter should be the names of other
items configured in the injector - the default contentservices.yml defines the above ones as
---
Name: contentservices
---
Injector:
FileContentReader:
type: prototype
properties:
basePath: mycontent
FileContentWriter:
type: prototype
properties:
basePath: mycontent
统计信息
- 总下载量: 3.25k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-06-30