dify-aio

dify-aio

Application Docker from JSONbored's Repository

Vue d'ensemble

Dify is a self-hosted AI application platform for agentic workflows, RAG pipelines, tools, model-provider integrations, and observability.

All-In-One Unraid Edition
dify-aio packages the Dify API, workers, web UI, plugin daemon, code sandbox, SSRF proxy, Nginx, PostgreSQL with pgvector, and Redis into one practical Unraid-first container.

Quick Install (Beginners)

  1. Install this template and leave [code]Web UI Port[/code] and [code]AppData[/code] at their defaults unless you already have a port conflict.
  2. Start the container and give first boot a few minutes. The wrapper initializes bundled PostgreSQL, pgvector, Redis, generated secrets, local storage, the sandbox, plugin daemon, and the Dify services.
  3. Open the Web UI and create the first admin account. You can optionally set [code]Initial Admin Password[/code] before first boot, but it is not required.
  4. Add model-provider credentials inside Dify first. For a reverse proxy or published apps, set [code]Public URL[/code] to your external HTTPS URL and restart.
  5. Keep Advanced View defaults for the easiest install. The bundled database, cache, vector store, local file storage, sandbox, and SSRF proxy are already wired together.

Power Users (Advanced View)

  • Advanced View exposes external PostgreSQL-compatible databases, Redis, object storage, vector databases, SMTP/mail, plugin storage, observability, CORS/CSP, sandbox, proxy, token expiry, indexing, cleanup, and broader upstream Dify environment controls.
  • If you switch a backend selector such as [code]VECTOR_STORE[/code], [code]STORAGE_TYPE[/code], [code]DB_TYPE[/code], or internal service toggles, configure the matching companion fields for that backend.
  • Blank secret fields generate and persist values in [code]/appdata/config/generated.env[/code]. Explicit Unraid template values override generated secrets, and [code]/appdata/config/extra.env[/code] remains the final advanced override escape hatch.
  • [code]CHECK_UPDATE_URL[/code] is blank by default to avoid outbound update checks unless you intentionally opt in.

Important Notes

  • Dify is a heavier multi-service stack. Plan for at least 2 CPU cores and 4 GiB RAM, with more memory for real indexing, workflow, or model-heavy workloads.
  • Public exposure should sit behind a trusted reverse proxy with TLS. Review sandbox/network settings before allowing untrusted users to run code or tools.
  • External vector stores, object storage, SMTP, and model providers are optional but real production deployments may need them.

Exigences

Dify is a heavier multi-service application. Plan for at least 2 CPU cores and 4 GiB RAM, with more memory for real workloads. Public exposure should be placed behind a trusted reverse proxy with TLS. Model-provider API keys, SMTP, object storage, and external vector stores are optional but may be required for production use.

Arguments d'exécution

Interface utilisateur Web
http://[IP]:[PORT:8080]
Réseau
bridge
Coquille
sh
Privilégié
false

Configuration du modèle

Web UI PortPorttcp

Dify Web UI and API gateway port.

Cible
8080
Défaut
8080
Valeur
8080
AppDataPathrw

Persistent Dify data, generated secrets, PostgreSQL data, Redis data, uploads, plugin storage, and sandbox configuration.

Cible
/appdata
Défaut
/mnt/user/appdata/dify-aio
Valeur
/mnt/user/appdata/dify-aio
Public URLVariable

Optional external base URL such as https://dify.example.com. Used to default Dify console, app, trigger, WebSocket, and file URLs.

Cible
DIFY_AIO_PUBLIC_URL
Initial Admin PasswordVariable

Optional initial admin password. Dify limits this value to 30 characters. Leave blank to set the admin account during first-run setup.

Cible
INIT_PASSWORD
TimezoneVariable

Container timezone.

Cible
TZ
Défaut
UTC
Valeur
UTC
Deploy EnvironmentVariable

Dify deployment environment mode. Keep PRODUCTION for normal Unraid installs.

Cible
DEPLOY_ENV
Défaut
PRODUCTION|TESTING
Valeur
PRODUCTION
Dify Update Check URLVariable

Optional Dify update-check endpoint. Leave blank to disable outbound update checks for privacy-focused or offline installs.

Cible
CHECK_UPDATE_URL
Secret KeyVariable

Dify application secret key. Leave blank to generate and persist one on first boot. Changing this after setup invalidates encrypted credentials and sessions.

Cible
SECRET_KEY
Use Internal PostgreSQLVariable

Use the bundled PostgreSQL 15 database with pgvector. Set false only when using an external PostgreSQL-compatible database.

Cible
DIFY_USE_INTERNAL_POSTGRES
Défaut
true|false
Valeur
true
Database TypeVariable

Database type used by Dify. The bundled AIO database is PostgreSQL; non-PostgreSQL modes require external infrastructure.

Cible
DB_TYPE
Défaut
postgresql|mysql|oceanbase|seekdb
Valeur
postgresql
Database HostVariable

PostgreSQL host. Keep 127.0.0.1 for bundled PostgreSQL.

Cible
DB_HOST
Défaut
127.0.0.1
Valeur
127.0.0.1
Database PortVariable

PostgreSQL port.

Cible
DB_PORT
Défaut
5432
Valeur
5432
Database UserVariable

PostgreSQL user for Dify.

Cible
DB_USERNAME
Défaut
dify
Valeur
dify
Database PasswordVariable

PostgreSQL password. Leave blank to generate and persist one on first boot.

Cible
DB_PASSWORD
Database NameVariable

PostgreSQL database used by the Dify API.

Cible
DB_DATABASE
Défaut
dify
Valeur
dify
Plugin Database NameVariable

PostgreSQL database used by the Dify plugin daemon.

Cible
DB_PLUGIN_DATABASE
Défaut
dify_plugin
Valeur
dify_plugin
Use Internal RedisVariable

Use the bundled Redis instance. Set false only when using an external Redis service.

Cible
DIFY_USE_INTERNAL_REDIS
Défaut
true|false
Valeur
true
Redis HostVariable

Redis host. Keep 127.0.0.1 for bundled Redis.

Cible
REDIS_HOST
Défaut
127.0.0.1
Valeur
127.0.0.1
Redis PortVariable

Redis port.

Cible
REDIS_PORT
Défaut
6379
Valeur
6379
Redis PasswordVariable

Redis password. Leave blank to generate and persist one on first boot.

Cible
REDIS_PASSWORD
Celery Broker URLVariable

Optional explicit Celery broker URL. Leave blank to derive it from Redis settings.

Cible
CELERY_BROKER_URL
Console API URLVariable

Optional public console API URL. Leave blank to derive from Public URL or incoming requests.

Cible
CONSOLE_API_URL
Console Web URLVariable

Optional public console web URL. Leave blank to derive from Public URL or incoming requests.

Cible
CONSOLE_WEB_URL
Service API URLVariable

Optional public Service API URL shown inside Dify. Leave blank to derive from Public URL or incoming requests.

Cible
SERVICE_API_URL
Trigger URLVariable

Optional public trigger URL. Leave blank to derive from Public URL or use Dify defaults.

Cible
TRIGGER_URL
App API URLVariable

Optional published-app API URL. Leave blank to derive from Public URL or incoming requests.

Cible
APP_API_URL
App Web URLVariable

Optional published-app web URL. Leave blank to derive from Public URL or incoming requests.

Cible
APP_WEB_URL
Files URLVariable

Optional public file preview/download URL. Leave blank to derive from Public URL.

Cible
FILES_URL
Internal Files URLVariable

Internal file URL used by Dify services. Leave blank for the AIO localhost default.

Cible
INTERNAL_FILES_URL
Next Public Socket URLVariable

Optional WebSocket URL for collaboration mode. Leave blank to derive from Public URL when provided.

Cible
NEXT_PUBLIC_SOCKET_URL
Log FileVariable

Optional Dify log file path. Leave blank for /appdata/logs/server.log.

Cible
LOG_FILE
Log TimezoneVariable

Optional Dify log timezone. Leave blank to inherit TZ.

Cible
LOG_TZ
API Bind AddressVariable

Internal Dify API bind address. Keep localhost so only the bundled Nginx gateway is exposed.

Cible
DIFY_BIND_ADDRESS
Défaut
127.0.0.1
Valeur
127.0.0.1
Server WorkersVariable

Dify API worker count. Increase only if the host has enough CPU and memory.

Cible
SERVER_WORKER_AMOUNT
Défaut
1
Valeur
1
Server Worker ClassVariable

Gunicorn worker class. The AIO default supports collaboration WebSockets.

Cible
SERVER_WORKER_CLASS
Défaut
geventwebsocket.gunicorn.workers.GeventWebSocketWorker
Valeur
geventwebsocket.gunicorn.workers.GeventWebSocketWorker
Celery WorkersVariable

Dify background worker count. Increase for indexing-heavy workloads on larger hosts.

Cible
CELERY_WORKER_AMOUNT
Défaut
2
Valeur
2
Celery Worker ClassVariable

Celery worker class. Keep gevent unless debugging an upstream-specific issue.

Cible
CELERY_WORKER_CLASS
Défaut
gevent
Valeur
gevent
Gunicorn TimeoutVariable

API request timeout in seconds.

Cible
GUNICORN_TIMEOUT
Défaut
360
Valeur
360
Vector StoreVariable

Dify vector database backend. The default uses bundled PostgreSQL with pgvector. Non-pgvector choices require external services and matching variables.

Cible
VECTOR_STORE
Défaut
pgvector|weaviate|qdrant|milvus|myscale|relyt|pgvecto-rs|chroma|opensearch|oracle|tencent|elasticsearch|elasticsearch-ja|analyticdb|couchbase|vikingdb|opengauss|tablestore|vastbase|tidb|tidb_on_qdrant|baidu|lindorm|huawei_cloud|upstash|matrixone|clickzetta|alibabacloud_mysql|iris|hologres
Valeur
pgvector
PGVector HostVariable

Optional pgvector host override. Leave blank to reuse the Dify database host.

Cible
PGVECTOR_HOST
PGVector PortVariable

Optional pgvector port override. Leave blank to reuse the Dify database port.

Cible
PGVECTOR_PORT
PGVector UserVariable

Optional pgvector user override. Leave blank to reuse the Dify database user.

Cible
PGVECTOR_USER
PGVector PasswordVariable

Optional pgvector password override. Leave blank to reuse the Dify database password.

Cible
PGVECTOR_PASSWORD
PGVector DatabaseVariable

Optional pgvector database override. Leave blank to reuse the Dify database name.

Cible
PGVECTOR_DATABASE
Qdrant URLVariable

External Qdrant URL when Vector Store is qdrant.

Cible
QDRANT_URL
Qdrant API KeyVariable

External Qdrant API key when required.

Cible
QDRANT_API_KEY
Weaviate EndpointVariable

External Weaviate HTTP endpoint when Vector Store is weaviate.

Cible
WEAVIATE_ENDPOINT
Weaviate API KeyVariable

External Weaviate API key when required.

Cible
WEAVIATE_API_KEY
Weaviate GRPC EndpointVariable

External Weaviate gRPC endpoint when required.

Cible
WEAVIATE_GRPC_ENDPOINT
Storage TypeVariable

Dify file storage backend. The default uses local OpenDAL filesystem storage under AppData.

Cible
STORAGE_TYPE
Défaut
opendal|s3|azure-blob|google-storage|aliyun-oss|tencent-cos|huawei-obs|oci-storage|volcengine-tos|baidu-obs|supabase|clickzetta-volume
Valeur
opendal
OpenDAL SchemeVariable

OpenDAL storage scheme. The AIO default uses local filesystem storage.

Cible
OPENDAL_SCHEME
Défaut
fs
Valeur
fs
OpenDAL Filesystem RootVariable

OpenDAL filesystem root. Leave blank for /app/api/storage, symlinked to AppData.

Cible
OPENDAL_FS_ROOT
S3 EndpointVariable

S3-compatible storage endpoint when using S3 storage.

Cible
S3_ENDPOINT
S3 RegionVariable

S3 region.

Cible
S3_REGION
Défaut
us-east-1
Valeur
us-east-1
S3 Bucket NameVariable

S3 bucket for Dify files.

Cible
S3_BUCKET_NAME
S3 Access KeyVariable

S3 access key.

Cible
S3_ACCESS_KEY
S3 Secret KeyVariable

S3 secret key.

Cible
S3_SECRET_KEY
Enable SandboxVariable

Run the bundled Dify sandbox used for code execution. Disabling it breaks code-execution features.

Cible
DIFY_ENABLE_SANDBOX
Défaut
true|false
Valeur
true
Sandbox API KeyVariable

Sandbox API key. Leave blank to generate and persist one on first boot.

Cible
SANDBOX_API_KEY
Code Execution EndpointVariable

Dify sandbox endpoint. Leave blank for the AIO localhost sandbox.

Cible
CODE_EXECUTION_ENDPOINT
Code Execution API KeyVariable

Dify sandbox API key used by the API service. Leave blank to mirror Sandbox API Key.

Cible
CODE_EXECUTION_API_KEY
Sandbox Network AccessVariable

Allow sandboxed code to access the network through the bundled SSRF proxy.

Cible
SANDBOX_ENABLE_NETWORK
Défaut
true|false
Valeur
true
Sandbox Worker TimeoutVariable

Sandbox execution timeout in seconds.

Cible
SANDBOX_WORKER_TIMEOUT
Défaut
15
Valeur
15
Sandbox PortVariable

Sandbox service port. Leave blank for 8194.

Cible
SANDBOX_PORT
Sandbox HTTP ProxyVariable

HTTP proxy used by sandboxed code. Leave blank for the bundled SSRF proxy.

Cible
SANDBOX_HTTP_PROXY
Sandbox HTTPS ProxyVariable

HTTPS proxy used by sandboxed code. Leave blank for the bundled SSRF proxy.

Cible
SANDBOX_HTTPS_PROXY
SSRF HTTP Proxy URLVariable

Internal HTTP proxy URL used by Dify. Leave blank for the bundled SSRF proxy.

Cible
SSRF_PROXY_HTTP_URL
SSRF HTTPS Proxy URLVariable

Internal HTTPS proxy URL used by Dify. Leave blank for the bundled SSRF proxy.

Cible
SSRF_PROXY_HTTPS_URL
SSRF Reverse Proxy PortVariable

Internal reverse proxy port. Leave blank for the AIO non-conflicting default.

Cible
SSRF_REVERSE_PROXY_PORT
SSRF Sandbox HostVariable

