Skip to content

Commit d631dad

Browse files
author
junjie.miao
committed
update README.md
1 parent 0c0ea61 commit d631dad

1 file changed

Lines changed: 3 additions & 56 deletions

File tree

README.md

Lines changed: 3 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -101,64 +101,11 @@ Once this field is added, the Dify platform will allow the installation of all p
101101

102102

103103

104-
### Packaging offline package 打离线包
104+
### Dify Plugin Downloading and Repackaging Scripting Tool Dify插件下载并重打包脚本工具
105105

106-
Package Dify plugin [true] offline package (contains dependencies, no need to be connected to the Internet).
106+
Scripting tool for downloading Dify plugin package from Dify Marketplace and Github and repackaging [true] offline package (contains dependencies, no need to be connected to the Internet).
107107

108-
打包Dify插件【真】离线包(包含依赖,不需要再联网)。
109-
110-
111-
112-
113-
#### Dify Plugin Packaging offline package Dify插件打离线包
114-
115-
> ** Note: Here to * * [db_query](https://github.com/junjiem/dify-plugin-tools-dbquery/tree/main/db_query) plugin on CentOS use [Dify Plugin CLI](https://github.com/langgenius/dify-plugin-daemon/releases) to play offline package, for example.
116-
117-
> **注:**这里以 [db_query](https://github.com/junjiem/dify-plugin-tools-dbquery/tree/main/db_query) 插件在 CentOS 上使用 [Dify Plugin CLI](https://github.com/langgenius/dify-plugin-daemon/releases) 打离线包为例。
118-
119-
120-
121-
```shell
122-
cd ./db_query
123-
pip download -r requirements.txt -d ./wheels --index-url https://mirrors.aliyun.com/pypi/simple
124-
sed -i '1i\--no-index --find-links=./wheels/' requirements.txt
125-
sed -i '/^wheels\//d' .difyignore # 或直接删除.difyignore文件
126-
cd ..
127-
# dify-plugin-linux-amd64中对插件大小做了最大限制50M(且被写死了),所以我重新编译了dify-plugin-linux-amd64放大限制到500M
128-
dify-plugin-linux-amd64 plugin package ./db_query -o db_query-offline.difypkg # db_query-offline.difypkg 就是最后的(真)离线包
129-
```
130-
131-
!> **提示:** 在Windows或Mac上也可以执行`pip download --platform manylinux2014_x86_64 --only-binary=:all: -r requirements.txt -d ./wheels --index-url https://mirrors.aliyun.com/pypi/simple`
132-
133-
134-
**Dify Plugin CLI 放开最大限制处,如下图:**
135-
![dify_plugin_daemon_update](./images/dify_plugin_daemon_update.png)
136-
137-
138-
139-
#### Update Dify platform env Dify平台放开限制
140-
141-
- your .env configuration file: Change `FORCE_VERIFYING_SIGNATURE` to `false` , the Dify platform will allow the installation of all plugins that are not listed in the Dify Marketplace.
142-
143-
- your .env configuration file: Change `PLUGIN_MAX_PACKAGE_SIZE` to `524288000` , and the Dify platform will allow the installation of plug-ins within 500M.
144-
145-
- your .env configuration file: Change `NGINX_CLIENT_MAX_BODY_SIZE` to `500M` , and the Nginx client will allow uploading content up to 500M in size.
146-
147-
148-
149-
- 在 .env 配置文件将 `FORCE_VERIFYING_SIGNATURE` 改为 `false` ,Dify 平台将允许安装所有未在 Dify Marketplace 上架(审核)的插件。
150-
151-
- 在 .env 配置文件将 `PLUGIN_MAX_PACKAGE_SIZE` 增大为 `524288000`,Dify 平台将允许安装 500M 大小以内的插件。
152-
153-
- 在 .env 配置文件将 `NGINX_CLIENT_MAX_BODY_SIZE` 增大为 `500M`,Nginx客户端将允许上传 500M 大小以内的内容。
154-
155-
156-
157-
#### Dify Plugin Downloading and Repackaging Scripting Tool Dify插件下载并重打包脚本工具
158-
159-
Scripting tool for downloading Dify plugin package from Dify Marketplace and Github and repackaging [true] offline package.
160-
161-
从Dify市场和Github下载Dify插件包并重新打【真】离线包的脚本工具。
108+
从Dify市场和Github下载Dify插件包并重新打【真】离线包(包含依赖,不需要再联网)的脚本工具。
162109

163110
Github Repo: https://github.com/junjiem/dify-plugin-repackaging
164111

0 commit comments

Comments
 (0)