Skip to content

Commit 08d8d4c

Browse files
authored
feat: add recommend config section (#695)
* feat: add recommend config section * chore: update me
1 parent e1cb3cf commit 08d8d4c

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,3 +228,6 @@ PLUGIN_INSTALL_TIMEOUT=15
228228
DIFY_BACKWARDS_INVOCATION_WRITE_TIMEOUT=5000
229229
# dify backwards invocation read timeout in milliseconds
230230
DIFY_BACKWARDS_INVOCATION_READ_TIMEOUT=240000
231+
PLUGIN_IGNORE_UV_LOCK=false
232+
PIP_MIRROR_URL=
233+
PYTHON_COMPILE_ALL_EXTRA_ARGS=

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,22 @@ For developers working on this codebase, see our comprehensive development docum
117117

118118
- **[SRI Docs](docs/runtime/sri.md)** - Serverless Runtime Interface documentation
119119

120+
121+
## Recommend env config
122+
123+
```shell
124+
PYTHON_COMPILE_ALL_EXTRA_ARGS="-x \.venv"
125+
```
126+
127+
Using PYTHON_COMPILE_ALL_EXTRA_ARGS="-x \.venv" prevents compileall from compiling files within the virtual environment, which reduces CPU usage during plugin initialization.
128+
129+
```shell
130+
PLUGIN_IGNORE_UV_LOCK=true
131+
PIP_MIRROR_URL=https://mirrors.aliyun.com/pypi/simple/
132+
```
133+
134+
Setting PLUGIN_IGNORE_UV_LOCK=true allows uv to ignore the uv.lock file and use the configured PyPI mirror for dependency resolution.
135+
120136
## Benchmark
121137

122138
Refer to [Benchmark](https://langgenius.github.io/dify-plugin-daemon/benchmark-data/)

0 commit comments

Comments
 (0)