[wordpress插件] DigitalOcean Spaces SyncDigitalOcean Spaces同步

wordpress 插件 文章 2020-04-20 14:30 476 0 全屏看文

AI助手支持GPT4.0

评分
96
描述

DigitalOcean Spaces Sync plugin connects your Media Library to a container in DigitalOcean Spaces.

DigitalOcean Spaces同步插件将您的媒体库连接到DigitalOcean Spaces中的容器。

It syncs data from your website to cloud storage

它将数据从您的网站同步到云存储

and replaces links to images (optional).

并替换图像的链接(可选)。

You may keep the media locally (on your server) and make backup copy to cloud storage, or just serve it all

您可以将媒体保留在本地(在服务器上),然后将备份副本复制到云存储中,或者仅将其全部提供

from DigitalOcean Spaces.

来自DigitalOcean Spaces。

In order to use this plugin, you have to create a DigitalOcean Spaces API key.

要使用此插件,您必须创建DigitalOcean Spaces API密钥。

You may now define constants in order to configure the plugin.

您现在可以定义常量以配置插件。

If the constant is defined, it overwrites the value from settings page.

如果定义了常量,它将覆盖设置页面中的值。

Contants description:

内容描述:

– DOS_KEY – DigitalOcean Spaces key

– DOS_KEY – DigitalOcean Spaces键

– DOS_SECRET – DigitalOcean Spaces secret,

– DOS_SECRET – DigitalOcean Spaces机密,

– DOS_ENDPOINT – DigitalOcean Spaces endpoint,

– DOS_ENDPOINT – DigitalOcean Spaces端点,

– DOS_CONTAINER – DigitalOcean Spaces container,

– DOS_CONTAINER – DigitalOcean Spaces容器,

– DOS_STORAGE_PATH – The path to the file in the storage, will appear as a prefix,

– DOS_STORAGE_PATH –存储中文件的路径将显示为前缀,

– DOS_STORAGE_FILE_ONLY – Keep files only in DigitalOcean Spaces or not, values (true|false),

– DOS_STORAGE_FILE_ONLY –是否仅在DigitalOcean Spaces中保留文件,值(true | false),

– DOS_STORAGE_FILE_DELETE – Remove files in DigitalOcean Spaces on delete or not, values (true|false),

– DOS_STORAGE_FILE_DELETE –删除是否删除DigitalOcean Spaces中的文件,值(true | false),

– DOS_FILTER – A Regex filter,

– DOS_FILTER –正则表达式过滤器,

– UPLOAD_URL_PATH – A full url to the files, WP Constant,

– UPLOAD_URL_PATH –文件的完整URL,WP Constant,

– UPLOAD_PATH – A path to the local files, WP Constant

– UPLOAD_PATH –本地文件的路径,WP常量

There is a known issue with the built in WordPress Image Editor, it will not upload changed images.

内置的WordPress图像编辑器存在一个已知问题,它不会上传更改的图像。

Know how to fix this, PR welcome.

知道如何解决此问题,欢迎PR。

安装步骤

    1. Upload the plugin files to the /wp-content/plugins/do-spaces-sync directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / do-spaces-sync 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ screen in WordPress
    4. 通过WordPress中的“插件”屏幕激活插件

    5. Use the Settings->DigitalOcean Spaces Sync screen to configure the plugin
    6. 使用“设置”->“ DigitalOcean Spaces同步”屏幕来配置插件

    7. Create a DigitalOcean Spaces API key and container
    8. 创建DigitalOcean Spaces API密钥和容器

下载地址
https://downloads.wordpress.org/plugin/do-spaces-sync.zip
-EOF-

AI助手支持GPT4.0