feat: 添加Docker沙箱代码执行功能
- 新增Docker沙箱执行环境,提供安全隔离的代码执行能力 - 重构code_py插件,使用Docker容器替代子进程执行 - 添加docker配置项和权限检查功能 - 实现代码执行队列和并发控制 - 新增广播插件,仅限管理员使用
This commit is contained in:
12
config.toml
12
config.toml
@@ -12,3 +12,15 @@ host = "114.66.58.203"
|
||||
port = 1931
|
||||
db = 0
|
||||
password = "redis_5dxyJG"
|
||||
|
||||
[docker]
|
||||
base_url = "tcp://dockertest.k2cro4.my:2375"
|
||||
sandbox_image = "python-sandbox:latest"
|
||||
timeout = 10
|
||||
concurrency_limit = 5
|
||||
tls_verify = true
|
||||
ca_cert_path = "c:/Users/镀铬酸钾/Documents/NeoBot/ca/ca.crt"
|
||||
client_cert_path = "c:/Users/镀铬酸钾/Documents/NeoBot/ca/client-cert.pem"
|
||||
client_key_path = "c:/Users/镀铬酸钾/Documents/NeoBot/ca/client-key.pem"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user