mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-16 01:09:01 +08:00
aaa7d17ef1
* feat: encapsulate logger (#6535) * feat: encapsulate logger * update engines --------- Co-authored-by: archer <545436317@qq.com> * next config * dev shell * Agent sandbox (#6532) * docs: switch to docs layout and apply black theme (#6533) * feat: add Gemini 3.1 models - Add gemini-3.1-pro-preview (released February 19, 2026) - Add gemini-3.1-flash-lite-preview (released March 3, 2026) Both models support: - 1M context window - 64k max response - Vision - Tool choice * docs: switch to docs layout and apply black theme - Change layout from notebook to docs - Update logo to icon + text format - Apply fumadocs black theme - Simplify global.css (keep only navbar and TOC styles) - Fix icon components to properly accept className props - Add mobile text overflow handling - Update Node engine requirement to >=20.x * doc * doc * lock * fix: ts * doc * doc --------- Co-authored-by: archer <archer@archerdeMac-mini.local> Co-authored-by: archer <545436317@qq.com> * Doc (#6493) * cloud doc * doc refactor * doc move * seo * remove doc * yml * doc * fix: tsconfig * fix: tsconfig * sandbox version (#6497) * sandbox version * add sandbox log * update lock * fix * fix: sandbox * doc * add console * i18n * sandbxo in agent * feat: agent sandbox * lock * feat: sandbox ui * sandbox check exists * env tempalte * doc * lock * sandbox in chat window * sandbox entry * fix: test * rename var * sandbox config tip * update sandbox lifecircle * update prompt * rename provider test * sandbox logger * yml --------- Co-authored-by: Archer <archer@fastgpt.io> Co-authored-by: archer <archer@archerdeMac-mini.local> * perf: sandbox error tip * Add sandbox limit and fix some issue (#6550) * sandbox in plan * fix: some issue * fix: test * editor default path * fix: comment * perf: sandbox worksapce * doc * perf: del sandbox * sandbox build * fix: test * fix: pr comment --------- Co-authored-by: Ryo <whoeverimf5@gmail.com> Co-authored-by: Archer <archer@fastgpt.io> Co-authored-by: archer <archer@archerdeMac-mini.local>
45 lines
1.8 KiB
Bash
45 lines
1.8 KiB
Bash
# ===== Server =====
|
|
# Port the sandbox server listens on
|
|
SANDBOX_PORT=3000
|
|
# Auth token for API requests (empty = no auth)
|
|
SANDBOX_TOKEN=
|
|
|
|
# ===== Logger =====
|
|
# 日志等级: trace | debug | info | warning | error | fatal
|
|
LOG_ENABLE_CONSOLE=true
|
|
LOG_CONSOLE_LEVEL=info
|
|
LOG_ENABLE_OTEL=false
|
|
LOG_OTEL_LEVEL=info
|
|
LOG_OTEL_SERVICE_NAME=fastgpt-client
|
|
LOG_OTEL_URL=http://localhost:4318/v1/logs
|
|
|
|
# ===== Resource Limits =====
|
|
# Execution timeout per request (ms)
|
|
SANDBOX_MAX_TIMEOUT=60000
|
|
# Maximum allowed memory per user code execution (MB)
|
|
# Note: System automatically adds 50MB for runtime overhead
|
|
# Actual process limit = SANDBOX_MAX_MEMORY_MB + 50MB
|
|
SANDBOX_MAX_MEMORY_MB=256
|
|
|
|
# ===== Process Pool =====
|
|
# Number of pre-warmed worker processes (JS + Python)
|
|
SANDBOX_POOL_SIZE=20
|
|
|
|
# ===== Network Request Limits =====
|
|
# Whether to check if the request is to a private network
|
|
CHECK_INTERNAL_IP=false
|
|
# Maximum number of HTTP requests per execution
|
|
SANDBOX_REQUEST_MAX_COUNT=30
|
|
# Timeout for each outbound HTTP request (ms)
|
|
SANDBOX_REQUEST_TIMEOUT=60000
|
|
# Maximum response body size for outbound requests
|
|
SANDBOX_REQUEST_MAX_RESPONSE_MB=10
|
|
# Maximum request body size for outbound requests (MB)
|
|
SANDBOX_REQUEST_MAX_BODY_MB=5
|
|
|
|
# ===== Module Control =====
|
|
# JS allowed modules whitelist (comma-separated)
|
|
SANDBOX_JS_ALLOWED_MODULES=lodash,dayjs,moment,uuid,crypto-js,qs,url,querystring
|
|
# Python allowed modules whitelist (comma-separated)
|
|
SANDBOX_PYTHON_ALLOWED_MODULES=math,cmath,decimal,fractions,random,statistics,collections,array,heapq,bisect,queue,copy,itertools,functools,operator,string,re,difflib,textwrap,unicodedata,codecs,datetime,time,calendar,_strptime,json,csv,base64,binascii,struct,hashlib,hmac,secrets,uuid,typing,abc,enum,dataclasses,contextlib,pprint,weakref,numpy,pandas,matplotlib
|