Sandbox host name used by the SSRF proxy. Leave blank for localhost.

Cible
SSRF_SANDBOX_HOST
Plugin Daemon KeyVariable

Plugin daemon server key. Leave blank to generate and persist one on first boot.

Cible
PLUGIN_DAEMON_KEY
Plugin Inner API KeyVariable

Shared inner API key used between Dify and the plugin daemon. Leave blank to generate and persist one on first boot.

Cible
PLUGIN_DIFY_INNER_API_KEY
Plugin Daemon URLVariable

Plugin daemon URL used by Dify. Leave blank for the AIO localhost plugin daemon.

Cible
PLUGIN_DAEMON_URL
Plugin Inner API URLVariable

Inner API URL used by the plugin daemon. Leave blank for the AIO localhost API.

Cible
PLUGIN_DIFY_INNER_API_URL
Verify Plugin SignaturesVariable

Require signed plugins where Dify supports signature verification.

Cible
FORCE_VERIFYING_SIGNATURE
Défaut
true|false
Valeur
true
Marketplace EnabledVariable

Enable the Dify plugin marketplace integration.

Cible
MARKETPLACE_ENABLED
Défaut
true|false
Valeur
true
Mail TypeVariable

Mail provider used by Dify.

Cible
MAIL_TYPE
Défaut
resend|smtp|sendgrid
Valeur
resend
Resend API KeyVariable

Resend API key when Mail Type is resend.

Cible
RESEND_API_KEY
SendGrid API KeyVariable

SendGrid API key when Mail Type is sendgrid.

Cible
SENDGRID_API_KEY
SMTP ServerVariable

SMTP host when Mail Type is smtp.

Cible
SMTP_SERVER
SMTP PortVariable

SMTP port.

Cible
SMTP_PORT
Défaut
465
Valeur
465
SMTP UsernameVariable

SMTP username.

Cible
SMTP_USERNAME
SMTP PasswordVariable

SMTP password.

Cible
SMTP_PASSWORD
Mail FromVariable

Default sender address for Dify email.

Cible
MAIL_DEFAULT_SEND_FROM
Nginx PortVariable

Internal Nginx listen port. Keep this aligned with the Web UI Port mapping.

Cible
NGINX_PORT
Défaut
8080
Valeur
8080
Nginx Server NameVariable

Nginx server_name value.

Cible
NGINX_SERVER_NAME
Défaut
_
Valeur
_
Nginx Client Max Body SizeVariable

Maximum request body size accepted by the bundled Nginx gateway.

Cible
NGINX_CLIENT_MAX_BODY_SIZE
Défaut
100M
Valeur
100M
Nginx Proxy Read TimeoutVariable

Bundled Nginx proxy read timeout.

Cible
NGINX_PROXY_READ_TIMEOUT
Défaut
3600s
Valeur
3600s
Nginx Proxy Send TimeoutVariable

Bundled Nginx proxy send timeout.

Cible
NGINX_PROXY_SEND_TIMEOUT
Défaut
3600s
Valeur
3600s
Website FirecrawlVariable

Expose Firecrawl as a Dify website datasource option. Configure Firecrawl credentials inside Dify where required.

Cible
ENABLE_WEBSITE_FIRECRAWL
Défaut
true|false
Valeur
true
Website Jina ReaderVariable

Expose Jina Reader as a Dify website datasource option.

Cible
ENABLE_WEBSITE_JINAREADER
Défaut
true|false
Valeur
true
Website WaterCrawlVariable

Expose WaterCrawl as a Dify website datasource option.

Cible
ENABLE_WEBSITE_WATERCRAWL
Défaut
true|false
Valeur
true
Workflow Execution StorageVariable

Storage backend for workflow node execution records. Keep rdbms for the default AIO database path.

Cible
WORKFLOW_NODE_EXECUTION_STORAGE
Défaut
rdbms|hybrid
Valeur
rdbms
AIO Wait Timeout SecondsVariable

Startup wait timeout for internal service readiness checks.

Cible
DIFY_AIO_WAIT_TIMEOUT_SECONDS
Défaut
300
Valeur
300
AIO Extra Env FileVariable

Optional dotenv-style file for rare upstream Dify variables that are intentionally not shown in the Unraid template.

Cible
DIFY_AIO_EXTRA_ENV_FILE
Défaut
/appdata/config/extra.env
Valeur
/appdata/config/extra.env
AIO LANG OverrideVariable

Optional locale override for LANG. Leave blank for C.UTF-8.

Cible
DIFY_AIO_LANG
AIO LC_ALL OverrideVariable

Optional locale override for LC_ALL. Leave blank for C.UTF-8.

Cible
DIFY_AIO_LC_ALL
Dify Web PortVariable

Internal Dify web service port. Keep aligned with the bundled Nginx proxy.

Cible
DIFY_WEB_PORT
Défaut
3000
Valeur
3000
Dify Web HostVariable

Internal Dify web service bind host. Keep localhost so only the bundled Nginx gateway is exposed.

Cible
DIFY_WEB_HOST
Défaut
127.0.0.1
Valeur
127.0.0.1
Plugin PlatformVariable

Plugin daemon platform mode. The AIO default is local.

Cible
PLUGIN_PLATFORM
Défaut
local
Valeur
local
Plugin Remote Installing HostVariable

Plugin remote-install/debug host used by the plugin daemon. Keep localhost unless you intentionally expose plugin debugging.

Cible
PLUGIN_DEBUGGING_HOST
Défaut
127.0.0.1
Valeur
127.0.0.1
Plugin Remote Installing PortVariable

Plugin remote-install/debug port used by the plugin daemon.

Cible
PLUGIN_DEBUGGING_PORT
Défaut
5003
Valeur
5003
Plugin Max Package SizeVariable

Maximum plugin package size accepted by the plugin daemon, in bytes.

Cible
PLUGIN_MAX_PACKAGE_SIZE
Défaut
52428800
Valeur
52428800
Plugin Daemon PortVariable

Internal plugin daemon port. Keep aligned with the bundled Nginx /e/ route.

Cible
PLUGIN_DAEMON_PORT
Défaut
5002
Valeur
5002
Plugin DB SSL ModeVariable

Plugin daemon database SSL mode.

Cible
DB_SSL_MODE
Défaut
disable
Valeur
disable
Sandbox Pip Mirror URLVariable

Optional Python package mirror URL used by the Dify sandbox.

Cible
PIP_MIRROR_URL
Disable Next TelemetryVariable

Disable telemetry from the bundled Next.js web runtime.

Cible
NEXT_TELEMETRY_DISABLED
Défaut
1
Valeur
1
Dify Env: LOG_LEVELVariable

The log level for the application. Supported values are `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL`

Cible
LOG_LEVEL
Défaut
DEBUG|INFO|WARNING|ERROR|CRITICAL
Valeur
INFO
Dify Env: LOG_OUTPUT_FORMATVariable

Log output format: text or json

Cible
LOG_OUTPUT_FORMAT
Défaut
text|json
Valeur
text
Dify Env: LOG_FILE_MAX_SIZEVariable

Log file max size, the unit is MB

Cible
LOG_FILE_MAX_SIZE
Défaut
20
Valeur
20
Dify Env: LOG_FILE_BACKUP_COUNTVariable

Log file max backup count

Cible
LOG_FILE_BACKUP_COUNT
Défaut
5
Valeur
5
Dify Env: LOG_DATEFORMATVariable

Log dateformat

Cible
LOG_DATEFORMAT
Défaut
%Y-%m-%d %H:%M:%S
Valeur
%Y-%m-%d %H:%M:%S
Dify Env: DEBUGVariable

Debug mode, default is false. It is recommended to turn on this configuration for local development to prevent some problems caused by monkey patch.

Cible
DEBUG
Défaut
false|true
Valeur
false
Dify Env: FLASK_DEBUGVariable

Flask debug mode, it can output trace information at the interface when turned on, which is convenient for debugging.

Cible
FLASK_DEBUG
Défaut
false|true
Valeur
false
Dify Env: ENABLE_REQUEST_LOGGINGVariable

Enable request logging, which will log the request and response information. And the log level is DEBUG

Cible
ENABLE_REQUEST_LOGGING
Défaut
False|True
Valeur
False
Dify Env: OPENAI_API_BASEVariable

Used to change the OpenAI base address, default is https://api.openai.com/v1. When OpenAI cannot be accessed in China, replace it with a domestic mirror address, or when a local model provides OpenAI compatible API, it can be replaced.

Cible
OPENAI_API_BASE
Défaut
https://api.openai.com/v1
Valeur
https://api.openai.com/v1
Dify Env: MIGRATION_ENABLEDVariable

When enabled, migrations will be executed prior to application startup and the application will start after the migrations have completed.

Cible
MIGRATION_ENABLED
Défaut
true|false
Valeur
true
Dify Env: FILES_ACCESS_TIMEOUTVariable

File Access Time specifies a time interval in seconds for the file to be accessed. The default value is 300 seconds.

Cible
FILES_ACCESS_TIMEOUT
Défaut
300
Valeur
300
Dify Env: ENABLE_COLLABORATION_MODEVariable

Collaboration mode toggle To open collaboration features, you also need to set SERVER_WORKER_CLASS=geventwebsocket.gunicorn.workers.GeventWebSocketWorker

Cible
ENABLE_COLLABORATION_MODE
Défaut
false|true
Valeur
false
Dify Env: ACCESS_TOKEN_EXPIRE_MINUTESVariable

Access token expiration time in minutes

Cible
ACCESS_TOKEN_EXPIRE_MINUTES
Défaut
60
Valeur
60
Dify Env: REFRESH_TOKEN_EXPIRE_DAYSVariable

Refresh token expiration time in days

Cible
REFRESH_TOKEN_EXPIRE_DAYS
Défaut
30
Valeur
30
Dify Env: APP_DEFAULT_ACTIVE_REQUESTSVariable

The default number of active requests for the application, where 0 means unlimited, should be a non-negative integer.

Cible
APP_DEFAULT_ACTIVE_REQUESTS
Défaut
0
Valeur
0
Dify Env: APP_MAX_ACTIVE_REQUESTSVariable

The maximum number of active requests for the application, where 0 means unlimited, should be a non-negative integer.

Cible
APP_MAX_ACTIVE_REQUESTS
Défaut
0
Valeur
0
Dify Env: APP_MAX_EXECUTION_TIMEVariable

Upstream Dify self-hosted environment variable.

Cible
APP_MAX_EXECUTION_TIME
Défaut
1200
Valeur
1200
Dify Env: CELERY_AUTO_SCALEVariable

Flag indicating whether to enable autoscaling of Celery workers. Autoscaling is useful when tasks are CPU intensive and can be dynamically allocated and deallocated based on the workload. When autoscaling is enabled, the maximum and minimum number of workers can be specified....

Cible
CELERY_AUTO_SCALE
Défaut
false|true
Valeur
false
Dify Env: CELERY_MAX_WORKERSVariable

The maximum number of Celery workers that can be autoscaled. This is optional and only used when autoscaling is enabled. Default is not set.

Cible
CELERY_MAX_WORKERS
Dify Env: CELERY_MIN_WORKERSVariable

The minimum number of Celery workers that can be autoscaled. This is optional and only used when autoscaling is enabled. Default is not set.

Cible
CELERY_MIN_WORKERS
Dify Env: API_TOOL_DEFAULT_CONNECT_TIMEOUTVariable

API Tool configuration

Cible
API_TOOL_DEFAULT_CONNECT_TIMEOUT
Défaut
10
Valeur
10
Dify Env: API_TOOL_DEFAULT_READ_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Cible
API_TOOL_DEFAULT_READ_TIMEOUT
Défaut
60
Valeur
60
Dify Env: NEXT_PUBLIC_ENABLE_SINGLE_DOLLAR_LATEXVariable

Enable inline LaTeX rendering with single dollar signs ($...$) in the web frontend Default is false for security reasons to prevent conflicts with regular text

Cible
NEXT_PUBLIC_ENABLE_SINGLE_DOLLAR_LATEX
Défaut
false|true
Valeur
false
Dify Env: SQLALCHEMY_POOL_SIZEVariable

The size of the database connection pool. The default is 30 connections, which can be appropriately increased.

Cible
SQLALCHEMY_POOL_SIZE
Défaut
30
Valeur
30
Dify Env: SQLALCHEMY_MAX_OVERFLOWVariable

The default is 10 connections, which allows temporary overflow beyond the pool size.

Cible
SQLALCHEMY_MAX_OVERFLOW
Défaut
10
Valeur
10
Dify Env: SQLALCHEMY_POOL_RECYCLEVariable

Database connection pool recycling time, the default is 3600 seconds.

Cible
SQLALCHEMY_POOL_RECYCLE
Défaut
3600
Valeur
3600
Dify Env: SQLALCHEMY_ECHOVariable

Whether to print SQL, default is false.

Cible
SQLALCHEMY_ECHO
Défaut
false|true
Valeur
false
Dify Env: SQLALCHEMY_POOL_PRE_PINGVariable

If True, will test connections for liveness upon each checkout

Cible
SQLALCHEMY_POOL_PRE_PING
Défaut
false|true
Valeur
false
Dify Env: SQLALCHEMY_POOL_USE_LIFOVariable

Whether to enable the Last in first out option or use default FIFO queue if is false

Cible
SQLALCHEMY_POOL_USE_LIFO
Défaut
false|true
Valeur
false
Dify Env: SQLALCHEMY_POOL_TIMEOUTVariable

Number of seconds to wait for a connection from the pool before raising a timeout error. Default is 30

Cible
SQLALCHEMY_POOL_TIMEOUT
Défaut
30
Valeur
30
Dify Env: POSTGRES_MAX_CONNECTIONSVariable

Maximum number of connections to the database Default is 100 Reference: https://www.postgresql.org/docs/current/runtime-config-connection.html#GUC-MAX-CONNECTIONS

Cible
POSTGRES_MAX_CONNECTIONS
Défaut
200
Valeur
200
Dify Env: POSTGRES_SHARED_BUFFERSVariable

Sets the amount of shared memory used for postgres's shared buffers. Default is 128MB Recommended value: 25% of available memory Reference: https://www.postgresql.org/docs/current/runtime-config-resource.html#GUC-SHARED-BUFFERS

Cible
POSTGRES_SHARED_BUFFERS
Défaut
128MB
Valeur
128MB
Dify Env: POSTGRES_WORK_MEMVariable

