Linux 软件免费装

R2 Cloud Storage

开发者 jhomoura
更新时间 2026年4月26日 08:47
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

media s3 cloudflare offload r2

下载

1.0.0

详情介绍:

R2 Cloud Storage offloads your WordPress Media Library to Cloudflare R2 — an S3-compatible object storage with zero egress fees. Why Cloudflare R2? Core Features (Free) Modular Add-on System Extend R2 Cloud Storage with platform-specific add-ons: Developer Friendly ```php // Register your own add-on add_action( 'r2cs_register_addon', function( $manager ) { $manager->register( 'my-addon', '1.0.0', 'My_Addon_Class' ); }); // Generate signed URLs $url = r2cs()->signed_url()->generate( 'path/to/file.pdf', 3600 ); // Upload files programmatically $result = r2cs()->client()->upload_file( '/local/path.pdf', 'remote/path.pdf' ); ```

安装:

  1. Upload the plugin to /wp-content/plugins/r2-cloud-storage/
  2. Activate through the Plugins menu
  3. Go to R2 Storage → Settings
  4. Enter your Cloudflare R2 credentials (Account ID, Access Key, Secret Key, Bucket)
  5. Click "Test Connection" to verify
  6. Enable automatic offload
Getting R2 Credentials
  1. Log in to Cloudflare Dashboard
  2. Navigate to R2 Object Storage
  3. Copy your Account ID from the sidebar
  4. Go to Manage R2 API Tokens → Create API Token
  5. Copy the Access Key ID and Secret Access Key
  6. Create a bucket if you haven't already

升级注意事项:

1.0.0 Initial release.

常见问题:

Does this work with existing media?

Yes! Use the Sync tool to migrate all existing media to R2.

Will my images break if I deactivate the plugin?

If you chose "Remove local copies", the local files are deleted. Keep backups. If local copies exist, WordPress will serve them normally when the plugin is deactivated.

Can I use a custom domain?

Yes. Set up a Custom Domain in Cloudflare R2 and enter it in the settings.

Is this compatible with multisite?

Yes. Network-activate the plugin and each site can have its own settings.

更新日志:

1.0.0