承接 jrrdnx/craft-cloudflare-r2 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jrrdnx/craft-cloudflare-r2

最新稳定版本:1.1.1

Composer 安装命令:

composer require jrrdnx/craft-cloudflare-r2

包简介

Cloudflare R2 integration for Craft CMS

README 文档

README

Cloudflare R2 filesystem for Craft CMS

Requirements

This plugin requires Craft CMS ^4.0.0-beta.1 and PHP ^8.0.2

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require jrrdnx/craft-cloudflare-r2
    
  3. Navigate to Settings -> Plugins and click the "Install" button for Cloudflare R2.

Configuring filesystem

  1. Navigate to Settings -> Filesystems and click the "New Filesystem" button.
  2. Select "Cloudflare R2" from the "Filesystem Type" dropdown.
  3. Enter your Account ID, Access Key ID, and Secret Access Key (it's recommended to store these in your .env file and reference the environment variables here).
  4. Hit Refresh to load the bucket list, or choose the Manual option and enter the bucket name (again, you can store this in your .env file and reference the environment variable).
  5. Optionally add a Subfolder, determine whether or not to add the Subfolder to the Base URL, and set the Cache Control duration.

Making objects public (optional)

See Create Public Buckets on R2 for details on adding a custom domain or managing public buckets through r2.dev, or Use R2 from Workers for more fine-tuned access control. Also feel free to reference a full guide to Configuring a Cloudflare R2 Bucket and Worker for Public Access.

Misc

Open an Issue

Brought to you by Jarrod D Nix

统计信息

  • 总下载量: 4.03k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-14