-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: mount config file of sandbox (#8576)
- Loading branch information
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
app: | ||
port: 8194 | ||
debug: True | ||
key: dify-sandbox | ||
max_workers: 4 | ||
max_requests: 50 | ||
worker_timeout: 5 | ||
python_path: /usr/local/bin/python3 | ||
enable_network: True # please make sure there is no network risk in your environment | ||
allowed_syscalls: # please leave it empty if you have no idea how seccomp works | ||
proxy: | ||
socks5: '' | ||
http: '' | ||
https: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
app: | ||
port: 8194 | ||
debug: True | ||
key: dify-sandbox | ||
max_workers: 4 | ||
max_requests: 50 | ||
worker_timeout: 5 | ||
python_path: /usr/local/bin/python3 | ||
python_lib_path: | ||
- /usr/local/lib/python3.10 | ||
- /usr/lib/python3.10 | ||
- /usr/lib/python3 | ||
- /usr/lib/x86_64-linux-gnu | ||
- /etc/ssl/certs/ca-certificates.crt | ||
- /etc/nsswitch.conf | ||
- /etc/hosts | ||
- /etc/resolv.conf | ||
- /run/systemd/resolve/stub-resolv.conf | ||
- /run/resolvconf/resolv.conf | ||
- /etc/localtime | ||
- /usr/share/zoneinfo | ||
- /etc/timezone | ||
# add more paths if needed | ||
python_pip_mirror_url: https://pypi.tuna.tsinghua.edu.cn/simple | ||
nodejs_path: /usr/local/bin/node | ||
enable_network: True | ||
allowed_syscalls: | ||
- 1 | ||
- 2 | ||
- 3 | ||
# add all the syscalls which you require | ||
proxy: | ||
socks5: '' | ||
http: '' | ||
https: '' |