Sets the amount of memory used by each database worker for working space. Default is 4MB Reference: https://www.postgresql.org/docs/current/runtime-config-resource.html#GUC-WORK-MEM

Cible
POSTGRES_WORK_MEM
Défaut
4MB
Valeur
4MB
Dify Env: POSTGRES_MAINTENANCE_WORK_MEMVariable

Sets the amount of memory reserved for maintenance activities. Default is 64MB Reference: https://www.postgresql.org/docs/current/runtime-config-resource.html#GUC-MAINTENANCE-WORK-MEM

Cible
POSTGRES_MAINTENANCE_WORK_MEM
Défaut
64MB
Valeur
64MB
Dify Env: POSTGRES_EFFECTIVE_CACHE_SIZEVariable

Sets the planner's assumption about the effective cache size. Default is 4096MB Reference: https://www.postgresql.org/docs/current/runtime-config-query.html#GUC-EFFECTIVE-CACHE-SIZE

Cible
POSTGRES_EFFECTIVE_CACHE_SIZE
Défaut
4096MB
Valeur
4096MB
Dify Env: POSTGRES_STATEMENT_TIMEOUTVariable

Sets the maximum allowed duration of any statement before termination. Default is 0 (no timeout). Reference: https://www.postgresql.org/docs/current/runtime-config-client.html#GUC-STATEMENT-TIMEOUT A value of 0 prevents the server from timing out statements.

Cible
POSTGRES_STATEMENT_TIMEOUT
Défaut
0
Valeur
0
Dify Env: POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUTVariable

Sets the maximum allowed duration of any idle in-transaction session before termination. Default is 0 (no timeout). Reference: https://www.postgresql.org/docs/current/runtime-config-client.html#GUC-IDLE-IN-TRANSACTION-SESSION-TIMEOUT A value of 0 prevents the server from...

Cible
POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUT
Défaut
0
Valeur
0
Dify Env: MYSQL_MAX_CONNECTIONSVariable

MySQL Performance Configuration Maximum number of connections to MySQL Default is 1000

Cible
MYSQL_MAX_CONNECTIONS
Défaut
1000
Valeur
1000
Dify Env: MYSQL_INNODB_BUFFER_POOL_SIZEVariable

InnoDB buffer pool size Default is 512M Recommended value: 70-80% of available memory for dedicated MySQL server Reference: https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_buffer_pool_size

Cible
MYSQL_INNODB_BUFFER_POOL_SIZE
Défaut
512M
Valeur
512M
Dify Env: MYSQL_INNODB_LOG_FILE_SIZEVariable

InnoDB log file size Default is 128M Reference: https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_log_file_size

Cible
MYSQL_INNODB_LOG_FILE_SIZE
Défaut
128M
Valeur
128M
Dify Env: MYSQL_INNODB_FLUSH_LOG_AT_TRX_COMMITVariable

InnoDB flush log at transaction commit Default is 2 (flush to OS cache, sync every second) Options: 0 (no flush), 1 (flush and sync), 2 (flush to OS cache) Reference: https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_flush_log_at_trx_commit

Cible
MYSQL_INNODB_FLUSH_LOG_AT_TRX_COMMIT
Défaut
2
Valeur
2
Dify Env: REDIS_USERNAMEVariable

Upstream Dify self-hosted environment variable.

Cible
REDIS_USERNAME
Dify Env: REDIS_USE_SSLVariable

Upstream Dify self-hosted environment variable.

Cible
REDIS_USE_SSL
Défaut
false|true
Valeur
false
Dify Env: REDIS_SSL_CERT_REQSVariable

SSL configuration for Redis (when REDIS_USE_SSL=true)

Cible
REDIS_SSL_CERT_REQS
Défaut
CERT_NONE|CERT_OPTIONAL|CERT_REQUIRED
Valeur
CERT_NONE
Dify Env: REDIS_SSL_CA_CERTSVariable

Options: CERT_NONE, CERT_OPTIONAL, CERT_REQUIRED

Cible
REDIS_SSL_CA_CERTS
Dify Env: REDIS_SSL_CERTFILEVariable

Path to CA certificate file for SSL verification

Cible
REDIS_SSL_CERTFILE
Dify Env: REDIS_SSL_KEYFILEVariable

Path to client certificate file for SSL authentication

Cible
REDIS_SSL_KEYFILE
Dify Env: REDIS_DBVariable

Path to client private key file for SSL authentication

Cible
REDIS_DB
Défaut
0
Valeur
0
Dify Env: REDIS_KEY_PREFIXVariable

Optional global prefix for Redis keys, topics, streams, and Celery Redis transport artifacts. Leave empty to preserve current unprefixed behavior.

Cible
REDIS_KEY_PREFIX
Dify Env: REDIS_MAX_CONNECTIONSVariable

Optional: limit total Redis connections used by API/Worker (unset for default) Align with API's REDIS_MAX_CONNECTIONS in configs

Cible
REDIS_MAX_CONNECTIONS
Dify Env: REDIS_USE_SENTINELVariable

Whether to use Redis Sentinel mode. If set to true, the application will automatically discover and connect to the master node through Sentinel.

Cible
REDIS_USE_SENTINEL
Défaut
false|true
Valeur
false
Dify Env: REDIS_SENTINELSVariable

List of Redis Sentinel nodes. If Sentinel mode is enabled, provide at least one Sentinel IP and port. Format: `sentinel1_ip:sentinel1_port,sentinel2_ip:sentinel2_port,sentinel3_ip:sentinel3_port`

Cible
REDIS_SENTINELS
Dify Env: REDIS_SENTINEL_SERVICE_NAMEVariable

Upstream Dify self-hosted environment variable.

Cible
REDIS_SENTINEL_SERVICE_NAME
Dify Env: REDIS_SENTINEL_USERNAMEVariable

Upstream Dify self-hosted environment variable.

Cible
REDIS_SENTINEL_USERNAME
Dify Env: REDIS_SENTINEL_PASSWORDVariable

Upstream Dify self-hosted environment variable.

Cible
REDIS_SENTINEL_PASSWORD
Dify Env: REDIS_SENTINEL_SOCKET_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Cible
REDIS_SENTINEL_SOCKET_TIMEOUT
Défaut
0.1
Valeur
0.1
Dify Env: REDIS_USE_CLUSTERSVariable

List of Redis Cluster nodes. If Cluster mode is enabled, provide at least one Cluster IP and port. Format: `Cluster1_ip:Cluster1_port,Cluster2_ip:Cluster2_port,Cluster3_ip:Cluster3_port`

Cible
REDIS_USE_CLUSTERS
Défaut
false|true
Valeur
false
Dify Env: REDIS_CLUSTERSVariable

Upstream Dify self-hosted environment variable.

Cible
REDIS_CLUSTERS
Dify Env: REDIS_CLUSTERS_PASSWORDVariable

Upstream Dify self-hosted environment variable.

Cible
REDIS_CLUSTERS_PASSWORD
Dify Env: REDIS_RETRY_RETRIESVariable

Redis connection and retry configuration max redis retry

Cible
REDIS_RETRY_RETRIES
Défaut
3
Valeur
3
Dify Env: REDIS_RETRY_BACKOFF_BASEVariable

Base delay (in seconds) for exponential backoff on retries

Cible
REDIS_RETRY_BACKOFF_BASE
Défaut
1.0
Valeur
1.0
Dify Env: REDIS_RETRY_BACKOFF_CAPVariable

Cap (in seconds) for exponential backoff on retries

Cible
REDIS_RETRY_BACKOFF_CAP
Défaut
10.0
Valeur
10.0
Dify Env: REDIS_SOCKET_TIMEOUTVariable

Timeout (in seconds) for Redis socket operations

Cible
REDIS_SOCKET_TIMEOUT
Défaut
5.0
Valeur
5.0
Dify Env: REDIS_SOCKET_CONNECT_TIMEOUTVariable

Timeout (in seconds) for establishing a Redis connection

Cible
REDIS_SOCKET_CONNECT_TIMEOUT
Défaut
5.0
Valeur
5.0
Dify Env: REDIS_HEALTH_CHECK_INTERVALVariable

Interval (in seconds) for Redis health checks

Cible
REDIS_HEALTH_CHECK_INTERVAL
Défaut
30
Valeur
30
Dify Env: CELERY_BACKENDVariable

Upstream Dify self-hosted environment variable.

Cible
CELERY_BACKEND
Défaut
redis
Valeur
redis
Dify Env: BROKER_USE_SSLVariable

Upstream Dify self-hosted environment variable.

Cible
BROKER_USE_SSL
Défaut
false|true
Valeur
false
Dify Env: CELERY_USE_SENTINELVariable

If you are using Redis Sentinel for high availability, configure the following settings.

Cible
CELERY_USE_SENTINEL
Défaut
false|true
Valeur
false
Dify Env: CELERY_SENTINEL_MASTER_NAMEVariable

Upstream Dify self-hosted environment variable.

Cible
CELERY_SENTINEL_MASTER_NAME
Dify Env: CELERY_SENTINEL_PASSWORDVariable

Upstream Dify self-hosted environment variable.

Cible
CELERY_SENTINEL_PASSWORD
Dify Env: CELERY_SENTINEL_SOCKET_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Cible
CELERY_SENTINEL_SOCKET_TIMEOUT
Défaut
0.1
Valeur
0.1
Dify Env: CELERY_TASK_ANNOTATIONSVariable

e.g. {"tasks.add": {"rate_limit": "10/s"}}

Cible
CELERY_TASK_ANNOTATIONS
Défaut
null
Valeur
null
Dify Env: WEB_API_CORS_ALLOW_ORIGINSVariable

Specifies the allowed origins for cross-origin requests to the Web API, e.g. https://dify.app or * for all origins.

Cible
WEB_API_CORS_ALLOW_ORIGINS
Défaut
*
Valeur
*
Dify Env: CONSOLE_CORS_ALLOW_ORIGINSVariable

Specifies the allowed origins for cross-origin requests to the console API, e.g. https://cloud.dify.ai or * for all origins.

Cible
CONSOLE_CORS_ALLOW_ORIGINS
Défaut
*
Valeur
*
Dify Env: COOKIE_DOMAINVariable

When the frontend and backend run on different subdomains, set COOKIE_DOMAIN to the site's top-level domain (e.g., `example.com`). Leading dots are optional.

Cible
COOKIE_DOMAIN
Dify Env: NEXT_PUBLIC_COOKIE_DOMAINVariable

When the frontend and backend run on different subdomains, set NEXT_PUBLIC_COOKIE_DOMAIN=1.

Cible
NEXT_PUBLIC_COOKIE_DOMAIN
Dify Env: NEXT_PUBLIC_BATCH_CONCURRENCYVariable

Upstream Dify self-hosted environment variable.

Cible
NEXT_PUBLIC_BATCH_CONCURRENCY
Défaut
5
Valeur
5
Dify Env: CLICKZETTA_VOLUME_TYPEVariable

Volume type selection (three types available): - user: Personal/small team use, simple config, user-level permissions - table: Enterprise multi-tenant, smart routing, table-level + user-level permissions - external: Data lake integration, external storage connection, volume-...

Cible
CLICKZETTA_VOLUME_TYPE
Défaut
user
Valeur
user
Dify Env: CLICKZETTA_VOLUME_NAMEVariable

External Volume name (required only when TYPE=external)

Cible
CLICKZETTA_VOLUME_NAME
Dify Env: CLICKZETTA_VOLUME_TABLE_PREFIXVariable

Table Volume table prefix (used only when TYPE=table)

Cible
CLICKZETTA_VOLUME_TABLE_PREFIX
Défaut
dataset_
Valeur
dataset_
Dify Env: CLICKZETTA_VOLUME_DIFY_PREFIXVariable

Dify file directory prefix (isolates from other apps, recommended to keep default)

Cible
CLICKZETTA_VOLUME_DIFY_PREFIX
Défaut
dify_km
Valeur
dify_km
Dify Env: S3_ADDRESS_STYLEVariable

Upstream Dify self-hosted environment variable.

Cible
S3_ADDRESS_STYLE
Défaut
auto
Valeur
auto
Dify Env: S3_USE_AWS_MANAGED_IAMVariable

Whether to use AWS managed IAM roles for authenticating with the S3 service. If set to false, the access key and secret key must be provided.

Cible
S3_USE_AWS_MANAGED_IAM
Défaut
false|true
Valeur
false
Dify Env: ARCHIVE_STORAGE_ENABLEDVariable

Workflow run and Conversation archive storage (S3-compatible)

Cible
ARCHIVE_STORAGE_ENABLED
Défaut
false|true
Valeur
false
Dify Env: ARCHIVE_STORAGE_ENDPOINTVariable

Upstream Dify self-hosted environment variable.

Cible
ARCHIVE_STORAGE_ENDPOINT
Dify Env: ARCHIVE_STORAGE_ARCHIVE_BUCKETVariable

Upstream Dify self-hosted environment variable.

Cible
ARCHIVE_STORAGE_ARCHIVE_BUCKET
Dify Env: ARCHIVE_STORAGE_EXPORT_BUCKETVariable

Upstream Dify self-hosted environment variable.

Cible
ARCHIVE_STORAGE_EXPORT_BUCKET
Dify Env: ARCHIVE_STORAGE_ACCESS_KEYVariable

Upstream Dify self-hosted environment variable.

Cible
ARCHIVE_STORAGE_ACCESS_KEY
Dify Env: ARCHIVE_STORAGE_SECRET_KEYVariable

Upstream Dify self-hosted environment variable.

Cible
ARCHIVE_STORAGE_SECRET_KEY
Dify Env: ARCHIVE_STORAGE_REGIONVariable

Upstream Dify self-hosted environment variable.

Cible
ARCHIVE_STORAGE_REGION
Défaut
auto
Valeur
auto
Dify Env: AZURE_BLOB_ACCOUNT_NAMEVariable

Azure Blob Configuration

Cible
AZURE_BLOB_ACCOUNT_NAME
Défaut
difyai
Valeur
difyai
Dify Env: AZURE_BLOB_ACCOUNT_KEYVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
AZURE_BLOB_ACCOUNT_KEY
Dify Env: AZURE_BLOB_CONTAINER_NAMEVariable

Upstream Dify self-hosted environment variable.

Cible
AZURE_BLOB_CONTAINER_NAME
Défaut
difyai-container
Valeur
difyai-container
Dify Env: AZURE_BLOB_ACCOUNT_URLVariable

Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
AZURE_BLOB_ACCOUNT_URL
Dify Env: GOOGLE_STORAGE_BUCKET_NAMEVariable

