mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Feat: sandox enhancement (#7739)
### What problem does this PR solve? 1. Add sandbox options for max memory and timeout. 2. Malicious code detection for Python only. ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
committed by
Yingfeng Zhang
parent
0d7cfce6e1
commit
7cb8368e0f
@ -169,6 +169,8 @@ REGISTER_ENABLED=1
|
||||
# SANDBOX_BASE_NODEJS_IMAGE=infiniflow/sandbox-base-nodejs:latest
|
||||
# SANDBOX_EXECUTOR_MANAGER_PORT=9385
|
||||
# SANDBOX_ENABLE_SECCOMP=false
|
||||
# SANDBOX_MAX_MEMORY=256m # b, k, m, g
|
||||
# SANDBOX_TIMEOUT=10s # s, m, 1m30s
|
||||
|
||||
# Important: To enable sandbox, you must re-declare the compose profiles.
|
||||
# 1. Comment out the COMPOSE_PROFILES line above.
|
||||
|
||||
Reference in New Issue
Block a user