Technical referenceOfficial documentation11 min readreference-data

FastGPT Environment Variable Changes: v4.16.2 to v4.17.2

This page compares the official environment variable reference of FastGPT v4.16.2 and v4.17.2 line by line.

This page compares the official environment variable reference of FastGPT v4.16.2 and v4.17.2 line by line. It lists variables that were added, removed or given a new default, and checks each one against the 12 env.ts definition files in the v4.17.2 open-source repository.

ChangeCount
Added5
Removed2
New default4
Updated description4

Added variables (5)

VariableGroupDefaultDescriptionSource check
DEFAULT_TEAM_BASIC_PERMISSIONS_ENABLEDFeature Flags and LimitsfalseWhether newly created teams grant their default all-members group permission to create Apps, Skills, and Datasets. Does not change existing teams. Configure consistently in FastGPT and Pro Admin.Matches
DISABLE_MARKETPLACEAdditional App VariablesfalseHides the plugin marketplace installation entry when true; local file installation remains available.Matches
FILE_URL_EXPIRED_DAYSDomains, Frontend, and Runtime90Lifetime in days of file access short links persisted in chat records. Fractions are allowed.Matches
SYSTEM_MIGRATION_BATCH_SIZEFeature Flags and Limits100Number of records processed per system migration batch. Valid range: 50–1000.Matches
SYSTEM_MIGRATION_DELAY_SECONDSFeature Flags and Limits0Delay before executing system migration tasks configured with delay, in seconds. Default is 0 (no delay).Matches

Variables with a new default (4)

Variablev4.16.2 defaultv4.17.2 defaultSource check
AIPROXY_API_ENDPOINTEmptyNone, requiredNo default in source, consistent with required
AIPROXY_API_TOKENEmptyNone, requiredNo default in source, consistent with required
DB_MAX_LINK510Matches
SANDBOX_POOL_SIZE205Matches

Variables with an updated description (4)

Variablev4.17.2 description
AIPROXY_API_ENDPOINTAI Proxy service root URL, such as http://aiproxy:3000. Do not append /v1.
AIPROXY_API_TOKENA nonempty AI Proxy administrator token matching the server configuration.
CHECK_INTERNAL_IPWhether internal IP checks are enabled to reduce SSRF risk. Applies only to outbound URLs controlled by users or workflows; operator-configured service addresses (SSO/external user system, model addresses, Feishu/DingTalk/Yuque base URLs, custom PDF parse, custom censor, fast login, chat log, SMS proxy, invoice webhook, enterprise auth, etc.) are unaffected.
DB_MAX_LINKMaximum connection pool size for MongoDB, PG, OceanBase, openGauss, and other databases. Values are clamped to 10–1000.

Variables removed from the reference (2)

Variablev4.16.2 groupv4.16.2 descriptionIn v4.17.2 env.ts definitions
CHAT_API_KEYService URLs and IntegrationsDefault OpenAI-compatible model API key when AI Proxy token is not configured.No longer defined
OPENAI_BASE_URLService URLs and IntegrationsDefault OpenAI-compatible model endpoint when AI Proxy is not configured.No longer defined

How to read it

  1. The source check looks up each variable's .default(...) in the v4.17.2 env.ts files. "Matches" means the source default equals the documented one. "Not defined in open-source env.ts" usually means a commercial service reads the variable, or another module reads it directly.
  2. "Removed from the reference" means the variable no longer appears in the v4.17.2 documentation. A variable that is still defined in v4.17.2 may have moved or still be read for compatibility; "No longer defined" only covers the env.ts definition files. Check your deployment before upgrading.
  3. Before upgrading, start with the removed variables and the new defaults: deployments that relied on an old default may behave differently afterwards.

Scope of this reference

Values come from the official documentation and open-source repository code of FastGPT v4.16.2 and v4.17.2. Self-hosted deployments follow their own configuration files; commercial services follow the commercial documentation.

Sources