Google Storage Configuration Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
GOOGLE_STORAGE_BUCKET_NAME
Dify Env: GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64Variable

Upstream Dify self-hosted environment variable.

Cible
GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64
Dify Env: ALIYUN_OSS_BUCKET_NAMEVariable

The Alibaba Cloud OSS configurations, Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
ALIYUN_OSS_BUCKET_NAME
Dify Env: ALIYUN_OSS_ACCESS_KEYVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
ALIYUN_OSS_ACCESS_KEY
Dify Env: ALIYUN_OSS_SECRET_KEYVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
ALIYUN_OSS_SECRET_KEY
Dify Env: ALIYUN_OSS_ENDPOINTVariable

Upstream Dify self-hosted environment variable. Official default: 'https://oss-ap-southeast-1-internal.aliyuncs.com'.

Cible
ALIYUN_OSS_ENDPOINT
Dify Env: ALIYUN_OSS_REGIONVariable

Upstream Dify self-hosted environment variable.

Cible
ALIYUN_OSS_REGION
Défaut
ap-southeast-1
Valeur
ap-southeast-1
Dify Env: ALIYUN_OSS_AUTH_VERSIONVariable

Upstream Dify self-hosted environment variable.

Cible
ALIYUN_OSS_AUTH_VERSION
Défaut
v4
Valeur
v4
Dify Env: ALIYUN_OSS_PATHVariable

Don't start with '/'. OSS doesn't support leading slash in object names. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
ALIYUN_OSS_PATH
Dify Env: TENCENT_COS_BUCKET_NAMEVariable

Tencent COS Configuration Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
TENCENT_COS_BUCKET_NAME
Dify Env: TENCENT_COS_SECRET_KEYVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
TENCENT_COS_SECRET_KEY
Dify Env: TENCENT_COS_SECRET_IDVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
TENCENT_COS_SECRET_ID
Dify Env: TENCENT_COS_REGIONVariable

Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
TENCENT_COS_REGION
Dify Env: TENCENT_COS_SCHEMEVariable

Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
TENCENT_COS_SCHEME
Dify Env: TENCENT_COS_CUSTOM_DOMAINVariable

Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
TENCENT_COS_CUSTOM_DOMAIN
Dify Env: OCI_ENDPOINTVariable

Oracle Storage Configuration Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
OCI_ENDPOINT
Dify Env: OCI_BUCKET_NAMEVariable

Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
OCI_BUCKET_NAME
Dify Env: OCI_ACCESS_KEYVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
OCI_ACCESS_KEY
Dify Env: OCI_SECRET_KEYVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
OCI_SECRET_KEY
Dify Env: OCI_REGIONVariable

Upstream Dify self-hosted environment variable.

Cible
OCI_REGION
Défaut
us-ashburn-1
Valeur
us-ashburn-1
Dify Env: HUAWEI_OBS_BUCKET_NAMEVariable

Huawei OBS Configuration Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
HUAWEI_OBS_BUCKET_NAME
Dify Env: HUAWEI_OBS_SECRET_KEYVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
HUAWEI_OBS_SECRET_KEY
Dify Env: HUAWEI_OBS_ACCESS_KEYVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
HUAWEI_OBS_ACCESS_KEY
Dify Env: HUAWEI_OBS_SERVERVariable

Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
HUAWEI_OBS_SERVER
Dify Env: HUAWEI_OBS_PATH_STYLEVariable

Upstream Dify self-hosted environment variable.

Cible
HUAWEI_OBS_PATH_STYLE
Défaut
false|true
Valeur
false
Dify Env: VOLCENGINE_TOS_BUCKET_NAMEVariable

Volcengine TOS Configuration Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
VOLCENGINE_TOS_BUCKET_NAME
Dify Env: VOLCENGINE_TOS_SECRET_KEYVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
VOLCENGINE_TOS_SECRET_KEY
Dify Env: VOLCENGINE_TOS_ACCESS_KEYVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
VOLCENGINE_TOS_ACCESS_KEY
Dify Env: VOLCENGINE_TOS_ENDPOINTVariable

Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
VOLCENGINE_TOS_ENDPOINT
Dify Env: VOLCENGINE_TOS_REGIONVariable

Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
VOLCENGINE_TOS_REGION
Dify Env: BAIDU_OBS_BUCKET_NAMEVariable

Baidu OBS Storage Configuration Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
BAIDU_OBS_BUCKET_NAME
Dify Env: BAIDU_OBS_SECRET_KEYVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
BAIDU_OBS_SECRET_KEY
Dify Env: BAIDU_OBS_ACCESS_KEYVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
BAIDU_OBS_ACCESS_KEY
Dify Env: BAIDU_OBS_ENDPOINTVariable

Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
BAIDU_OBS_ENDPOINT
Dify Env: SUPABASE_BUCKET_NAMEVariable

Supabase Storage Configuration Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
SUPABASE_BUCKET_NAME
Dify Env: SUPABASE_API_KEYVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
SUPABASE_API_KEY
Dify Env: SUPABASE_URLVariable

Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
SUPABASE_URL
Dify Env: VECTOR_INDEX_NAME_PREFIXVariable

Prefix used to create collection name in vector database

Cible
VECTOR_INDEX_NAME_PREFIX
Défaut
Vector_index
Valeur
Vector_index
Dify Env: WEAVIATE_TOKENIZATIONVariable

Upstream Dify self-hosted environment variable.

Cible
WEAVIATE_TOKENIZATION
Défaut
word
Valeur
word
Dify Env: QDRANT_CLIENT_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Cible
QDRANT_CLIENT_TIMEOUT
Défaut
20
Valeur
20
Dify Env: QDRANT_GRPC_ENABLEDVariable

Upstream Dify self-hosted environment variable.

Cible
QDRANT_GRPC_ENABLED
Défaut
false|true
Valeur
false
Dify Env: QDRANT_GRPC_PORTVariable

Upstream Dify self-hosted environment variable.

Cible
QDRANT_GRPC_PORT
Défaut
6334
Valeur
6334
Dify Env: QDRANT_REPLICATION_FACTORVariable

Upstream Dify self-hosted environment variable.

Cible
QDRANT_REPLICATION_FACTOR
Défaut
1
Valeur
1
Dify Env: MILVUS_URIVariable

Milvus configuration. Only available when VECTOR_STORE is `milvus`. The milvus uri.

Cible
MILVUS_URI
Défaut
http://host.docker.internal:19530
Valeur
http://host.docker.internal:19530
Dify Env: MILVUS_DATABASEVariable

Upstream Dify self-hosted environment variable.

Cible
MILVUS_DATABASE
Dify Env: MILVUS_TOKENVariable

Upstream Dify self-hosted environment variable.

Cible
MILVUS_TOKEN
Dify Env: MILVUS_USERVariable

Upstream Dify self-hosted environment variable.

Cible
MILVUS_USER
Dify Env: MILVUS_PASSWORDVariable

Upstream Dify self-hosted environment variable.

Cible
MILVUS_PASSWORD
Dify Env: MILVUS_ENABLE_HYBRID_SEARCHVariable

Upstream Dify self-hosted environment variable.

Cible
MILVUS_ENABLE_HYBRID_SEARCH
Défaut
False|True
Valeur
False
Dify Env: MILVUS_ANALYZER_PARAMSVariable

Upstream Dify self-hosted environment variable.

Cible
MILVUS_ANALYZER_PARAMS
Dify Env: MYSCALE_HOSTVariable

MyScale configuration, only available when VECTOR_STORE is `myscale` For multi-language support, please set MYSCALE_FTS_PARAMS with referring to: https://myscale.com/docs/en/text-search/#understanding-fts-index-parameters Official default: 'myscale'.

Cible
MYSCALE_HOST
Dify Env: MYSCALE_PORTVariable

Upstream Dify self-hosted environment variable.

Cible
MYSCALE_PORT
Défaut
8123
Valeur
8123
Dify Env: MYSCALE_USERVariable

Upstream Dify self-hosted environment variable.

Cible
MYSCALE_USER
Défaut
default
Valeur
default
Dify Env: MYSCALE_PASSWORDVariable

Upstream Dify self-hosted environment variable.

Cible
MYSCALE_PASSWORD
Dify Env: MYSCALE_DATABASEVariable

Upstream Dify self-hosted environment variable.

Cible
MYSCALE_DATABASE
Défaut
dify
Valeur
dify
Dify Env: MYSCALE_FTS_PARAMSVariable

Upstream Dify self-hosted environment variable.

Cible
MYSCALE_FTS_PARAMS
Dify Env: COUCHBASE_CONNECTION_STRINGVariable

Couchbase configurations, only available when VECTOR_STORE is `couchbase` The connection string must include hostname defined in the docker-compose file (couchbase-server in this case) Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
COUCHBASE_CONNECTION_STRING
Dify Env: COUCHBASE_USERVariable

Upstream Dify self-hosted environment variable.

Cible
COUCHBASE_USER
Défaut
Administrator
Valeur
Administrator
Dify Env: COUCHBASE_PASSWORDVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
COUCHBASE_PASSWORD
Dify Env: COUCHBASE_BUCKET_NAMEVariable

Upstream Dify self-hosted environment variable.

Cible
COUCHBASE_BUCKET_NAME
Défaut
Embeddings
Valeur
Embeddings
Dify Env: COUCHBASE_SCOPE_NAMEVariable

Upstream Dify self-hosted environment variable.

Cible
COUCHBASE_SCOPE_NAME
Défaut
_default
Valeur
_default
Dify Env: HOLOGRES_HOSTVariable

Hologres configurations, only available when VECTOR_STORE is `hologres` access_key_id is used as the PG username, access_key_secret is used as the PG password

Cible
HOLOGRES_HOST
Dify Env: HOLOGRES_PORTVariable

Upstream Dify self-hosted environment variable.

Cible
HOLOGRES_PORT
Défaut
80
Valeur
80
Dify Env: HOLOGRES_DATABASEVariable

Upstream Dify self-hosted environment variable.

Cible
HOLOGRES_DATABASE
Dify Env: HOLOGRES_ACCESS_KEY_IDVariable

Upstream Dify self-hosted environment variable.

Cible
HOLOGRES_ACCESS_KEY_ID
Dify Env: HOLOGRES_ACCESS_KEY_SECRETVariable

Upstream Dify self-hosted environment variable.

Cible
HOLOGRES_ACCESS_KEY_SECRET
Dify Env: HOLOGRES_SCHEMAVariable

Upstream Dify self-hosted environment variable.

Cible
HOLOGRES_SCHEMA
Défaut
public
Valeur
public
Dify Env: HOLOGRES_TOKENIZERVariable

Upstream Dify self-hosted environment variable.

Cible
HOLOGRES_TOKENIZER
Défaut
jieba
Valeur
jieba
Dify Env: HOLOGRES_DISTANCE_METHODVariable

Upstream Dify self-hosted environment variable.

Cible
HOLOGRES_DISTANCE_METHOD
Défaut
Cosine
Valeur
Cosine
Dify Env: HOLOGRES_BASE_QUANTIZATION_TYPEVariable

Upstream Dify self-hosted environment variable.

Cible
HOLOGRES_BASE_QUANTIZATION_TYPE
Défaut
rabitq
Valeur
rabitq
Dify Env: HOLOGRES_MAX_DEGREEVariable

Upstream Dify self-hosted environment variable.

Cible
HOLOGRES_MAX_DEGREE
Défaut
64
Valeur
64
Dify Env: HOLOGRES_EF_CONSTRUCTIONVariable

Upstream Dify self-hosted environment variable.

Cible
HOLOGRES_EF_CONSTRUCTION
Défaut
400
Valeur
400
Dify Env: PGVECTOR_MIN_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Cible
PGVECTOR_MIN_CONNECTION
Défaut
1
Valeur
1
Dify Env: PGVECTOR_MAX_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Cible
PGVECTOR_MAX_CONNECTION
Défaut
5
Valeur
5
Dify Env: PGVECTOR_PG_BIGMVariable

Upstream Dify self-hosted environment variable.

Cible
PGVECTOR_PG_BIGM
Défaut
false|true
Valeur
false
Dify Env: PGVECTOR_PG_BIGM_VERSIONVariable

Upstream Dify self-hosted environment variable.

Cible
PGVECTOR_PG_BIGM_VERSION
Défaut
1.2-20240606
Valeur
1.2-20240606
Dify Env: VASTBASE_HOSTVariable

vastbase configurations, only available when VECTOR_STORE is `vastbase` Official default: 'vastbase'.

Cible
VASTBASE_HOST
Dify Env: VASTBASE_PORTVariable

Upstream Dify self-hosted environment variable.

Cible
VASTBASE_PORT
Défaut
5432
Valeur
5432
Dify Env: VASTBASE_USERVariable

Upstream Dify self-hosted environment variable.

Cible
VASTBASE_USER
Défaut
dify
Valeur
dify
Dify Env: VASTBASE_PASSWORDVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
VASTBASE_PASSWORD
Dify Env: VASTBASE_DATABASEVariable

Upstream Dify self-hosted environment variable.

Cible
VASTBASE_DATABASE
Défaut
dify
Valeur
dify
Dify Env: VASTBASE_MIN_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Cible
VASTBASE_MIN_CONNECTION
Défaut
1
Valeur
1
Dify Env: VASTBASE_MAX_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Cible
VASTBASE_MAX_CONNECTION
Défaut
5
Valeur
5
Dify Env: PGVECTO_RS_HOSTVariable

pgvecto-rs configurations, only available when VECTOR_STORE is `pgvecto-rs` Official default: 'pgvecto-rs'.

Cible
PGVECTO_RS_HOST
Dify Env: PGVECTO_RS_PORTVariable

Upstream Dify self-hosted environment variable.

Cible
PGVECTO_RS_PORT
Défaut
5432
Valeur
5432
Dify Env: PGVECTO_RS_USERVariable

Upstream Dify self-hosted environment variable.

Cible
PGVECTO_RS_USER
Défaut
postgres
Valeur
postgres
Dify Env: PGVECTO_RS_PASSWORDVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
PGVECTO_RS_PASSWORD
Dify Env: PGVECTO_RS_DATABASEVariable

Upstream Dify self-hosted environment variable.

Cible
PGVECTO_RS_DATABASE
Défaut
dify
Valeur
dify
Dify Env: ANALYTICDB_KEY_IDVariable

