mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-05-05 05:51:44 +00:00
opt.: js rt pool & perf
This commit is contained in:
19
.env.example
19
.env.example
@@ -74,11 +74,16 @@
|
||||
# 如果是主节点则为master
|
||||
# NODE_TYPE=master
|
||||
|
||||
# JavaScript 运行时配置
|
||||
# 是否启用(默认:true)
|
||||
# JS_RUNTIME_ENABLED=true
|
||||
# 脚本文件夹(可选,默认 scripts/)
|
||||
# JS_SCRIPTS_DIR=./custom_scripts
|
||||
# 启用调试日志(可选)
|
||||
# JS_RUNTIME_DEBUG=true
|
||||
|
||||
# JavaScript 运行时配置
|
||||
# 是否启用(默认:false)
|
||||
# JS_RUNTIME_ENABLED=true
|
||||
# 最大虚拟机数量(默认:8)
|
||||
# JS_MAX_VM_COUNT=
|
||||
# 运行超时时间(单位:秒,默认:5)
|
||||
# JS_SCRIPT_TIMEOUT=
|
||||
# 预处理脚本路径(默认:scripts/pre_process.js)
|
||||
# JS_PREPROCESS_SCRIPT_PATH=
|
||||
# 后处理脚本路径(默认:scripts/post_process.js)
|
||||
# JS_POSTPROCESS_SCRIPT_PATH=
|
||||
|
||||
|
||||
Reference in New Issue
Block a user