定制 swarnat/wp-s3-offload 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

swarnat/wp-s3-offload

最新稳定版本:v1.2.5

Composer 安装命令:

composer require swarnat/wp-s3-offload

包简介

Tool for Offloading Media to a custom S3 Storage

关键字:

README 文档

README

⚠️ This currently is a WIP and not for production usage

This plugin provide functions to upload media directly or delayed to a s3 storage and replace the media URL with url from s3 storage.
The main purpose is the automated deployment in Kubernetes/OpenShift of Docker environments, where a stateless system is helpfull.

Setup

composer require swarnat/wp-s3-offload

This Plugin don't use any configuration UI, because it is used for automated deployment. You need to configure the following configuration variables in wp-config.php

// your access key
define('WPS3_KEY', '123...abc');
// your secret key to access bucket
define('WPS3_SECRET', '123...abc');

// name of the bucket, you want to connect to
define('WPS3_BUCKET', 'bucketname');
// region of bucket
define('WPS3_REGION', 'de-de');
// The folder within bucket to store files into
define('WPS3_FOLDER', '/');
// Should S3 access use pathstyle urls
define('WPS3_PATHSTYLE', true);

// URL to access the uploaded assets
define('WPS3_URL_PREFIX', 'https://s3.company.com/bucketname/');
// Define a custom URL endpoint
define('WPS3_ENDPOINT', 'https://s3.company.com');

Changelog

See CHANGELOG.md

ROADMAP

What is planned for next versions:

  • automate upload of existing media
  • testing

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2023-07-15