analyticdb configurations, only available when VECTOR_STORE is `analyticdb` Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
ANALYTICDB_KEY_ID
Dify Env: ANALYTICDB_KEY_SECRETVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
ANALYTICDB_KEY_SECRET
Dify Env: ANALYTICDB_REGION_IDVariable

Upstream Dify self-hosted environment variable.

Cible
ANALYTICDB_REGION_ID
Défaut
cn-hangzhou
Valeur
cn-hangzhou
Dify Env: ANALYTICDB_INSTANCE_IDVariable

Upstream Dify self-hosted environment variable.

Cible
ANALYTICDB_INSTANCE_ID
Défaut
gp-ab123456
Valeur
gp-ab123456
Dify Env: ANALYTICDB_ACCOUNTVariable

Upstream Dify self-hosted environment variable.

Cible
ANALYTICDB_ACCOUNT
Défaut
testaccount
Valeur
testaccount
Dify Env: ANALYTICDB_PASSWORDVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
ANALYTICDB_PASSWORD
Dify Env: ANALYTICDB_NAMESPACEVariable

Upstream Dify self-hosted environment variable.

Cible
ANALYTICDB_NAMESPACE
Défaut
dify
Valeur
dify
Dify Env: ANALYTICDB_NAMESPACE_PASSWORDVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
ANALYTICDB_NAMESPACE_PASSWORD
Dify Env: ANALYTICDB_HOSTVariable

Upstream Dify self-hosted environment variable. Official default: 'gp-test.aliyuncs.com'.

Cible
ANALYTICDB_HOST
Dify Env: ANALYTICDB_PORTVariable

Upstream Dify self-hosted environment variable.

Cible
ANALYTICDB_PORT
Défaut
5432
Valeur
5432
Dify Env: ANALYTICDB_MIN_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Cible
ANALYTICDB_MIN_CONNECTION
Défaut
1
Valeur
1
Dify Env: ANALYTICDB_MAX_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Cible
ANALYTICDB_MAX_CONNECTION
Défaut
5
Valeur
5
Dify Env: TIDB_VECTOR_HOSTVariable

TiDB vector configurations, only available when VECTOR_STORE is `tidb_vector` Official default: 'tidb'.

Cible
TIDB_VECTOR_HOST
Dify Env: TIDB_VECTOR_PORTVariable

Upstream Dify self-hosted environment variable.

Cible
TIDB_VECTOR_PORT
Défaut
4000
Valeur
4000
Dify Env: TIDB_VECTOR_USERVariable

Upstream Dify self-hosted environment variable.

Cible
TIDB_VECTOR_USER
Dify Env: TIDB_VECTOR_PASSWORDVariable

Upstream Dify self-hosted environment variable.

Cible
TIDB_VECTOR_PASSWORD
Dify Env: TIDB_VECTOR_DATABASEVariable

Upstream Dify self-hosted environment variable.

Cible
TIDB_VECTOR_DATABASE
Défaut
dify
Valeur
dify
Dify Env: MATRIXONE_HOSTVariable

Matrixone vector configurations. Official default: 'matrixone'.

Cible
MATRIXONE_HOST
Dify Env: MATRIXONE_PORTVariable

Upstream Dify self-hosted environment variable.

Cible
MATRIXONE_PORT
Défaut
6001
Valeur
6001
Dify Env: MATRIXONE_USERVariable

Upstream Dify self-hosted environment variable.

Cible
MATRIXONE_USER
Défaut
dump
Valeur
dump
Dify Env: MATRIXONE_PASSWORDVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
MATRIXONE_PASSWORD
Dify Env: MATRIXONE_DATABASEVariable

Upstream Dify self-hosted environment variable.

Cible
MATRIXONE_DATABASE
Défaut
dify
Valeur
dify
Dify Env: TIDB_ON_QDRANT_URLVariable

Tidb on qdrant configuration, only available when VECTOR_STORE is `tidb_on_qdrant` Official default: 'http://127.0.0.1'.

Cible
TIDB_ON_QDRANT_URL
Dify Env: TIDB_ON_QDRANT_API_KEYVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
TIDB_ON_QDRANT_API_KEY
Dify Env: TIDB_ON_QDRANT_CLIENT_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Cible
TIDB_ON_QDRANT_CLIENT_TIMEOUT
Défaut
20
Valeur
20
Dify Env: TIDB_ON_QDRANT_GRPC_ENABLEDVariable

Upstream Dify self-hosted environment variable.

Cible
TIDB_ON_QDRANT_GRPC_ENABLED
Défaut
false|true
Valeur
false
Dify Env: TIDB_ON_QDRANT_GRPC_PORTVariable

Upstream Dify self-hosted environment variable.

Cible
TIDB_ON_QDRANT_GRPC_PORT
Défaut
6334
Valeur
6334
Dify Env: CHROMA_HOSTVariable

Chroma configuration, only available when VECTOR_STORE is `chroma` Official default: '127.0.0.1'.

Cible
CHROMA_HOST
Dify Env: CHROMA_PORTVariable

Upstream Dify self-hosted environment variable.

Cible
CHROMA_PORT
Défaut
8000
Valeur
8000
Dify Env: CHROMA_TENANTVariable

Upstream Dify self-hosted environment variable.

Cible
CHROMA_TENANT
Défaut
default_tenant
Valeur
default_tenant
Dify Env: CHROMA_DATABASEVariable

Upstream Dify self-hosted environment variable.

Cible
CHROMA_DATABASE
Défaut
default_database
Valeur
default_database
Dify Env: CHROMA_AUTH_PROVIDERVariable

Upstream Dify self-hosted environment variable.

Cible
CHROMA_AUTH_PROVIDER
Défaut
chromadb.auth.token_authn.TokenAuthClientProvider
Valeur
chromadb.auth.token_authn.TokenAuthClientProvider
Dify Env: CHROMA_AUTH_CREDENTIALSVariable

Upstream Dify self-hosted environment variable.

Cible
CHROMA_AUTH_CREDENTIALS
Dify Env: ORACLE_USERVariable

Oracle configuration, only available when VECTOR_STORE is `oracle`

Cible
ORACLE_USER
Défaut
dify
Valeur
dify
Dify Env: ORACLE_PASSWORDVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
ORACLE_PASSWORD
Dify Env: ORACLE_DSNVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
ORACLE_DSN
Dify Env: ORACLE_CONFIG_DIRVariable

Upstream Dify self-hosted environment variable.

Cible
ORACLE_CONFIG_DIR
Défaut
/app/api/storage/wallet
Valeur
/app/api/storage/wallet
Dify Env: ORACLE_WALLET_LOCATIONVariable

Upstream Dify self-hosted environment variable.

Cible
ORACLE_WALLET_LOCATION
Défaut
/app/api/storage/wallet
Valeur
/app/api/storage/wallet
Dify Env: ORACLE_WALLET_PASSWORDVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
ORACLE_WALLET_PASSWORD
Dify Env: ORACLE_IS_AUTONOMOUSVariable

Upstream Dify self-hosted environment variable.

Cible
ORACLE_IS_AUTONOMOUS
Défaut
false|true
Valeur
false
Dify Env: ALIBABACLOUD_MYSQL_HOSTVariable

AlibabaCloud MySQL configuration, only available when VECTOR_STORE is `alibabacloud_mysql` Official default: '127.0.0.1'.

Cible
ALIBABACLOUD_MYSQL_HOST
Dify Env: ALIBABACLOUD_MYSQL_PORTVariable

Upstream Dify self-hosted environment variable.

Cible
ALIBABACLOUD_MYSQL_PORT
Défaut
3306
Valeur
3306
Dify Env: ALIBABACLOUD_MYSQL_USERVariable

Upstream Dify self-hosted environment variable.

Cible
ALIBABACLOUD_MYSQL_USER
Défaut
root
Valeur
root
Dify Env: ALIBABACLOUD_MYSQL_PASSWORDVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
ALIBABACLOUD_MYSQL_PASSWORD
Dify Env: ALIBABACLOUD_MYSQL_DATABASEVariable

Upstream Dify self-hosted environment variable.

Cible
ALIBABACLOUD_MYSQL_DATABASE
Défaut
dify
Valeur
dify
Dify Env: ALIBABACLOUD_MYSQL_MAX_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Cible
ALIBABACLOUD_MYSQL_MAX_CONNECTION
Défaut
5
Valeur
5
Dify Env: ALIBABACLOUD_MYSQL_HNSW_MVariable

Upstream Dify self-hosted environment variable.

Cible
ALIBABACLOUD_MYSQL_HNSW_M
Défaut
6
Valeur
6
Dify Env: RELYT_HOSTVariable

relyt configurations, only available when VECTOR_STORE is `relyt` Official default: 'db'.

Cible
RELYT_HOST
Dify Env: RELYT_PORTVariable

Upstream Dify self-hosted environment variable.

Cible
RELYT_PORT
Défaut
5432
Valeur
5432
Dify Env: RELYT_USERVariable

Upstream Dify self-hosted environment variable.

Cible
RELYT_USER
Défaut
postgres
Valeur
postgres
Dify Env: RELYT_PASSWORDVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
RELYT_PASSWORD
Dify Env: RELYT_DATABASEVariable

Upstream Dify self-hosted environment variable.

Cible
RELYT_DATABASE
Défaut
postgres
Valeur
postgres
Dify Env: OPENSEARCH_HOSTVariable

open search configuration, only available when VECTOR_STORE is `opensearch` Official default: 'opensearch'.

Cible
OPENSEARCH_HOST
Dify Env: OPENSEARCH_PORTVariable

Upstream Dify self-hosted environment variable.

Cible
OPENSEARCH_PORT
Défaut
9200
Valeur
9200
Dify Env: OPENSEARCH_SECUREVariable

Upstream Dify self-hosted environment variable.

Cible
OPENSEARCH_SECURE
Défaut
true|false
Valeur
true
Dify Env: OPENSEARCH_VERIFY_CERTSVariable

Upstream Dify self-hosted environment variable.

Cible
OPENSEARCH_VERIFY_CERTS
Défaut
true|false
Valeur
true
Dify Env: OPENSEARCH_AUTH_METHODVariable

Upstream Dify self-hosted environment variable.

Cible
OPENSEARCH_AUTH_METHOD
Défaut
basic
Valeur
basic
Dify Env: OPENSEARCH_USERVariable

Upstream Dify self-hosted environment variable.

Cible
OPENSEARCH_USER
Défaut
admin
Valeur
admin
Dify Env: OPENSEARCH_PASSWORDVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
OPENSEARCH_PASSWORD
Dify Env: OPENSEARCH_AWS_REGIONVariable

If using AWS managed IAM, e.g. Managed Cluster or OpenSearch Serverless

Cible
OPENSEARCH_AWS_REGION
Défaut
ap-southeast-1
Valeur
ap-southeast-1
Dify Env: OPENSEARCH_AWS_SERVICEVariable

Upstream Dify self-hosted environment variable.

Cible
OPENSEARCH_AWS_SERVICE
Défaut
aoss
Valeur
aoss
Dify Env: TENCENT_VECTOR_DB_URLVariable

tencent vector configurations, only available when VECTOR_STORE is `tencent` Official default: 'http://127.0.0.1'.

Cible
TENCENT_VECTOR_DB_URL
Dify Env: TENCENT_VECTOR_DB_API_KEYVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
TENCENT_VECTOR_DB_API_KEY
Dify Env: TENCENT_VECTOR_DB_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Cible
TENCENT_VECTOR_DB_TIMEOUT
Défaut
30
Valeur
30
Dify Env: TENCENT_VECTOR_DB_USERNAMEVariable

Upstream Dify self-hosted environment variable.

Cible
TENCENT_VECTOR_DB_USERNAME
Défaut
dify
Valeur
dify
Dify Env: TENCENT_VECTOR_DB_DATABASEVariable

Upstream Dify self-hosted environment variable.

Cible
TENCENT_VECTOR_DB_DATABASE
Défaut
dify
Valeur
dify
Dify Env: TENCENT_VECTOR_DB_SHARDVariable

Upstream Dify self-hosted environment variable.

Cible
TENCENT_VECTOR_DB_SHARD
Défaut
1
Valeur
1
Dify Env: TENCENT_VECTOR_DB_REPLICASVariable

Upstream Dify self-hosted environment variable.

Cible
TENCENT_VECTOR_DB_REPLICAS
Défaut
2
Valeur
2
Dify Env: TENCENT_VECTOR_DB_ENABLE_HYBRID_SEARCHVariable

Upstream Dify self-hosted environment variable.

Cible
TENCENT_VECTOR_DB_ENABLE_HYBRID_SEARCH
Défaut
false|true
Valeur
false
Dify Env: ELASTICSEARCH_HOSTVariable

ElasticSearch configuration, only available when VECTOR_STORE is `elasticsearch` Official default: '0.0.0.0'.

Cible
ELASTICSEARCH_HOST
Dify Env: ELASTICSEARCH_PORTVariable

Upstream Dify self-hosted environment variable.

Cible
ELASTICSEARCH_PORT
Défaut
9200
Valeur
9200
Dify Env: ELASTICSEARCH_USERNAMEVariable

Upstream Dify self-hosted environment variable.

Cible
ELASTICSEARCH_USERNAME
Défaut
elastic
Valeur
elastic
Dify Env: ELASTICSEARCH_PASSWORDVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
ELASTICSEARCH_PASSWORD
Dify Env: ELASTICSEARCH_USE_CLOUDVariable

Using ElasticSearch Cloud Serverless, or not.

Cible
ELASTICSEARCH_USE_CLOUD
Défaut
false|true
Valeur
false
Dify Env: ELASTICSEARCH_CLOUD_URLVariable

Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
ELASTICSEARCH_CLOUD_URL
Dify Env: ELASTICSEARCH_API_KEYVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
ELASTICSEARCH_API_KEY
Dify Env: ELASTICSEARCH_VERIFY_CERTSVariable

Upstream Dify self-hosted environment variable.

Cible
ELASTICSEARCH_VERIFY_CERTS
Défaut
False|True
Valeur
False
Dify Env: ELASTICSEARCH_CA_CERTSVariable

Upstream Dify self-hosted environment variable.

Cible
ELASTICSEARCH_CA_CERTS
Dify Env: ELASTICSEARCH_REQUEST_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Cible
ELASTICSEARCH_REQUEST_TIMEOUT
Défaut
100000
Valeur
100000
Dify Env: ELASTICSEARCH_RETRY_ON_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Cible
ELASTICSEARCH_RETRY_ON_TIMEOUT
Défaut
True|False
Valeur
True
Dify Env: ELASTICSEARCH_MAX_RETRIESVariable

