- 新增Docker沙箱执行环境,提供安全隔离的代码执行能力 - 重构code_py插件,使用Docker容器替代子进程执行 - 添加docker配置项和权限检查功能 - 实现代码执行队列和并发控制 - 新增广播插件,仅限管理员使用
27 lines
619 B
TOML
27 lines
619 B
TOML
[napcat_ws]
|
|
uri = "ws://114.66.58.203:3001"
|
|
token = "&d_VTfksE%}ul?_Y"
|
|
reconnect_interval = 5
|
|
|
|
[bot]
|
|
command = ["/"]
|
|
ignore_self_message = true #是否忽略自身消息
|
|
|
|
[redis]
|
|
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"
|
|
|
|
|