Linux 软件免费装
Banner图

GemOffload – Offload Media to Amazon S3, Cloudflare R2, Wasabi & B2 with CDN & Signed URLs

开发者 kodezen
tusharimran
更新时间 2026年11月20日 00:07
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-3.0+
版权网址: 版权信息

标签

cdn media library amazon s3 offload media cloudflare r2

下载

1.1.0

详情介绍:

GemOffload moves your WordPress media library and protected files to cloud object storage. Public files load from your CDN domain; private files (course videos, downloadable products, backups) open only through short-lived signed links created at the moment of the click. The admin is a fast, single-page app with a dashboard, a Files screen and a setup guide for each provider. Storage providers Offloading Security Academy LMS Detected automatically; can be switched off under Settings → Contexts. Self-hosted lesson videos and their subtitles, lesson attachments, assignment files and student submissions go to the private bucket. They open for anyone Academy lets into the lesson or assignment (enrolled, instructor, public course, preview lesson); submissions for the student and the course instructors. Course thumbnails and other images stay public. StoreEngine Detected automatically. Downloadable product files go to the private bucket. StoreEngine's download link still checks the order, permission, expiry and login, then sends the buyer to a signed link instead of reading the file from disk. A daily check (also wp gemoffload reconcile) keeps every product file in the right bucket. TruePlayer Detected automatically. Self-hosted videos, audio, posters and captions play from the cloud. A video set to "Private" in TruePlayer has its file and captions moved to the private bucket, and opens only for viewers TruePlayer lets play it, so a copied link doesn't work for anyone else. Database backups A compressed SQL copy of the site's tables, daily or weekly, kept 7 to 90 days, in the private bucket only. Large databases are written in 20-second slices in the background; the local file is deleted once the upload is verified. Download from the admin, restore through WP-CLI. For developers define( 'GEMOFFLOAD_PROVIDER', 'r2' ); // r2 | aws | custom define( 'GEMOFFLOAD_ACCOUNT_ID', '…' ); // R2 only define( 'GEMOFFLOAD_ACCESS_KEY_ID', '…' ); define( 'GEMOFFLOAD_SECRET_ACCESS_KEY', '…' ); define( 'GEMOFFLOAD_KEY', '…' ); // encryption key for stored secrets

安装:

  1. Upload the gemoffload folder to /wp-content/plugins/, or install through Plugins → Add New.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Open GemOffload → Settings → Connection, pick your provider and follow the setup guide.
  4. Run the connection test, then offload existing media from the Tools page.

常见问题:

Which storage services are supported?

Cloudflare R2, Amazon S3 and any S3-compatible service, such as Wasabi, Backblaze B2, DigitalOcean Spaces or MinIO.

Will my local files be deleted?

Not unless you choose to. By default every file keeps its local copy. If you turn on removing local files, a file is removed only after its upload is verified, and it is downloaded back whenever WordPress or another plugin needs it.

Do I need a private bucket?

Only for protected files (Academy lessons, StoreEngine downloads, private TruePlayer videos) and backups. Without one, those files stay on your server.

What happens if I deactivate GemOffload?

Use Tools → Download back first to bring every file back to the server. Files whose local copy was removed would otherwise point to the bucket URL only while GemOffload is active.

Can I keep my keys out of the database?

Yes. Define the GEMOFFLOAD_* constants in wp-config.php (see Description). Keys saved in the admin are encrypted with libsodium.

更新日志:

1.1.0 1.0.0