Upstream Dify self-hosted environment variable.

Cible
ELASTICSEARCH_MAX_RETRIES
Défaut
10
Valeur
10
Dify Env: BAIDU_VECTOR_DB_ENDPOINTVariable

baidu vector configurations, only available when VECTOR_STORE is `baidu` Official default: 'http://127.0.0.1:5287'.

Cible
BAIDU_VECTOR_DB_ENDPOINT
Dify Env: BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MSVariable

Upstream Dify self-hosted environment variable.

Cible
BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS
Défaut
30000
Valeur
30000
Dify Env: BAIDU_VECTOR_DB_ACCOUNTVariable

Upstream Dify self-hosted environment variable.

Cible
BAIDU_VECTOR_DB_ACCOUNT
Défaut
root
Valeur
root
Dify Env: BAIDU_VECTOR_DB_API_KEYVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
BAIDU_VECTOR_DB_API_KEY
Dify Env: BAIDU_VECTOR_DB_DATABASEVariable

Upstream Dify self-hosted environment variable.

Cible
BAIDU_VECTOR_DB_DATABASE
Défaut
dify
Valeur
dify
Dify Env: BAIDU_VECTOR_DB_SHARDVariable

Upstream Dify self-hosted environment variable.

Cible
BAIDU_VECTOR_DB_SHARD
Défaut
1
Valeur
1
Dify Env: BAIDU_VECTOR_DB_REPLICASVariable

Upstream Dify self-hosted environment variable.

Cible
BAIDU_VECTOR_DB_REPLICAS
Défaut
3
Valeur
3
Dify Env: BAIDU_VECTOR_DB_INVERTED_INDEX_ANALYZERVariable

Upstream Dify self-hosted environment variable.

Cible
BAIDU_VECTOR_DB_INVERTED_INDEX_ANALYZER
Défaut
DEFAULT_ANALYZER
Valeur
DEFAULT_ANALYZER
Dify Env: BAIDU_VECTOR_DB_INVERTED_INDEX_PARSER_MODEVariable

Upstream Dify self-hosted environment variable.

Cible
BAIDU_VECTOR_DB_INVERTED_INDEX_PARSER_MODE
Défaut
COARSE_MODE
Valeur
COARSE_MODE
Dify Env: BAIDU_VECTOR_DB_AUTO_BUILD_ROW_COUNT_INCREMENTVariable

Upstream Dify self-hosted environment variable.

Cible
BAIDU_VECTOR_DB_AUTO_BUILD_ROW_COUNT_INCREMENT
Défaut
500
Valeur
500
Dify Env: BAIDU_VECTOR_DB_AUTO_BUILD_ROW_COUNT_INCREMENT_RATIOVariable

Upstream Dify self-hosted environment variable.

Cible
BAIDU_VECTOR_DB_AUTO_BUILD_ROW_COUNT_INCREMENT_RATIO
Défaut
0.05
Valeur
0.05
Dify Env: BAIDU_VECTOR_DB_REBUILD_INDEX_TIMEOUT_IN_SECONDSVariable

Upstream Dify self-hosted environment variable.

Cible
BAIDU_VECTOR_DB_REBUILD_INDEX_TIMEOUT_IN_SECONDS
Défaut
300
Valeur
300
Dify Env: VIKINGDB_ACCESS_KEYVariable

VikingDB configurations, only available when VECTOR_STORE is `vikingdb` Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
VIKINGDB_ACCESS_KEY
Dify Env: VIKINGDB_SECRET_KEYVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
VIKINGDB_SECRET_KEY
Dify Env: VIKINGDB_REGIONVariable

Upstream Dify self-hosted environment variable.

Cible
VIKINGDB_REGION
Défaut
cn-shanghai
Valeur
cn-shanghai
Dify Env: VIKINGDB_HOSTVariable

Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
VIKINGDB_HOST
Dify Env: VIKINGDB_SCHEMAVariable

Upstream Dify self-hosted environment variable.

Cible
VIKINGDB_SCHEMA
Défaut
http
Valeur
http
Dify Env: VIKINGDB_CONNECTION_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Cible
VIKINGDB_CONNECTION_TIMEOUT
Défaut
30
Valeur
30
Dify Env: VIKINGDB_SOCKET_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Cible
VIKINGDB_SOCKET_TIMEOUT
Défaut
30
Valeur
30
Dify Env: LINDORM_URLVariable

Lindorm configuration, only available when VECTOR_STORE is `lindorm` Official default: 'http://localhost:30070'.

Cible
LINDORM_URL
Dify Env: LINDORM_USERNAMEVariable

Upstream Dify self-hosted environment variable.

Cible
LINDORM_USERNAME
Défaut
admin
Valeur
admin
Dify Env: LINDORM_PASSWORDVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
LINDORM_PASSWORD
Dify Env: LINDORM_USING_UGCVariable

Upstream Dify self-hosted environment variable.

Cible
LINDORM_USING_UGC
Défaut
True|False
Valeur
True
Dify Env: LINDORM_QUERY_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Cible
LINDORM_QUERY_TIMEOUT
Défaut
1
Valeur
1
Dify Env: OPENGAUSS_HOSTVariable

opengauss configurations, only available when VECTOR_STORE is `opengauss` Official default: 'opengauss'.

Cible
OPENGAUSS_HOST
Dify Env: OPENGAUSS_PORTVariable

Upstream Dify self-hosted environment variable.

Cible
OPENGAUSS_PORT
Défaut
6600
Valeur
6600
Dify Env: OPENGAUSS_USERVariable

Upstream Dify self-hosted environment variable.

Cible
OPENGAUSS_USER
Défaut
postgres
Valeur
postgres
Dify Env: OPENGAUSS_PASSWORDVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
OPENGAUSS_PASSWORD
Dify Env: OPENGAUSS_DATABASEVariable

Upstream Dify self-hosted environment variable.

Cible
OPENGAUSS_DATABASE
Défaut
dify
Valeur
dify
Dify Env: OPENGAUSS_MIN_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Cible
OPENGAUSS_MIN_CONNECTION
Défaut
1
Valeur
1
Dify Env: OPENGAUSS_MAX_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Cible
OPENGAUSS_MAX_CONNECTION
Défaut
5
Valeur
5
Dify Env: OPENGAUSS_ENABLE_PQVariable

Upstream Dify self-hosted environment variable.

Cible
OPENGAUSS_ENABLE_PQ
Défaut
false|true
Valeur
false
Dify Env: HUAWEI_CLOUD_HOSTSVariable

huawei cloud search service vector configurations, only available when VECTOR_STORE is `huawei_cloud` Official default: 'https://127.0.0.1:9200'.

Cible
HUAWEI_CLOUD_HOSTS
Dify Env: HUAWEI_CLOUD_USERVariable

Upstream Dify self-hosted environment variable.

Cible
HUAWEI_CLOUD_USER
Défaut
admin
Valeur
admin
Dify Env: HUAWEI_CLOUD_PASSWORDVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
HUAWEI_CLOUD_PASSWORD
Dify Env: UPSTASH_VECTOR_URLVariable

Upstash Vector configuration, only available when VECTOR_STORE is `upstash` Upstream ships a placeholder value; the AIO template intentionally leaves it blank.

Cible
UPSTASH_VECTOR_URL
Dify Env: UPSTASH_VECTOR_TOKENVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
UPSTASH_VECTOR_TOKEN
Dify Env: TABLESTORE_ENDPOINTVariable

TableStore Vector configuration (only used when VECTOR_STORE is tablestore) Official default: 'https://instance-name.cn-hangzhou.ots.aliyuncs.com'.

Cible
TABLESTORE_ENDPOINT
Dify Env: TABLESTORE_INSTANCE_NAMEVariable

Upstream Dify self-hosted environment variable.

Cible
TABLESTORE_INSTANCE_NAME
Défaut
instance-name
Valeur
instance-name
Dify Env: TABLESTORE_ACCESS_KEY_IDVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
TABLESTORE_ACCESS_KEY_ID
Dify Env: TABLESTORE_ACCESS_KEY_SECRETVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
TABLESTORE_ACCESS_KEY_SECRET
Dify Env: TABLESTORE_NORMALIZE_FULLTEXT_BM25_SCOREVariable

Upstream Dify self-hosted environment variable.

Cible
TABLESTORE_NORMALIZE_FULLTEXT_BM25_SCORE
Défaut
false|true
Valeur
false
Dify Env: CLICKZETTA_USERNAMEVariable

Clickzetta configuration, only available when VECTOR_STORE is `clickzetta`

Cible
CLICKZETTA_USERNAME
Dify Env: CLICKZETTA_PASSWORDVariable

Upstream Dify self-hosted environment variable.

Cible
CLICKZETTA_PASSWORD
Dify Env: CLICKZETTA_INSTANCEVariable

Upstream Dify self-hosted environment variable.

Cible
CLICKZETTA_INSTANCE
Dify Env: CLICKZETTA_SERVICEVariable

Upstream Dify self-hosted environment variable.

Cible
CLICKZETTA_SERVICE
Défaut
api.clickzetta.com
Valeur
api.clickzetta.com
Dify Env: CLICKZETTA_WORKSPACEVariable

Upstream Dify self-hosted environment variable.

Cible
CLICKZETTA_WORKSPACE
Défaut
quick_start
Valeur
quick_start
Dify Env: CLICKZETTA_VCLUSTERVariable

Upstream Dify self-hosted environment variable.

Cible
CLICKZETTA_VCLUSTER
Défaut
default_ap
Valeur
default_ap
Dify Env: CLICKZETTA_SCHEMAVariable

Upstream Dify self-hosted environment variable.

Cible
CLICKZETTA_SCHEMA
Défaut
dify
Valeur
dify
Dify Env: CLICKZETTA_BATCH_SIZEVariable

Upstream Dify self-hosted environment variable.

Cible
CLICKZETTA_BATCH_SIZE
Défaut
100
Valeur
100
Dify Env: CLICKZETTA_ENABLE_INVERTED_INDEXVariable

Upstream Dify self-hosted environment variable.

Cible
CLICKZETTA_ENABLE_INVERTED_INDEX
Défaut
true|false
Valeur
true
Dify Env: CLICKZETTA_ANALYZER_TYPEVariable

Upstream Dify self-hosted environment variable.

Cible
CLICKZETTA_ANALYZER_TYPE
Défaut
chinese
Valeur
chinese
Dify Env: CLICKZETTA_ANALYZER_MODEVariable

Upstream Dify self-hosted environment variable.

Cible
CLICKZETTA_ANALYZER_MODE
Défaut
smart
Valeur
smart
Dify Env: CLICKZETTA_VECTOR_DISTANCE_FUNCTIONVariable

Upstream Dify self-hosted environment variable.

Cible
CLICKZETTA_VECTOR_DISTANCE_FUNCTION
Défaut
cosine_distance
Valeur
cosine_distance
Dify Env: IRIS_HOSTVariable

InterSystems IRIS configuration, only available when VECTOR_STORE is `iris` Official default: 'iris'.

Cible
IRIS_HOST
Dify Env: IRIS_SUPER_SERVER_PORTVariable

Upstream Dify self-hosted environment variable.

Cible
IRIS_SUPER_SERVER_PORT
Défaut
1972
Valeur
1972
Dify Env: IRIS_WEB_SERVER_PORTVariable

Upstream Dify self-hosted environment variable.

Cible
IRIS_WEB_SERVER_PORT
Défaut
52773
Valeur
52773
Dify Env: IRIS_USERVariable

Upstream Dify self-hosted environment variable.

Cible
IRIS_USER
Défaut
_SYSTEM
Valeur
_SYSTEM
Dify Env: IRIS_PASSWORDVariable

Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.

Cible
IRIS_PASSWORD
Dify Env: IRIS_DATABASEVariable

Upstream Dify self-hosted environment variable.

Cible
IRIS_DATABASE
Défaut
USER
Valeur
USER
Dify Env: IRIS_SCHEMAVariable

Upstream Dify self-hosted environment variable.

Cible
IRIS_SCHEMA
Défaut
dify
Valeur
dify
Dify Env: IRIS_CONNECTION_URLVariable

Upstream Dify self-hosted environment variable.

Cible
IRIS_CONNECTION_URL
Dify Env: IRIS_MIN_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Cible
IRIS_MIN_CONNECTION
Défaut
1
Valeur
1
Dify Env: IRIS_MAX_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Cible
IRIS_MAX_CONNECTION
Défaut
3
Valeur
3
Dify Env: IRIS_TEXT_INDEXVariable

Upstream Dify self-hosted environment variable.

Cible
IRIS_TEXT_INDEX
Défaut
true|false
Valeur
true
Dify Env: IRIS_TEXT_INDEX_LANGUAGEVariable

Upstream Dify self-hosted environment variable.

Cible
IRIS_TEXT_INDEX_LANGUAGE
Défaut
en
Valeur
en
Dify Env: IRIS_TIMEZONEVariable

Upstream Dify self-hosted environment variable.

Cible
IRIS_TIMEZONE
Défaut
UTC
Valeur
UTC
Dify Env: UPLOAD_FILE_SIZE_LIMITVariable

Upload file size limit, default 15M.

Cible
UPLOAD_FILE_SIZE_LIMIT
Défaut
15
Valeur
15
Dify Env: UPLOAD_FILE_BATCH_LIMITVariable

The maximum number of files that can be uploaded at a time, default 5.

Cible
UPLOAD_FILE_BATCH_LIMIT
Défaut
5
Valeur
5
Dify Env: UPLOAD_FILE_EXTENSION_BLACKLISTVariable

Comma-separated list of file extensions blocked from upload for security reasons. Extensions should be lowercase without dots (e.g., exe,bat,sh,dll). Empty by default to allow all file types. Recommended: exe,bat,cmd,com,scr,vbs,ps1,msi,dll

Cible
UPLOAD_FILE_EXTENSION_BLACKLIST
Dify Env: ATTACHMENT_IMAGE_FILE_SIZE_LIMITVariable

Maximum allowed image file size for attachments in megabytes, default 2.

Cible
ATTACHMENT_IMAGE_FILE_SIZE_LIMIT
Défaut
2
Valeur
2
Dify Env: ATTACHMENT_IMAGE_DOWNLOAD_TIMEOUTVariable

Timeout for downloading image attachments in seconds, default 60.

Cible
ATTACHMENT_IMAGE_DOWNLOAD_TIMEOUT
Défaut
60
Valeur
60
Dify Env: ETL_TYPEVariable

ETL type, support: `dify`, `Unstructured` `dify` Dify's proprietary file extraction scheme `Unstructured` Unstructured.io file extraction scheme

Cible
ETL_TYPE
Défaut
dify|Unstructured
Valeur
dify
Dify Env: UNSTRUCTURED_API_URLVariable

Unstructured API path and API key, needs to be configured when ETL_TYPE is Unstructured Or using Unstructured for document extractor node for pptx. For example: http://unstructured:8000/general/v0/general

Cible
UNSTRUCTURED_API_URL
Dify Env: UNSTRUCTURED_API_KEYVariable

Upstream Dify self-hosted environment variable.

Cible
UNSTRUCTURED_API_KEY
Dify Env: PROMPT_GENERATION_MAX_TOKENSVariable

The maximum number of tokens allowed for prompt generation. This setting controls the upper limit of tokens that can be used by the LLM when generating a prompt in the prompt generation tool. Default: 512 tokens.

Cible
PROMPT_GENERATION_MAX_TOKENS
Défaut
512
Valeur
512
Dify Env: CODE_GENERATION_MAX_TOKENSVariable

The maximum number of tokens allowed for code generation. This setting controls the upper limit of tokens that can be used by the LLM when generating code in the code generation tool. Default: 1024 tokens.

Cible
CODE_GENERATION_MAX_TOKENS
Défaut
1024
Valeur
1024
Dify Env: MULTIMODAL_SEND_FORMATVariable

The format of the image/video/audio/document sent when the multi-modal model is input, the default is base64, optional url. The delay of the call in url mode will be lower than that in base64 mode. It is generally recommended to use the more compatible base64 mode. If...

Cible
MULTIMODAL_SEND_FORMAT
Défaut
base64
Valeur
base64
Dify Env: UPLOAD_IMAGE_FILE_SIZE_LIMITVariable

Upload image file size limit, default 10M.

Cible
UPLOAD_IMAGE_FILE_SIZE_LIMIT
Défaut
10
Valeur
10
Dify Env: UPLOAD_VIDEO_FILE_SIZE_LIMITVariable

Upload video file size limit, default 100M.

Cible
UPLOAD_VIDEO_FILE_SIZE_LIMIT
Défaut
100
Valeur
100
Dify Env: UPLOAD_AUDIO_FILE_SIZE_LIMITVariable

Upload audio file size limit, default 50M.

Cible
UPLOAD_AUDIO_FILE_SIZE_LIMIT
Défaut
50
Valeur
50
Dify Env: SENTRY_DSNVariable

Sentry Configuration Used for application monitoring and error log tracking.

Cible
SENTRY_DSN
Dify Env: PLUGIN_SENTRY_ENABLEDVariable

Plugin_daemon Service Sentry DSN address, default is empty, when empty, all monitoring information is not reported to Sentry. If not set, Sentry error reporting will be disabled.

Cible
PLUGIN_SENTRY_ENABLED
Défaut
false|true
Valeur
false
Dify Env: PLUGIN_SENTRY_DSNVariable

Upstream Dify self-hosted environment variable.

Cible
PLUGIN_SENTRY_DSN
Dify Env: NOTION_INTEGRATION_TYPEVariable

Configure as "public" or "internal". Since Notion's OAuth redirect URL only supports HTTPS, if deploying locally, please use Notion's internal integration.

Cible
NOTION_INTEGRATION_TYPE
Défaut
public
Valeur
public
Dify Env: NOTION_CLIENT_SECRETVariable

Notion OAuth client secret (used for public integration type)

Cible
NOTION_CLIENT_SECRET
Dify Env: NOTION_CLIENT_IDVariable

Notion OAuth client id (used for public integration type)

Cible
NOTION_CLIENT_ID
Dify Env: NOTION_INTERNAL_SECRETVariable

Notion internal integration secret. If the value of NOTION_INTEGRATION_TYPE is "internal", you need to configure this variable.

Cible
NOTION_INTERNAL_SECRET
Dify Env: RESEND_API_URLVariable

API-Key for the Resend email provider, used when MAIL_TYPE is `resend`. Official default: 'https://api.resend.com'.

Cible
RESEND_API_URL
Dify Env: SMTP_USE_TLSVariable

Upstream Dify self-hosted environment variable.

Cible
SMTP_USE_TLS
Défaut
true|false
Valeur
true
Dify Env: SMTP_OPPORTUNISTIC_TLSVariable

Upstream Dify self-hosted environment variable.

Cible
SMTP_OPPORTUNISTIC_TLS
Défaut
false|true
Valeur
false
Dify Env: SMTP_LOCAL_HOSTNAMEVariable

Optional: override the local hostname used for SMTP HELO/EHLO

Cible
SMTP_LOCAL_HOSTNAME
Dify Env: INDEXING_MAX_SEGMENTATION_TOKENS_LENGTHVariable

Maximum length of segmentation tokens for indexing

Cible
INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH
Défaut
4000
Valeur
4000
Dify Env: INVITE_EXPIRY_HOURSVariable

Member invitation link valid time (hours), Default: 72.

Cible
INVITE_EXPIRY_HOURS
Défaut
72
Valeur
72
Dify Env: RESET_PASSWORD_TOKEN_EXPIRY_MINUTESVariable

Reset password token valid time (minutes),

Cible
RESET_PASSWORD_TOKEN_EXPIRY_MINUTES
Défaut
5
Valeur
5
Dify Env: EMAIL_REGISTER_TOKEN_EXPIRY_MINUTESVariable

Upstream Dify self-hosted environment variable.

Cible
EMAIL_REGISTER_TOKEN_EXPIRY_MINUTES
Défaut
5
Valeur
5
Dify Env: CHANGE_EMAIL_TOKEN_EXPIRY_MINUTESVariable

Upstream Dify self-hosted environment variable.

Cible
CHANGE_EMAIL_TOKEN_EXPIRY_MINUTES
Défaut
5
Valeur
5
Dify Env: OWNER_TRANSFER_TOKEN_EXPIRY_MINUTESVariable

Upstream Dify self-hosted environment variable.

Cible
OWNER_TRANSFER_TOKEN_EXPIRY_MINUTES
Défaut
5
Valeur
5
Dify Env: CODE_EXECUTION_SSL_VERIFYVariable

Upstream Dify self-hosted environment variable.

Cible
CODE_EXECUTION_SSL_VERIFY
Défaut
True|False
Valeur
True
Dify Env: CODE_EXECUTION_POOL_MAX_CONNECTIONSVariable

Upstream Dify self-hosted environment variable.

Cible
CODE_EXECUTION_POOL_MAX_CONNECTIONS
Défaut
100
Valeur
100
Dify Env: CODE_EXECUTION_POOL_MAX_KEEPALIVE_CONNECTIONSVariable

Upstream Dify self-hosted environment variable.

Cible
CODE_EXECUTION_POOL_MAX_KEEPALIVE_CONNECTIONS
Défaut
20
Valeur
20
Dify Env: CODE_EXECUTION_POOL_KEEPALIVE_EXPIRYVariable

Upstream Dify self-hosted environment variable.

Cible
CODE_EXECUTION_POOL_KEEPALIVE_EXPIRY
Défaut
5.0
Valeur
5.0
Dify Env: CODE_EXECUTION_CONNECT_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Cible
CODE_EXECUTION_CONNECT_TIMEOUT
Défaut
10
Valeur
10
Dify Env: CODE_EXECUTION_READ_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Cible
CODE_EXECUTION_READ_TIMEOUT
Défaut
60
Valeur
60
Dify Env: CODE_EXECUTION_WRITE_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Cible
CODE_EXECUTION_WRITE_TIMEOUT
Défaut
10
Valeur
10
Dify Env: WORKFLOW_MAX_EXECUTION_STEPSVariable

Workflow runtime configuration

Cible
WORKFLOW_MAX_EXECUTION_STEPS
Défaut
500
Valeur
500
Dify Env: WORKFLOW_MAX_EXECUTION_TIMEVariable

Upstream Dify self-hosted environment variable.

Cible
WORKFLOW_MAX_EXECUTION_TIME
Défaut
1200
Valeur
1200
Dify Env: WORKFLOW_CALL_MAX_DEPTHVariable

Upstream Dify self-hosted environment variable.

Cible
WORKFLOW_CALL_MAX_DEPTH
Défaut
5
Valeur
5
Dify Env: WORKFLOW_FILE_UPLOAD_LIMITVariable

Upstream Dify self-hosted environment variable.

Cible
WORKFLOW_FILE_UPLOAD_LIMIT
Défaut
10
Valeur
10
Dify Env: WORKFLOW_LOG_CLEANUP_ENABLEDVariable

Workflow log cleanup configuration Enable automatic cleanup of workflow run logs to manage database size

Cible
WORKFLOW_LOG_CLEANUP_ENABLED
Défaut
false|true
Valeur
false
Dify Env: WORKFLOW_LOG_RETENTION_DAYSVariable

Number of days to retain workflow run logs (default: 30 days)

Cible
WORKFLOW_LOG_RETENTION_DAYS
Défaut
30
Valeur
30
Dify Env: WORKFLOW_LOG_CLEANUP_BATCH_SIZEVariable

Batch size for workflow log cleanup operations (default: 100)

Cible
WORKFLOW_LOG_CLEANUP_BATCH_SIZE
Défaut
100
Valeur
100
Dify Env: WORKFLOW_LOG_CLEANUP_SPECIFIC_WORKFLOW_IDSVariable

Comma-separated list of workflow IDs to clean logs for

Cible
WORKFLOW_LOG_CLEANUP_SPECIFIC_WORKFLOW_IDS
Dify Env: LOGSTORE_DUAL_WRITE_ENABLEDVariable

Enable dual-write to both SLS LogStore and SQL database (default: false)

Cible
LOGSTORE_DUAL_WRITE_ENABLED
Défaut
false|true
Valeur
false
Dify Env: LOGSTORE_DUAL_READ_ENABLEDVariable

Enable dual-read fallback to SQL database when LogStore returns no results (default: true) Useful for migration scenarios where historical data exists only in SQL database

Cible
LOGSTORE_DUAL_READ_ENABLED
Défaut
true|false
Valeur
true
Dify Env: LOGSTORE_ENABLE_PUT_GRAPH_FIELDVariable

Control flag for whether to write the `graph` field to LogStore. If LOGSTORE_ENABLE_PUT_GRAPH_FIELD is "true", write the full `graph` field; otherwise write an empty {} instead. Defaults to writing the `graph` field.

Cible
LOGSTORE_ENABLE_PUT_GRAPH_FIELD
Défaut
true|false
Valeur
true
Dify Env: HTTP_REQUEST_NODE_MAX_BINARY_SIZEVariable

HTTP request node in workflow configuration

Cible
HTTP_REQUEST_NODE_MAX_BINARY_SIZE
Défaut
10485760
Valeur
10485760
Dify Env: HTTP_REQUEST_NODE_MAX_TEXT_SIZEVariable

Upstream Dify self-hosted environment variable.

Cible
HTTP_REQUEST_NODE_MAX_TEXT_SIZE
Défaut
1048576
Valeur
1048576
Dify Env: HTTP_REQUEST_NODE_SSL_VERIFYVariable

Upstream Dify self-hosted environment variable.

Cible
HTTP_REQUEST_NODE_SSL_VERIFY
Défaut
True|False
Valeur
True
Dify Env: HTTP_REQUEST_MAX_CONNECT_TIMEOUTVariable

HTTP request node timeout configuration Maximum timeout values (in seconds) that users can set in HTTP request nodes - Connect timeout: Time to wait for establishing connection (default: 10s) - Read timeout: Time to wait for receiving response data (default: 600s, 10 minutes)...

Cible
HTTP_REQUEST_MAX_CONNECT_TIMEOUT
Défaut
10
Valeur
10
Dify Env: HTTP_REQUEST_MAX_READ_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Cible
HTTP_REQUEST_MAX_READ_TIMEOUT
Défaut
600
Valeur
600
Dify Env: HTTP_REQUEST_MAX_WRITE_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Cible
HTTP_REQUEST_MAX_WRITE_TIMEOUT
Défaut
600
Valeur
600
Dify Env: TEXT_GENERATION_TIMEOUT_MSVariable

The timeout for the text generation in millisecond

Cible
TEXT_GENERATION_TIMEOUT_MS
Défaut
60000
Valeur
60000
Dify Env: ALLOW_INLINE_STYLESVariable

Allow inline style attributes in Markdown rendering. Enable this if your workflows use Jinja2 templates with styled HTML. Only recommended for self-hosted deployments with trusted content.

Cible
ALLOW_INLINE_STYLES
Défaut
false|true
Valeur
false
Dify Env: ALLOW_UNSAFE_DATA_SCHEMEVariable

Allow rendering unsafe URLs which have "data:" scheme.

Cible
ALLOW_UNSAFE_DATA_SCHEME
Défaut
false|true
Valeur
false
Dify Env: SANDBOX_GIN_MODEVariable

The mode in which the Gin framework runs

Cible
SANDBOX_GIN_MODE
Défaut
release
Valeur
release
Dify Env: ORACLE_PWDVariable

Environment Variables for Oracle Service (only used when VECTOR_STORE is oracle)

Cible
ORACLE_PWD
Défaut
Dify123456
Valeur
Dify123456
Dify Env: ORACLE_CHARACTERSETVariable

Upstream Dify self-hosted environment variable.

Cible
ORACLE_CHARACTERSET
Défaut
AL32UTF8
Valeur
AL32UTF8
Dify Env: MILVUS_AUTHORIZATION_ENABLEDVariable

Enable or disable security authorization

Cible
MILVUS_AUTHORIZATION_ENABLED
Défaut
true|false
Valeur
true
Dify Env: SSRF_HTTP_PORTVariable

Environment Variables for SSRF Proxy

Cible
SSRF_HTTP_PORT
Défaut
3128
Valeur
3128
Dify Env: SSRF_DEFAULT_TIME_OUTVariable

Upstream Dify self-hosted environment variable.

Cible
SSRF_DEFAULT_TIME_OUT
Défaut
5
Valeur
5
Dify Env: SSRF_DEFAULT_CONNECT_TIME_OUTVariable

Upstream Dify self-hosted environment variable.

Cible
SSRF_DEFAULT_CONNECT_TIME_OUT
Défaut
5
Valeur
5
Dify Env: SSRF_DEFAULT_READ_TIME_OUTVariable

Upstream Dify self-hosted environment variable.

Cible
SSRF_DEFAULT_READ_TIME_OUT
Défaut
5
Valeur
5
Dify Env: SSRF_DEFAULT_WRITE_TIME_OUTVariable

Upstream Dify self-hosted environment variable.

Cible
SSRF_DEFAULT_WRITE_TIME_OUT
Défaut
5
Valeur
5
Dify Env: SSRF_POOL_MAX_CONNECTIONSVariable

Upstream Dify self-hosted environment variable.

Cible
SSRF_POOL_MAX_CONNECTIONS
Défaut
100
Valeur
100
Dify Env: SSRF_POOL_MAX_KEEPALIVE_CONNECTIONSVariable

Upstream Dify self-hosted environment variable.

Cible
SSRF_POOL_MAX_KEEPALIVE_CONNECTIONS
Défaut
20
Valeur
20
Dify Env: SSRF_POOL_KEEPALIVE_EXPIRYVariable

Upstream Dify self-hosted environment variable.

Cible
SSRF_POOL_KEEPALIVE_EXPIRY
Défaut
5.0
Valeur
5.0
Dify Env: POSITION_TOOL_PINSVariable

Pin, include, and exclude tools Use comma-separated values with no spaces between items. Example: POSITION_TOOL_PINS=bing,google

Cible
POSITION_TOOL_PINS
Dify Env: POSITION_TOOL_INCLUDESVariable

Upstream Dify self-hosted environment variable.

Cible
POSITION_TOOL_INCLUDES
Dify Env: POSITION_TOOL_EXCLUDESVariable

Upstream Dify self-hosted environment variable.

Cible
POSITION_TOOL_EXCLUDES
Dify Env: POSITION_PROVIDER_PINSVariable

Pin, include, and exclude model providers Use comma-separated values with no spaces between items. Example: POSITION_PROVIDER_PINS=openai,openllm

Cible
POSITION_PROVIDER_PINS
Dify Env: POSITION_PROVIDER_INCLUDESVariable

Upstream Dify self-hosted environment variable.

Cible
POSITION_PROVIDER_INCLUDES
Dify Env: POSITION_PROVIDER_EXCLUDESVariable

Upstream Dify self-hosted environment variable.

Cible
POSITION_PROVIDER_EXCLUDES
Dify Env: CSP_WHITELISTVariable

CSP https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP

Cible
CSP_WHITELIST
Dify Env: PLUGIN_STORAGE_TYPEVariable

https://github.com/langgenius/dify-plugin-daemon/blob/main/.env.example Plugin storage type, local aws_s3 tencent_cos azure_blob aliyun_oss volcengine_tos

Cible
PLUGIN_STORAGE_TYPE
Défaut
local|aws_s3|tencent_cos|azure_blob|aliyun_oss|volcengine_tos
Valeur
local
Dify Env: PLUGIN_STORAGE_OSS_BUCKETVariable

Plugin oss bucket

Cible
PLUGIN_STORAGE_OSS_BUCKET
Dify Env: PLUGIN_S3_USE_AWSVariable

Plugin oss s3 credentials

Cible
PLUGIN_S3_USE_AWS
Défaut
false|true
Valeur
false
Dify Env: PLUGIN_S3_USE_AWS_MANAGED_IAMVariable

Upstream Dify self-hosted environment variable.

Cible
PLUGIN_S3_USE_AWS_MANAGED_IAM
Défaut
false|true
Valeur
false
Dify Env: PLUGIN_S3_ENDPOINTVariable

Upstream Dify self-hosted environment variable.

Cible
PLUGIN_S3_ENDPOINT
Dify Env: PLUGIN_S3_USE_PATH_STYLEVariable

Upstream Dify self-hosted environment variable.

Cible
PLUGIN_S3_USE_PATH_STYLE
Défaut
false|true
Valeur
false
Dify Env: PLUGIN_AWS_ACCESS_KEYVariable

Upstream Dify self-hosted environment variable.

Cible
PLUGIN_AWS_ACCESS_KEY
Dify Env: PLUGIN_AWS_SECRET_KEYVariable

Upstream Dify self-hosted environment variable.

Cible
PLUGIN_AWS_SECRET_KEY
Dify Env: PLUGIN_AWS_REGIONVariable

Upstream Dify self-hosted environment variable.

Cible
PLUGIN_AWS_REGION
Dify Env: PLUGIN_AZURE_BLOB_STORAGE_CONTAINER_NAMEVariable

Plugin oss azure blob

Cible
PLUGIN_AZURE_BLOB_STORAGE_CONTAINER_NAME
Dify Env: PLUGIN_AZURE_BLOB_STORAGE_CONNECTION_STRINGVariable

Upstream Dify self-hosted environment variable.

Cible
PLUGIN_AZURE_BLOB_STORAGE_CONNECTION_STRING
Dify Env: PLUGIN_TENCENT_COS_SECRET_KEYVariable

Plugin oss tencent cos

Cible
PLUGIN_TENCENT_COS_SECRET_KEY
Dify Env: PLUGIN_TENCENT_COS_SECRET_IDVariable

Upstream Dify self-hosted environment variable.

Cible
PLUGIN_TENCENT_COS_SECRET_ID
Dify Env: PLUGIN_TENCENT_COS_REGIONVariable

Upstream Dify self-hosted environment variable.

Cible
PLUGIN_TENCENT_COS_REGION
Dify Env: PLUGIN_ALIYUN_OSS_REGIONVariable

Plugin oss aliyun oss

Cible
PLUGIN_ALIYUN_OSS_REGION
Dify Env: PLUGIN_ALIYUN_OSS_ENDPOINTVariable

Upstream Dify self-hosted environment variable.

Cible
PLUGIN_ALIYUN_OSS_ENDPOINT
Dify Env: PLUGIN_ALIYUN_OSS_ACCESS_KEY_IDVariable

Upstream Dify self-hosted environment variable.

Cible
PLUGIN_ALIYUN_OSS_ACCESS_KEY_ID
Dify Env: PLUGIN_ALIYUN_OSS_ACCESS_KEY_SECRETVariable

Upstream Dify self-hosted environment variable.

Cible
PLUGIN_ALIYUN_OSS_ACCESS_KEY_SECRET
Dify Env: PLUGIN_ALIYUN_OSS_AUTH_VERSIONVariable

Upstream Dify self-hosted environment variable.

Cible
PLUGIN_ALIYUN_OSS_AUTH_VERSION
Défaut
v4
Valeur
v4
Dify Env: PLUGIN_ALIYUN_OSS_PATHVariable

Upstream Dify self-hosted environment variable.

Cible
PLUGIN_ALIYUN_OSS_PATH
Dify Env: PLUGIN_VOLCENGINE_TOS_ENDPOINTVariable

Plugin oss volcengine tos

Cible
PLUGIN_VOLCENGINE_TOS_ENDPOINT
Dify Env: PLUGIN_VOLCENGINE_TOS_ACCESS_KEYVariable

Upstream Dify self-hosted environment variable.

Cible
PLUGIN_VOLCENGINE_TOS_ACCESS_KEY
Dify Env: PLUGIN_VOLCENGINE_TOS_SECRET_KEYVariable

Upstream Dify self-hosted environment variable.

Cible
PLUGIN_VOLCENGINE_TOS_SECRET_KEY
Dify Env: PLUGIN_VOLCENGINE_TOS_REGIONVariable

Upstream Dify self-hosted environment variable.

Cible
PLUGIN_VOLCENGINE_TOS_REGION
Dify Env: OTEL_EXPORTER_OTLP_PROTOCOLVariable

Upstream Dify self-hosted environment variable.

Cible
OTEL_EXPORTER_OTLP_PROTOCOL
Dify Env: OTEL_EXPORTER_TYPEVariable

Upstream Dify self-hosted environment variable.

Cible
OTEL_EXPORTER_TYPE
Défaut
otlp
Valeur
otlp
Dify Env: OTEL_SAMPLING_RATEVariable

Upstream Dify self-hosted environment variable.

Cible
OTEL_SAMPLING_RATE
Défaut
0.1
Valeur
0.1
Dify Env: OTEL_BATCH_EXPORT_SCHEDULE_DELAYVariable

Upstream Dify self-hosted environment variable.

Cible
OTEL_BATCH_EXPORT_SCHEDULE_DELAY
Défaut
5000
Valeur
5000
Dify Env: OTEL_MAX_QUEUE_SIZEVariable

Upstream Dify self-hosted environment variable.

Cible
OTEL_MAX_QUEUE_SIZE
Défaut
2048
Valeur
2048
Dify Env: OTEL_MAX_EXPORT_BATCH_SIZEVariable

Upstream Dify self-hosted environment variable.

Cible
OTEL_MAX_EXPORT_BATCH_SIZE
Défaut
512
Valeur
512
Dify Env: OTEL_METRIC_EXPORT_INTERVALVariable

Upstream Dify self-hosted environment variable.

Cible
OTEL_METRIC_EXPORT_INTERVAL
Défaut
60000
Valeur
60000
Dify Env: OTEL_BATCH_EXPORT_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Cible
OTEL_BATCH_EXPORT_TIMEOUT
Défaut
10000
Valeur
10000
Dify Env: OTEL_METRIC_EXPORT_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Cible
OTEL_METRIC_EXPORT_TIMEOUT
Défaut
30000
Valeur
30000
Dify Env: ALLOW_EMBEDVariable

Prevent Clickjacking

Cible
ALLOW_EMBED
Défaut
false|true
Valeur
false
Dify Env: DATASET_MAX_SEGMENTS_PER_REQUESTVariable

Maximum number of segments for dataset segments API (0 for unlimited)

Cible
DATASET_MAX_SEGMENTS_PER_REQUEST
Défaut
0
Valeur
0
Dify Env: ENABLE_CLEAN_EMBEDDING_CACHE_TASKVariable

Celery schedule tasks configuration

Cible
ENABLE_CLEAN_EMBEDDING_CACHE_TASK
Défaut
false|true
Valeur
false
Dify Env: ENABLE_CLEAN_UNUSED_DATASETS_TASKVariable

Upstream Dify self-hosted environment variable.

Cible
ENABLE_CLEAN_UNUSED_DATASETS_TASK
Défaut
false|true
Valeur
false
Dify Env: ENABLE_CLEAN_MESSAGESVariable

Upstream Dify self-hosted environment variable.

Cible
ENABLE_CLEAN_MESSAGES
Défaut
false|true
Valeur
false
Dify Env: ENABLE_WORKFLOW_RUN_CLEANUP_TASKVariable

Upstream Dify self-hosted environment variable.

Cible
ENABLE_WORKFLOW_RUN_CLEANUP_TASK
Défaut
false|true
Valeur
false
Dify Env: ENABLE_MAIL_CLEAN_DOCUMENT_NOTIFY_TASKVariable

Upstream Dify self-hosted environment variable.

Cible
ENABLE_MAIL_CLEAN_DOCUMENT_NOTIFY_TASK
Défaut
false|true
Valeur
false
Dify Env: ENABLE_WORKFLOW_SCHEDULE_POLLER_TASKVariable

Upstream Dify self-hosted environment variable.

Cible
ENABLE_WORKFLOW_SCHEDULE_POLLER_TASK
Défaut
true|false
Valeur
true
Dify Env: WORKFLOW_SCHEDULE_POLLER_INTERVALVariable

Upstream Dify self-hosted environment variable.

Cible
WORKFLOW_SCHEDULE_POLLER_INTERVAL
Défaut
1
Valeur
1
Dify Env: WORKFLOW_SCHEDULE_POLLER_BATCH_SIZEVariable

Upstream Dify self-hosted environment variable.

Cible
WORKFLOW_SCHEDULE_POLLER_BATCH_SIZE
Défaut
100
Valeur
100
Dify Env: WORKFLOW_SCHEDULE_MAX_DISPATCH_PER_TICKVariable

Upstream Dify self-hosted environment variable.

Cible
WORKFLOW_SCHEDULE_MAX_DISPATCH_PER_TICK
Défaut
0
Valeur
0
Dify Env: SANDBOX_EXPIRED_RECORDS_CLEAN_GRACEFUL_PERIODVariable

Sandbox expired records clean configuration

Cible
SANDBOX_EXPIRED_RECORDS_CLEAN_GRACEFUL_PERIOD
Défaut
21
Valeur
21
Dify Env: SANDBOX_EXPIRED_RECORDS_CLEAN_BATCH_SIZEVariable

Upstream Dify self-hosted environment variable.

Cible
SANDBOX_EXPIRED_RECORDS_CLEAN_BATCH_SIZE
Défaut
1000
Valeur
1000
Dify Env: SANDBOX_EXPIRED_RECORDS_CLEAN_BATCH_MAX_INTERVALVariable

Upstream Dify self-hosted environment variable.

Cible
SANDBOX_EXPIRED_RECORDS_CLEAN_BATCH_MAX_INTERVAL
Défaut
200
Valeur
200
Dify Env: SANDBOX_EXPIRED_RECORDS_RETENTION_DAYSVariable

Upstream Dify self-hosted environment variable.

Cible
SANDBOX_EXPIRED_RECORDS_RETENTION_DAYS
Défaut
30
Valeur
30
Dify Env: ENABLE_HUMAN_INPUT_TIMEOUT_TASKVariable

Whether to Enable human input timeout check task

Cible
ENABLE_HUMAN_INPUT_TIMEOUT_TASK
Défaut
true|false
Valeur
true
Dify Env: HUMAN_INPUT_TIMEOUT_TASK_INTERVALVariable

Human input timeout check interval in minutes

Cible
HUMAN_INPUT_TIMEOUT_TASK_INTERVAL
Défaut
1
Valeur
1
Dify Env: SANDBOX_EXPIRED_RECORDS_CLEAN_TASK_LOCK_TTLVariable

Upstream Dify self-hosted environment variable.

Cible
SANDBOX_EXPIRED_RECORDS_CLEAN_TASK_LOCK_TTL
Défaut
90000
Valeur
90000

Télécharger les statistiques

2,748
Total des téléchargements

Détails

Référentiel
jsonbored/dify-aio:latest
Dernière mise à jour2026-05-26
Première vue2026-04-30

Exécutez dify-aio sur Unraid.

dify-aio est listé dans Community Apps pour Unraid OS. Explorez Unraid pour créer un serveur domestique flexible, un NAS ou un laboratoire domestique.