dify-aio

dify-aio

Docker-Anwendung from JSONbored's Repository

Übersicht

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.

Anforderungen

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.

Laufzeit-Argumente

Web-UI
http://[IP]:[PORT:8080]
Netzwerk
bridge
Shell
sh
Privilegiert
false

Konfiguration der Vorlage

Web UI PortPorttcp

Dify Web UI and API gateway port.

Ziel
8080
Standard
8080
Wert
8080
AppDataPathrw

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

Ziel
/appdata
Standard
/mnt/user/appdata/dify-aio
Wert
/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.

Ziel
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.

Ziel
INIT_PASSWORD
TimezoneVariable

Container timezone.

Ziel
TZ
Standard
UTC
Wert
UTC
Deploy EnvironmentVariable

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

Ziel
DEPLOY_ENV
Standard
PRODUCTION|TESTING
Wert
PRODUCTION
Dify Update Check URLVariable

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

Ziel
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.

Ziel
SECRET_KEY
Use Internal PostgreSQLVariable

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

Ziel
DIFY_USE_INTERNAL_POSTGRES
Standard
true|false
Wert
true
Database TypeVariable

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

Ziel
DB_TYPE
Standard
postgresql|mysql|oceanbase|seekdb
Wert
postgresql
Database HostVariable

PostgreSQL host. Keep 127.0.0.1 for bundled PostgreSQL.

Ziel
DB_HOST
Standard
127.0.0.1
Wert
127.0.0.1
Database PortVariable

PostgreSQL port.

Ziel
DB_PORT
Standard
5432
Wert
5432
Database UserVariable

PostgreSQL user for Dify.

Ziel
DB_USERNAME
Standard
dify
Wert
dify
Database PasswordVariable

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

Ziel
DB_PASSWORD
Database NameVariable

PostgreSQL database used by the Dify API.

Ziel
DB_DATABASE
Standard
dify
Wert
dify
Plugin Database NameVariable

PostgreSQL database used by the Dify plugin daemon.

Ziel
DB_PLUGIN_DATABASE
Standard
dify_plugin
Wert
dify_plugin
Use Internal RedisVariable

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

Ziel
DIFY_USE_INTERNAL_REDIS
Standard
true|false
Wert
true
Redis HostVariable

Redis host. Keep 127.0.0.1 for bundled Redis.

Ziel
REDIS_HOST
Standard
127.0.0.1
Wert
127.0.0.1
Redis PortVariable

Redis port.

Ziel
REDIS_PORT
Standard
6379
Wert
6379
Redis PasswordVariable

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

Ziel
REDIS_PASSWORD
Celery Broker URLVariable

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

Ziel
CELERY_BROKER_URL
Console API URLVariable

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

Ziel
CONSOLE_API_URL
Console Web URLVariable

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

Ziel
CONSOLE_WEB_URL
Service API URLVariable

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

Ziel
SERVICE_API_URL
Trigger URLVariable

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

Ziel
TRIGGER_URL
App API URLVariable

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

Ziel
APP_API_URL
App Web URLVariable

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

Ziel
APP_WEB_URL
Files URLVariable

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

Ziel
FILES_URL
Internal Files URLVariable

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

Ziel
INTERNAL_FILES_URL
Next Public Socket URLVariable

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

Ziel
NEXT_PUBLIC_SOCKET_URL
Log FileVariable

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

Ziel
LOG_FILE
Log TimezoneVariable

Optional Dify log timezone. Leave blank to inherit TZ.

Ziel
LOG_TZ
API Bind AddressVariable

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

Ziel
DIFY_BIND_ADDRESS
Standard
127.0.0.1
Wert
127.0.0.1
Server WorkersVariable

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

Ziel
SERVER_WORKER_AMOUNT
Standard
1
Wert
1
Server Worker ClassVariable

Gunicorn worker class. The AIO default supports collaboration WebSockets.

Ziel
SERVER_WORKER_CLASS
Standard
geventwebsocket.gunicorn.workers.GeventWebSocketWorker
Wert
geventwebsocket.gunicorn.workers.GeventWebSocketWorker
Celery WorkersVariable

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

Ziel
CELERY_WORKER_AMOUNT
Standard
2
Wert
2
Celery Worker ClassVariable

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

Ziel
CELERY_WORKER_CLASS
Standard
gevent
Wert
gevent
Gunicorn TimeoutVariable

API request timeout in seconds.

Ziel
GUNICORN_TIMEOUT
Standard
360
Wert
360
Vector StoreVariable

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

Ziel
VECTOR_STORE
Standard
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
Wert
pgvector
PGVector HostVariable

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

Ziel
PGVECTOR_HOST
PGVector PortVariable

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

Ziel
PGVECTOR_PORT
PGVector UserVariable

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

Ziel
PGVECTOR_USER
PGVector PasswordVariable

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

Ziel
PGVECTOR_PASSWORD
PGVector DatabaseVariable

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

Ziel
PGVECTOR_DATABASE
Qdrant URLVariable

External Qdrant URL when Vector Store is qdrant.

Ziel
QDRANT_URL
Qdrant API KeyVariable

External Qdrant API key when required.

Ziel
QDRANT_API_KEY
Weaviate EndpointVariable

External Weaviate HTTP endpoint when Vector Store is weaviate.

Ziel
WEAVIATE_ENDPOINT
Weaviate API KeyVariable

External Weaviate API key when required.

Ziel
WEAVIATE_API_KEY
Weaviate GRPC EndpointVariable

External Weaviate gRPC endpoint when required.

Ziel
WEAVIATE_GRPC_ENDPOINT
Storage TypeVariable

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

Ziel
STORAGE_TYPE
Standard
opendal|s3|azure-blob|google-storage|aliyun-oss|tencent-cos|huawei-obs|oci-storage|volcengine-tos|baidu-obs|supabase|clickzetta-volume
Wert
opendal
OpenDAL SchemeVariable

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

Ziel
OPENDAL_SCHEME
Standard
fs
Wert
fs
OpenDAL Filesystem RootVariable

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

Ziel
OPENDAL_FS_ROOT
S3 EndpointVariable

S3-compatible storage endpoint when using S3 storage.

Ziel
S3_ENDPOINT
S3 RegionVariable

S3 region.

Ziel
S3_REGION
Standard
us-east-1
Wert
us-east-1
S3 Bucket NameVariable

S3 bucket for Dify files.

Ziel
S3_BUCKET_NAME
S3 Access KeyVariable

S3 access key.

Ziel
S3_ACCESS_KEY
S3 Secret KeyVariable

S3 secret key.

Ziel
S3_SECRET_KEY
Enable SandboxVariable

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

Ziel
DIFY_ENABLE_SANDBOX
Standard
true|false
Wert
true
Sandbox API KeyVariable

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

Ziel
SANDBOX_API_KEY
Code Execution EndpointVariable

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

Ziel
CODE_EXECUTION_ENDPOINT
Code Execution API KeyVariable

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

Ziel
CODE_EXECUTION_API_KEY
Sandbox Network AccessVariable

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

Ziel
SANDBOX_ENABLE_NETWORK
Standard
true|false
Wert
true
Sandbox Worker TimeoutVariable

Sandbox execution timeout in seconds.

Ziel
SANDBOX_WORKER_TIMEOUT
Standard
15
Wert
15
Sandbox PortVariable

Sandbox service port. Leave blank for 8194.

Ziel
SANDBOX_PORT
Sandbox HTTP ProxyVariable

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

Ziel
SANDBOX_HTTP_PROXY
Sandbox HTTPS ProxyVariable

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

Ziel
SANDBOX_HTTPS_PROXY
SSRF HTTP Proxy URLVariable

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

Ziel
SSRF_PROXY_HTTP_URL
SSRF HTTPS Proxy URLVariable

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

Ziel
SSRF_PROXY_HTTPS_URL
SSRF Reverse Proxy PortVariable

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

Ziel
SSRF_REVERSE_PROXY_PORT
SSRF Sandbox HostVariable

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

Ziel
SSRF_SANDBOX_HOST
Plugin Daemon KeyVariable

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

Ziel
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.

Ziel
PLUGIN_DIFY_INNER_API_KEY
Plugin Daemon URLVariable

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

Ziel
PLUGIN_DAEMON_URL
Plugin Inner API URLVariable

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

Ziel
PLUGIN_DIFY_INNER_API_URL
Verify Plugin SignaturesVariable

Require signed plugins where Dify supports signature verification.

Ziel
FORCE_VERIFYING_SIGNATURE
Standard
true|false
Wert
true
Marketplace EnabledVariable

Enable the Dify plugin marketplace integration.

Ziel
MARKETPLACE_ENABLED
Standard
true|false
Wert
true
Mail TypeVariable

Mail provider used by Dify.

Ziel
MAIL_TYPE
Standard
resend|smtp|sendgrid
Wert
resend
Resend API KeyVariable

Resend API key when Mail Type is resend.

Ziel
RESEND_API_KEY
SendGrid API KeyVariable

SendGrid API key when Mail Type is sendgrid.

Ziel
SENDGRID_API_KEY
SMTP ServerVariable

SMTP host when Mail Type is smtp.

Ziel
SMTP_SERVER
SMTP PortVariable

SMTP port.

Ziel
SMTP_PORT
Standard
465
Wert
465
SMTP UsernameVariable

SMTP username.

Ziel
SMTP_USERNAME
SMTP PasswordVariable

SMTP password.

Ziel
SMTP_PASSWORD
Mail FromVariable

Default sender address for Dify email.

Ziel
MAIL_DEFAULT_SEND_FROM
Nginx PortVariable

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

Ziel
NGINX_PORT
Standard
8080
Wert
8080
Nginx Server NameVariable

Nginx server_name value.

Ziel
NGINX_SERVER_NAME
Standard
_
Wert
_
Nginx Client Max Body SizeVariable

Maximum request body size accepted by the bundled Nginx gateway.

Ziel
NGINX_CLIENT_MAX_BODY_SIZE
Standard
100M
Wert
100M
Nginx Proxy Read TimeoutVariable

Bundled Nginx proxy read timeout.

Ziel
NGINX_PROXY_READ_TIMEOUT
Standard
3600s
Wert
3600s
Nginx Proxy Send TimeoutVariable

Bundled Nginx proxy send timeout.

Ziel
NGINX_PROXY_SEND_TIMEOUT
Standard
3600s
Wert
3600s
Website FirecrawlVariable

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

Ziel
ENABLE_WEBSITE_FIRECRAWL
Standard
true|false
Wert
true
Website Jina ReaderVariable

Expose Jina Reader as a Dify website datasource option.

Ziel
ENABLE_WEBSITE_JINAREADER
Standard
true|false
Wert
true
Website WaterCrawlVariable

Expose WaterCrawl as a Dify website datasource option.

Ziel
ENABLE_WEBSITE_WATERCRAWL
Standard
true|false
Wert
true
Workflow Execution StorageVariable

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

Ziel
WORKFLOW_NODE_EXECUTION_STORAGE
Standard
rdbms|hybrid
Wert
rdbms
AIO Wait Timeout SecondsVariable

Startup wait timeout for internal service readiness checks.

Ziel
DIFY_AIO_WAIT_TIMEOUT_SECONDS
Standard
300
Wert
300
AIO Extra Env FileVariable

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

Ziel
DIFY_AIO_EXTRA_ENV_FILE
Standard
/appdata/config/extra.env
Wert
/appdata/config/extra.env
AIO LANG OverrideVariable

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

Ziel
DIFY_AIO_LANG
AIO LC_ALL OverrideVariable

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

Ziel
DIFY_AIO_LC_ALL
Dify Web PortVariable

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

Ziel
DIFY_WEB_PORT
Standard
3000
Wert
3000
Dify Web HostVariable

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

Ziel
DIFY_WEB_HOST
Standard
127.0.0.1
Wert
127.0.0.1
Plugin PlatformVariable

Plugin daemon platform mode. The AIO default is local.

Ziel
PLUGIN_PLATFORM
Standard
local
Wert
local
Plugin Remote Installing HostVariable

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

Ziel
PLUGIN_DEBUGGING_HOST
Standard
127.0.0.1
Wert
127.0.0.1
Plugin Remote Installing PortVariable

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

Ziel
PLUGIN_DEBUGGING_PORT
Standard
5003
Wert
5003
Plugin Max Package SizeVariable

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

Ziel
PLUGIN_MAX_PACKAGE_SIZE
Standard
52428800
Wert
52428800
Plugin Daemon PortVariable

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

Ziel
PLUGIN_DAEMON_PORT
Standard
5002
Wert
5002
Plugin DB SSL ModeVariable

Plugin daemon database SSL mode.

Ziel
DB_SSL_MODE
Standard
disable
Wert
disable
Sandbox Pip Mirror URLVariable

Optional Python package mirror URL used by the Dify sandbox.

Ziel
PIP_MIRROR_URL
Disable Next TelemetryVariable

Disable telemetry from the bundled Next.js web runtime.

Ziel
NEXT_TELEMETRY_DISABLED
Standard
1
Wert
1
Dify Env: LOG_LEVELVariable

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

Ziel
LOG_LEVEL
Standard
DEBUG|INFO|WARNING|ERROR|CRITICAL
Wert
INFO
Dify Env: LOG_OUTPUT_FORMATVariable

Log output format: text or json

Ziel
LOG_OUTPUT_FORMAT
Standard
text|json
Wert
text
Dify Env: LOG_FILE_MAX_SIZEVariable

Log file max size, the unit is MB

Ziel
LOG_FILE_MAX_SIZE
Standard
20
Wert
20
Dify Env: LOG_FILE_BACKUP_COUNTVariable

Log file max backup count

Ziel
LOG_FILE_BACKUP_COUNT
Standard
5
Wert
5
Dify Env: LOG_DATEFORMATVariable

Log dateformat

Ziel
LOG_DATEFORMAT
Standard
%Y-%m-%d %H:%M:%S
Wert
%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.

Ziel
DEBUG
Standard
false|true
Wert
false
Dify Env: FLASK_DEBUGVariable

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

Ziel
FLASK_DEBUG
Standard
false|true
Wert
false
Dify Env: ENABLE_REQUEST_LOGGINGVariable

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

Ziel
ENABLE_REQUEST_LOGGING
Standard
False|True
Wert
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.

Ziel
OPENAI_API_BASE
Standard
https://api.openai.com/v1
Wert
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.

Ziel
MIGRATION_ENABLED
Standard
true|false
Wert
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.

Ziel
FILES_ACCESS_TIMEOUT
Standard
300
Wert
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

Ziel
ENABLE_COLLABORATION_MODE
Standard
false|true
Wert
false
Dify Env: ACCESS_TOKEN_EXPIRE_MINUTESVariable

Access token expiration time in minutes

Ziel
ACCESS_TOKEN_EXPIRE_MINUTES
Standard
60
Wert
60
Dify Env: REFRESH_TOKEN_EXPIRE_DAYSVariable

Refresh token expiration time in days

Ziel
REFRESH_TOKEN_EXPIRE_DAYS
Standard
30
Wert
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.

Ziel
APP_DEFAULT_ACTIVE_REQUESTS
Standard
0
Wert
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.

Ziel
APP_MAX_ACTIVE_REQUESTS
Standard
0
Wert
0
Dify Env: APP_MAX_EXECUTION_TIMEVariable

Upstream Dify self-hosted environment variable.

Ziel
APP_MAX_EXECUTION_TIME
Standard
1200
Wert
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....

Ziel
CELERY_AUTO_SCALE
Standard
false|true
Wert
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.

Ziel
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.

Ziel
CELERY_MIN_WORKERS
Dify Env: API_TOOL_DEFAULT_CONNECT_TIMEOUTVariable

API Tool configuration

Ziel
API_TOOL_DEFAULT_CONNECT_TIMEOUT
Standard
10
Wert
10
Dify Env: API_TOOL_DEFAULT_READ_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Ziel
API_TOOL_DEFAULT_READ_TIMEOUT
Standard
60
Wert
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

Ziel
NEXT_PUBLIC_ENABLE_SINGLE_DOLLAR_LATEX
Standard
false|true
Wert
false
Dify Env: SQLALCHEMY_POOL_SIZEVariable

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

Ziel
SQLALCHEMY_POOL_SIZE
Standard
30
Wert
30
Dify Env: SQLALCHEMY_MAX_OVERFLOWVariable

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

Ziel
SQLALCHEMY_MAX_OVERFLOW
Standard
10
Wert
10
Dify Env: SQLALCHEMY_POOL_RECYCLEVariable

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

Ziel
SQLALCHEMY_POOL_RECYCLE
Standard
3600
Wert
3600
Dify Env: SQLALCHEMY_ECHOVariable

Whether to print SQL, default is false.

Ziel
SQLALCHEMY_ECHO
Standard
false|true
Wert
false
Dify Env: SQLALCHEMY_POOL_PRE_PINGVariable

If True, will test connections for liveness upon each checkout

Ziel
SQLALCHEMY_POOL_PRE_PING
Standard
false|true
Wert
false
Dify Env: SQLALCHEMY_POOL_USE_LIFOVariable

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

Ziel
SQLALCHEMY_POOL_USE_LIFO
Standard
false|true
Wert
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

Ziel
SQLALCHEMY_POOL_TIMEOUT
Standard
30
Wert
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

Ziel
POSTGRES_MAX_CONNECTIONS
Standard
200
Wert
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

Ziel
POSTGRES_SHARED_BUFFERS
Standard
128MB
Wert
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

Ziel
POSTGRES_WORK_MEM
Standard
4MB
Wert
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

Ziel
POSTGRES_MAINTENANCE_WORK_MEM
Standard
64MB
Wert
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

Ziel
POSTGRES_EFFECTIVE_CACHE_SIZE
Standard
4096MB
Wert
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.

Ziel
POSTGRES_STATEMENT_TIMEOUT
Standard
0
Wert
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...

Ziel
POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUT
Standard
0
Wert
0
Dify Env: MYSQL_MAX_CONNECTIONSVariable

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

Ziel
MYSQL_MAX_CONNECTIONS
Standard
1000
Wert
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

Ziel
MYSQL_INNODB_BUFFER_POOL_SIZE
Standard
512M
Wert
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

Ziel
MYSQL_INNODB_LOG_FILE_SIZE
Standard
128M
Wert
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

Ziel
MYSQL_INNODB_FLUSH_LOG_AT_TRX_COMMIT
Standard
2
Wert
2
Dify Env: REDIS_USERNAMEVariable

Upstream Dify self-hosted environment variable.

Ziel
REDIS_USERNAME
Dify Env: REDIS_USE_SSLVariable

Upstream Dify self-hosted environment variable.

Ziel
REDIS_USE_SSL
Standard
false|true
Wert
false
Dify Env: REDIS_SSL_CERT_REQSVariable

SSL configuration for Redis (when REDIS_USE_SSL=true)

Ziel
REDIS_SSL_CERT_REQS
Standard
CERT_NONE|CERT_OPTIONAL|CERT_REQUIRED
Wert
CERT_NONE
Dify Env: REDIS_SSL_CA_CERTSVariable

Options: CERT_NONE, CERT_OPTIONAL, CERT_REQUIRED

Ziel
REDIS_SSL_CA_CERTS
Dify Env: REDIS_SSL_CERTFILEVariable

Path to CA certificate file for SSL verification

Ziel
REDIS_SSL_CERTFILE
Dify Env: REDIS_SSL_KEYFILEVariable

Path to client certificate file for SSL authentication

Ziel
REDIS_SSL_KEYFILE
Dify Env: REDIS_DBVariable

Path to client private key file for SSL authentication

Ziel
REDIS_DB
Standard
0
Wert
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.

Ziel
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

Ziel
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.

Ziel
REDIS_USE_SENTINEL
Standard
false|true
Wert
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`

Ziel
REDIS_SENTINELS
Dify Env: REDIS_SENTINEL_SERVICE_NAMEVariable

Upstream Dify self-hosted environment variable.

Ziel
REDIS_SENTINEL_SERVICE_NAME
Dify Env: REDIS_SENTINEL_USERNAMEVariable

Upstream Dify self-hosted environment variable.

Ziel
REDIS_SENTINEL_USERNAME
Dify Env: REDIS_SENTINEL_PASSWORDVariable

Upstream Dify self-hosted environment variable.

Ziel
REDIS_SENTINEL_PASSWORD
Dify Env: REDIS_SENTINEL_SOCKET_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Ziel
REDIS_SENTINEL_SOCKET_TIMEOUT
Standard
0.1
Wert
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`

Ziel
REDIS_USE_CLUSTERS
Standard
false|true
Wert
false
Dify Env: REDIS_CLUSTERSVariable

Upstream Dify self-hosted environment variable.

Ziel
REDIS_CLUSTERS
Dify Env: REDIS_CLUSTERS_PASSWORDVariable

Upstream Dify self-hosted environment variable.

Ziel
REDIS_CLUSTERS_PASSWORD
Dify Env: REDIS_RETRY_RETRIESVariable

Redis connection and retry configuration max redis retry

Ziel
REDIS_RETRY_RETRIES
Standard
3
Wert
3
Dify Env: REDIS_RETRY_BACKOFF_BASEVariable

Base delay (in seconds) for exponential backoff on retries

Ziel
REDIS_RETRY_BACKOFF_BASE
Standard
1.0
Wert
1.0
Dify Env: REDIS_RETRY_BACKOFF_CAPVariable

Cap (in seconds) for exponential backoff on retries

Ziel
REDIS_RETRY_BACKOFF_CAP
Standard
10.0
Wert
10.0
Dify Env: REDIS_SOCKET_TIMEOUTVariable

Timeout (in seconds) for Redis socket operations

Ziel
REDIS_SOCKET_TIMEOUT
Standard
5.0
Wert
5.0
Dify Env: REDIS_SOCKET_CONNECT_TIMEOUTVariable

Timeout (in seconds) for establishing a Redis connection

Ziel
REDIS_SOCKET_CONNECT_TIMEOUT
Standard
5.0
Wert
5.0
Dify Env: REDIS_HEALTH_CHECK_INTERVALVariable

Interval (in seconds) for Redis health checks

Ziel
REDIS_HEALTH_CHECK_INTERVAL
Standard
30
Wert
30
Dify Env: CELERY_BACKENDVariable

Upstream Dify self-hosted environment variable.

Ziel
CELERY_BACKEND
Standard
redis
Wert
redis
Dify Env: BROKER_USE_SSLVariable

Upstream Dify self-hosted environment variable.

Ziel
BROKER_USE_SSL
Standard
false|true
Wert
false
Dify Env: CELERY_USE_SENTINELVariable

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

Ziel
CELERY_USE_SENTINEL
Standard
false|true
Wert
false
Dify Env: CELERY_SENTINEL_MASTER_NAMEVariable

Upstream Dify self-hosted environment variable.

Ziel
CELERY_SENTINEL_MASTER_NAME
Dify Env: CELERY_SENTINEL_PASSWORDVariable

Upstream Dify self-hosted environment variable.

Ziel
CELERY_SENTINEL_PASSWORD
Dify Env: CELERY_SENTINEL_SOCKET_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Ziel
CELERY_SENTINEL_SOCKET_TIMEOUT
Standard
0.1
Wert
0.1
Dify Env: CELERY_TASK_ANNOTATIONSVariable

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

Ziel
CELERY_TASK_ANNOTATIONS
Standard
null
Wert
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.

Ziel
WEB_API_CORS_ALLOW_ORIGINS
Standard
*
Wert
*
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.

Ziel
CONSOLE_CORS_ALLOW_ORIGINS
Standard
*
Wert
*
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.

Ziel
COOKIE_DOMAIN
Dify Env: NEXT_PUBLIC_COOKIE_DOMAINVariable

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

Ziel
NEXT_PUBLIC_COOKIE_DOMAIN
Dify Env: NEXT_PUBLIC_BATCH_CONCURRENCYVariable

Upstream Dify self-hosted environment variable.

Ziel
NEXT_PUBLIC_BATCH_CONCURRENCY
Standard
5
Wert
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-...

Ziel
CLICKZETTA_VOLUME_TYPE
Standard
user
Wert
user
Dify Env: CLICKZETTA_VOLUME_NAMEVariable

External Volume name (required only when TYPE=external)

Ziel
CLICKZETTA_VOLUME_NAME
Dify Env: CLICKZETTA_VOLUME_TABLE_PREFIXVariable

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

Ziel
CLICKZETTA_VOLUME_TABLE_PREFIX
Standard
dataset_
Wert
dataset_
Dify Env: CLICKZETTA_VOLUME_DIFY_PREFIXVariable

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

Ziel
CLICKZETTA_VOLUME_DIFY_PREFIX
Standard
dify_km
Wert
dify_km
Dify Env: S3_ADDRESS_STYLEVariable

Upstream Dify self-hosted environment variable.

Ziel
S3_ADDRESS_STYLE
Standard
auto
Wert
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.

Ziel
S3_USE_AWS_MANAGED_IAM
Standard
false|true
Wert
false
Dify Env: ARCHIVE_STORAGE_ENABLEDVariable

Workflow run and Conversation archive storage (S3-compatible)

Ziel
ARCHIVE_STORAGE_ENABLED
Standard
false|true
Wert
false
Dify Env: ARCHIVE_STORAGE_ENDPOINTVariable

Upstream Dify self-hosted environment variable.

Ziel
ARCHIVE_STORAGE_ENDPOINT
Dify Env: ARCHIVE_STORAGE_ARCHIVE_BUCKETVariable

Upstream Dify self-hosted environment variable.

Ziel
ARCHIVE_STORAGE_ARCHIVE_BUCKET
Dify Env: ARCHIVE_STORAGE_EXPORT_BUCKETVariable

Upstream Dify self-hosted environment variable.

Ziel
ARCHIVE_STORAGE_EXPORT_BUCKET
Dify Env: ARCHIVE_STORAGE_ACCESS_KEYVariable

Upstream Dify self-hosted environment variable.

Ziel
ARCHIVE_STORAGE_ACCESS_KEY
Dify Env: ARCHIVE_STORAGE_SECRET_KEYVariable

Upstream Dify self-hosted environment variable.

Ziel
ARCHIVE_STORAGE_SECRET_KEY
Dify Env: ARCHIVE_STORAGE_REGIONVariable

Upstream Dify self-hosted environment variable.

Ziel
ARCHIVE_STORAGE_REGION
Standard
auto
Wert
auto
Dify Env: AZURE_BLOB_ACCOUNT_NAMEVariable

Azure Blob Configuration

Ziel
AZURE_BLOB_ACCOUNT_NAME
Standard
difyai
Wert
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.

Ziel
AZURE_BLOB_ACCOUNT_KEY
Dify Env: AZURE_BLOB_CONTAINER_NAMEVariable

Upstream Dify self-hosted environment variable.

Ziel
AZURE_BLOB_CONTAINER_NAME
Standard
difyai-container
Wert
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.

Ziel
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.

Ziel
GOOGLE_STORAGE_BUCKET_NAME
Dify Env: GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64Variable

Upstream Dify self-hosted environment variable.

Ziel
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.

Ziel
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.

Ziel
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.

Ziel
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'.

Ziel
ALIYUN_OSS_ENDPOINT
Dify Env: ALIYUN_OSS_REGIONVariable

Upstream Dify self-hosted environment variable.

Ziel
ALIYUN_OSS_REGION
Standard
ap-southeast-1
Wert
ap-southeast-1
Dify Env: ALIYUN_OSS_AUTH_VERSIONVariable

Upstream Dify self-hosted environment variable.

Ziel
ALIYUN_OSS_AUTH_VERSION
Standard
v4
Wert
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.

Ziel
ALIYUN_OSS_PATH
Dify Env: TENCENT_COS_BUCKET_NAMEVariable

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

Ziel
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.

Ziel
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.

Ziel
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.

Ziel
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.

Ziel
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.

Ziel
TENCENT_COS_CUSTOM_DOMAIN
Dify Env: OCI_ENDPOINTVariable

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

Ziel
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.

Ziel
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.

Ziel
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.

Ziel
OCI_SECRET_KEY
Dify Env: OCI_REGIONVariable

Upstream Dify self-hosted environment variable.

Ziel
OCI_REGION
Standard
us-ashburn-1
Wert
us-ashburn-1
Dify Env: HUAWEI_OBS_BUCKET_NAMEVariable

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

Ziel
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.

Ziel
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.

Ziel
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.

Ziel
HUAWEI_OBS_SERVER
Dify Env: HUAWEI_OBS_PATH_STYLEVariable

Upstream Dify self-hosted environment variable.

Ziel
HUAWEI_OBS_PATH_STYLE
Standard
false|true
Wert
false
Dify Env: VOLCENGINE_TOS_BUCKET_NAMEVariable

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

Ziel
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.

Ziel
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.

Ziel
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.

Ziel
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.

Ziel
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.

Ziel
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.

Ziel
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.

Ziel
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.

Ziel
BAIDU_OBS_ENDPOINT
Dify Env: SUPABASE_BUCKET_NAMEVariable

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

Ziel
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.

Ziel
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.

Ziel
SUPABASE_URL
Dify Env: VECTOR_INDEX_NAME_PREFIXVariable

Prefix used to create collection name in vector database

Ziel
VECTOR_INDEX_NAME_PREFIX
Standard
Vector_index
Wert
Vector_index
Dify Env: WEAVIATE_TOKENIZATIONVariable

Upstream Dify self-hosted environment variable.

Ziel
WEAVIATE_TOKENIZATION
Standard
word
Wert
word
Dify Env: QDRANT_CLIENT_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Ziel
QDRANT_CLIENT_TIMEOUT
Standard
20
Wert
20
Dify Env: QDRANT_GRPC_ENABLEDVariable

Upstream Dify self-hosted environment variable.

Ziel
QDRANT_GRPC_ENABLED
Standard
false|true
Wert
false
Dify Env: QDRANT_GRPC_PORTVariable

Upstream Dify self-hosted environment variable.

Ziel
QDRANT_GRPC_PORT
Standard
6334
Wert
6334
Dify Env: QDRANT_REPLICATION_FACTORVariable

Upstream Dify self-hosted environment variable.

Ziel
QDRANT_REPLICATION_FACTOR
Standard
1
Wert
1
Dify Env: MILVUS_URIVariable

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

Ziel
MILVUS_URI
Standard
http://host.docker.internal:19530
Wert
http://host.docker.internal:19530
Dify Env: MILVUS_DATABASEVariable

Upstream Dify self-hosted environment variable.

Ziel
MILVUS_DATABASE
Dify Env: MILVUS_TOKENVariable

Upstream Dify self-hosted environment variable.

Ziel
MILVUS_TOKEN
Dify Env: MILVUS_USERVariable

Upstream Dify self-hosted environment variable.

Ziel
MILVUS_USER
Dify Env: MILVUS_PASSWORDVariable

Upstream Dify self-hosted environment variable.

Ziel
MILVUS_PASSWORD
Dify Env: MILVUS_ENABLE_HYBRID_SEARCHVariable

Upstream Dify self-hosted environment variable.

Ziel
MILVUS_ENABLE_HYBRID_SEARCH
Standard
False|True
Wert
False
Dify Env: MILVUS_ANALYZER_PARAMSVariable

Upstream Dify self-hosted environment variable.

Ziel
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'.

Ziel
MYSCALE_HOST
Dify Env: MYSCALE_PORTVariable

Upstream Dify self-hosted environment variable.

Ziel
MYSCALE_PORT
Standard
8123
Wert
8123
Dify Env: MYSCALE_USERVariable

Upstream Dify self-hosted environment variable.

Ziel
MYSCALE_USER
Standard
default
Wert
default
Dify Env: MYSCALE_PASSWORDVariable

Upstream Dify self-hosted environment variable.

Ziel
MYSCALE_PASSWORD
Dify Env: MYSCALE_DATABASEVariable

Upstream Dify self-hosted environment variable.

Ziel
MYSCALE_DATABASE
Standard
dify
Wert
dify
Dify Env: MYSCALE_FTS_PARAMSVariable

Upstream Dify self-hosted environment variable.

Ziel
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.

Ziel
COUCHBASE_CONNECTION_STRING
Dify Env: COUCHBASE_USERVariable

Upstream Dify self-hosted environment variable.

Ziel
COUCHBASE_USER
Standard
Administrator
Wert
Administrator
Dify Env: COUCHBASE_PASSWORDVariable

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

Ziel
COUCHBASE_PASSWORD
Dify Env: COUCHBASE_BUCKET_NAMEVariable

Upstream Dify self-hosted environment variable.

Ziel
COUCHBASE_BUCKET_NAME
Standard
Embeddings
Wert
Embeddings
Dify Env: COUCHBASE_SCOPE_NAMEVariable

Upstream Dify self-hosted environment variable.

Ziel
COUCHBASE_SCOPE_NAME
Standard
_default
Wert
_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

Ziel
HOLOGRES_HOST
Dify Env: HOLOGRES_PORTVariable

Upstream Dify self-hosted environment variable.

Ziel
HOLOGRES_PORT
Standard
80
Wert
80
Dify Env: HOLOGRES_DATABASEVariable

Upstream Dify self-hosted environment variable.

Ziel
HOLOGRES_DATABASE
Dify Env: HOLOGRES_ACCESS_KEY_IDVariable

Upstream Dify self-hosted environment variable.

Ziel
HOLOGRES_ACCESS_KEY_ID
Dify Env: HOLOGRES_ACCESS_KEY_SECRETVariable

Upstream Dify self-hosted environment variable.

Ziel
HOLOGRES_ACCESS_KEY_SECRET
Dify Env: HOLOGRES_SCHEMAVariable

Upstream Dify self-hosted environment variable.

Ziel
HOLOGRES_SCHEMA
Standard
public
Wert
public
Dify Env: HOLOGRES_TOKENIZERVariable

Upstream Dify self-hosted environment variable.

Ziel
HOLOGRES_TOKENIZER
Standard
jieba
Wert
jieba
Dify Env: HOLOGRES_DISTANCE_METHODVariable

Upstream Dify self-hosted environment variable.

Ziel
HOLOGRES_DISTANCE_METHOD
Standard
Cosine
Wert
Cosine
Dify Env: HOLOGRES_BASE_QUANTIZATION_TYPEVariable

Upstream Dify self-hosted environment variable.

Ziel
HOLOGRES_BASE_QUANTIZATION_TYPE
Standard
rabitq
Wert
rabitq
Dify Env: HOLOGRES_MAX_DEGREEVariable

Upstream Dify self-hosted environment variable.

Ziel
HOLOGRES_MAX_DEGREE
Standard
64
Wert
64
Dify Env: HOLOGRES_EF_CONSTRUCTIONVariable

Upstream Dify self-hosted environment variable.

Ziel
HOLOGRES_EF_CONSTRUCTION
Standard
400
Wert
400
Dify Env: PGVECTOR_MIN_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Ziel
PGVECTOR_MIN_CONNECTION
Standard
1
Wert
1
Dify Env: PGVECTOR_MAX_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Ziel
PGVECTOR_MAX_CONNECTION
Standard
5
Wert
5
Dify Env: PGVECTOR_PG_BIGMVariable

Upstream Dify self-hosted environment variable.

Ziel
PGVECTOR_PG_BIGM
Standard
false|true
Wert
false
Dify Env: PGVECTOR_PG_BIGM_VERSIONVariable

Upstream Dify self-hosted environment variable.

Ziel
PGVECTOR_PG_BIGM_VERSION
Standard
1.2-20240606
Wert
1.2-20240606
Dify Env: VASTBASE_HOSTVariable

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

Ziel
VASTBASE_HOST
Dify Env: VASTBASE_PORTVariable

Upstream Dify self-hosted environment variable.

Ziel
VASTBASE_PORT
Standard
5432
Wert
5432
Dify Env: VASTBASE_USERVariable

Upstream Dify self-hosted environment variable.

Ziel
VASTBASE_USER
Standard
dify
Wert
dify
Dify Env: VASTBASE_PASSWORDVariable

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

Ziel
VASTBASE_PASSWORD
Dify Env: VASTBASE_DATABASEVariable

Upstream Dify self-hosted environment variable.

Ziel
VASTBASE_DATABASE
Standard
dify
Wert
dify
Dify Env: VASTBASE_MIN_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Ziel
VASTBASE_MIN_CONNECTION
Standard
1
Wert
1
Dify Env: VASTBASE_MAX_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Ziel
VASTBASE_MAX_CONNECTION
Standard
5
Wert
5
Dify Env: PGVECTO_RS_HOSTVariable

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

Ziel
PGVECTO_RS_HOST
Dify Env: PGVECTO_RS_PORTVariable

Upstream Dify self-hosted environment variable.

Ziel
PGVECTO_RS_PORT
Standard
5432
Wert
5432
Dify Env: PGVECTO_RS_USERVariable

Upstream Dify self-hosted environment variable.

Ziel
PGVECTO_RS_USER
Standard
postgres
Wert
postgres
Dify Env: PGVECTO_RS_PASSWORDVariable

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

Ziel
PGVECTO_RS_PASSWORD
Dify Env: PGVECTO_RS_DATABASEVariable

Upstream Dify self-hosted environment variable.

Ziel
PGVECTO_RS_DATABASE
Standard
dify
Wert
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.

Ziel
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.

Ziel
ANALYTICDB_KEY_SECRET
Dify Env: ANALYTICDB_REGION_IDVariable

Upstream Dify self-hosted environment variable.

Ziel
ANALYTICDB_REGION_ID
Standard
cn-hangzhou
Wert
cn-hangzhou
Dify Env: ANALYTICDB_INSTANCE_IDVariable

Upstream Dify self-hosted environment variable.

Ziel
ANALYTICDB_INSTANCE_ID
Standard
gp-ab123456
Wert
gp-ab123456
Dify Env: ANALYTICDB_ACCOUNTVariable

Upstream Dify self-hosted environment variable.

Ziel
ANALYTICDB_ACCOUNT
Standard
testaccount
Wert
testaccount
Dify Env: ANALYTICDB_PASSWORDVariable

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

Ziel
ANALYTICDB_PASSWORD
Dify Env: ANALYTICDB_NAMESPACEVariable

Upstream Dify self-hosted environment variable.

Ziel
ANALYTICDB_NAMESPACE
Standard
dify
Wert
dify
Dify Env: ANALYTICDB_NAMESPACE_PASSWORDVariable

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

Ziel
ANALYTICDB_NAMESPACE_PASSWORD
Dify Env: ANALYTICDB_HOSTVariable

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

Ziel
ANALYTICDB_HOST
Dify Env: ANALYTICDB_PORTVariable

Upstream Dify self-hosted environment variable.

Ziel
ANALYTICDB_PORT
Standard
5432
Wert
5432
Dify Env: ANALYTICDB_MIN_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Ziel
ANALYTICDB_MIN_CONNECTION
Standard
1
Wert
1
Dify Env: ANALYTICDB_MAX_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Ziel
ANALYTICDB_MAX_CONNECTION
Standard
5
Wert
5
Dify Env: TIDB_VECTOR_HOSTVariable

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

Ziel
TIDB_VECTOR_HOST
Dify Env: TIDB_VECTOR_PORTVariable

Upstream Dify self-hosted environment variable.

Ziel
TIDB_VECTOR_PORT
Standard
4000
Wert
4000
Dify Env: TIDB_VECTOR_USERVariable

Upstream Dify self-hosted environment variable.

Ziel
TIDB_VECTOR_USER
Dify Env: TIDB_VECTOR_PASSWORDVariable

Upstream Dify self-hosted environment variable.

Ziel
TIDB_VECTOR_PASSWORD
Dify Env: TIDB_VECTOR_DATABASEVariable

Upstream Dify self-hosted environment variable.

Ziel
TIDB_VECTOR_DATABASE
Standard
dify
Wert
dify
Dify Env: MATRIXONE_HOSTVariable

Matrixone vector configurations. Official default: 'matrixone'.

Ziel
MATRIXONE_HOST
Dify Env: MATRIXONE_PORTVariable

Upstream Dify self-hosted environment variable.

Ziel
MATRIXONE_PORT
Standard
6001
Wert
6001
Dify Env: MATRIXONE_USERVariable

Upstream Dify self-hosted environment variable.

Ziel
MATRIXONE_USER
Standard
dump
Wert
dump
Dify Env: MATRIXONE_PASSWORDVariable

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

Ziel
MATRIXONE_PASSWORD
Dify Env: MATRIXONE_DATABASEVariable

Upstream Dify self-hosted environment variable.

Ziel
MATRIXONE_DATABASE
Standard
dify
Wert
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'.

Ziel
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.

Ziel
TIDB_ON_QDRANT_API_KEY
Dify Env: TIDB_ON_QDRANT_CLIENT_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Ziel
TIDB_ON_QDRANT_CLIENT_TIMEOUT
Standard
20
Wert
20
Dify Env: TIDB_ON_QDRANT_GRPC_ENABLEDVariable

Upstream Dify self-hosted environment variable.

Ziel
TIDB_ON_QDRANT_GRPC_ENABLED
Standard
false|true
Wert
false
Dify Env: TIDB_ON_QDRANT_GRPC_PORTVariable

Upstream Dify self-hosted environment variable.

Ziel
TIDB_ON_QDRANT_GRPC_PORT
Standard
6334
Wert
6334
Dify Env: CHROMA_HOSTVariable

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

Ziel
CHROMA_HOST
Dify Env: CHROMA_PORTVariable

Upstream Dify self-hosted environment variable.

Ziel
CHROMA_PORT
Standard
8000
Wert
8000
Dify Env: CHROMA_TENANTVariable

Upstream Dify self-hosted environment variable.

Ziel
CHROMA_TENANT
Standard
default_tenant
Wert
default_tenant
Dify Env: CHROMA_DATABASEVariable

Upstream Dify self-hosted environment variable.

Ziel
CHROMA_DATABASE
Standard
default_database
Wert
default_database
Dify Env: CHROMA_AUTH_PROVIDERVariable

Upstream Dify self-hosted environment variable.

Ziel
CHROMA_AUTH_PROVIDER
Standard
chromadb.auth.token_authn.TokenAuthClientProvider
Wert
chromadb.auth.token_authn.TokenAuthClientProvider
Dify Env: CHROMA_AUTH_CREDENTIALSVariable

Upstream Dify self-hosted environment variable.

Ziel
CHROMA_AUTH_CREDENTIALS
Dify Env: ORACLE_USERVariable

Oracle configuration, only available when VECTOR_STORE is `oracle`

Ziel
ORACLE_USER
Standard
dify
Wert
dify
Dify Env: ORACLE_PASSWORDVariable

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

Ziel
ORACLE_PASSWORD
Dify Env: ORACLE_DSNVariable

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

Ziel
ORACLE_DSN
Dify Env: ORACLE_CONFIG_DIRVariable

Upstream Dify self-hosted environment variable.

Ziel
ORACLE_CONFIG_DIR
Standard
/app/api/storage/wallet
Wert
/app/api/storage/wallet
Dify Env: ORACLE_WALLET_LOCATIONVariable

Upstream Dify self-hosted environment variable.

Ziel
ORACLE_WALLET_LOCATION
Standard
/app/api/storage/wallet
Wert
/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.

Ziel
ORACLE_WALLET_PASSWORD
Dify Env: ORACLE_IS_AUTONOMOUSVariable

Upstream Dify self-hosted environment variable.

Ziel
ORACLE_IS_AUTONOMOUS
Standard
false|true
Wert
false
Dify Env: ALIBABACLOUD_MYSQL_HOSTVariable

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

Ziel
ALIBABACLOUD_MYSQL_HOST
Dify Env: ALIBABACLOUD_MYSQL_PORTVariable

Upstream Dify self-hosted environment variable.

Ziel
ALIBABACLOUD_MYSQL_PORT
Standard
3306
Wert
3306
Dify Env: ALIBABACLOUD_MYSQL_USERVariable

Upstream Dify self-hosted environment variable.

Ziel
ALIBABACLOUD_MYSQL_USER
Standard
root
Wert
root
Dify Env: ALIBABACLOUD_MYSQL_PASSWORDVariable

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

Ziel
ALIBABACLOUD_MYSQL_PASSWORD
Dify Env: ALIBABACLOUD_MYSQL_DATABASEVariable

Upstream Dify self-hosted environment variable.

Ziel
ALIBABACLOUD_MYSQL_DATABASE
Standard
dify
Wert
dify
Dify Env: ALIBABACLOUD_MYSQL_MAX_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Ziel
ALIBABACLOUD_MYSQL_MAX_CONNECTION
Standard
5
Wert
5
Dify Env: ALIBABACLOUD_MYSQL_HNSW_MVariable

Upstream Dify self-hosted environment variable.

Ziel
ALIBABACLOUD_MYSQL_HNSW_M
Standard
6
Wert
6
Dify Env: RELYT_HOSTVariable

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

Ziel
RELYT_HOST
Dify Env: RELYT_PORTVariable

Upstream Dify self-hosted environment variable.

Ziel
RELYT_PORT
Standard
5432
Wert
5432
Dify Env: RELYT_USERVariable

Upstream Dify self-hosted environment variable.

Ziel
RELYT_USER
Standard
postgres
Wert
postgres
Dify Env: RELYT_PASSWORDVariable

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

Ziel
RELYT_PASSWORD
Dify Env: RELYT_DATABASEVariable

Upstream Dify self-hosted environment variable.

Ziel
RELYT_DATABASE
Standard
postgres
Wert
postgres
Dify Env: OPENSEARCH_HOSTVariable

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

Ziel
OPENSEARCH_HOST
Dify Env: OPENSEARCH_PORTVariable

Upstream Dify self-hosted environment variable.

Ziel
OPENSEARCH_PORT
Standard
9200
Wert
9200
Dify Env: OPENSEARCH_SECUREVariable

Upstream Dify self-hosted environment variable.

Ziel
OPENSEARCH_SECURE
Standard
true|false
Wert
true
Dify Env: OPENSEARCH_VERIFY_CERTSVariable

Upstream Dify self-hosted environment variable.

Ziel
OPENSEARCH_VERIFY_CERTS
Standard
true|false
Wert
true
Dify Env: OPENSEARCH_AUTH_METHODVariable

Upstream Dify self-hosted environment variable.

Ziel
OPENSEARCH_AUTH_METHOD
Standard
basic
Wert
basic
Dify Env: OPENSEARCH_USERVariable

Upstream Dify self-hosted environment variable.

Ziel
OPENSEARCH_USER
Standard
admin
Wert
admin
Dify Env: OPENSEARCH_PASSWORDVariable

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

Ziel
OPENSEARCH_PASSWORD
Dify Env: OPENSEARCH_AWS_REGIONVariable

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

Ziel
OPENSEARCH_AWS_REGION
Standard
ap-southeast-1
Wert
ap-southeast-1
Dify Env: OPENSEARCH_AWS_SERVICEVariable

Upstream Dify self-hosted environment variable.

Ziel
OPENSEARCH_AWS_SERVICE
Standard
aoss
Wert
aoss
Dify Env: TENCENT_VECTOR_DB_URLVariable

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

Ziel
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.

Ziel
TENCENT_VECTOR_DB_API_KEY
Dify Env: TENCENT_VECTOR_DB_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Ziel
TENCENT_VECTOR_DB_TIMEOUT
Standard
30
Wert
30
Dify Env: TENCENT_VECTOR_DB_USERNAMEVariable

Upstream Dify self-hosted environment variable.

Ziel
TENCENT_VECTOR_DB_USERNAME
Standard
dify
Wert
dify
Dify Env: TENCENT_VECTOR_DB_DATABASEVariable

Upstream Dify self-hosted environment variable.

Ziel
TENCENT_VECTOR_DB_DATABASE
Standard
dify
Wert
dify
Dify Env: TENCENT_VECTOR_DB_SHARDVariable

Upstream Dify self-hosted environment variable.

Ziel
TENCENT_VECTOR_DB_SHARD
Standard
1
Wert
1
Dify Env: TENCENT_VECTOR_DB_REPLICASVariable

Upstream Dify self-hosted environment variable.

Ziel
TENCENT_VECTOR_DB_REPLICAS
Standard
2
Wert
2
Dify Env: TENCENT_VECTOR_DB_ENABLE_HYBRID_SEARCHVariable

Upstream Dify self-hosted environment variable.

Ziel
TENCENT_VECTOR_DB_ENABLE_HYBRID_SEARCH
Standard
false|true
Wert
false
Dify Env: ELASTICSEARCH_HOSTVariable

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

Ziel
ELASTICSEARCH_HOST
Dify Env: ELASTICSEARCH_PORTVariable

Upstream Dify self-hosted environment variable.

Ziel
ELASTICSEARCH_PORT
Standard
9200
Wert
9200
Dify Env: ELASTICSEARCH_USERNAMEVariable

Upstream Dify self-hosted environment variable.

Ziel
ELASTICSEARCH_USERNAME
Standard
elastic
Wert
elastic
Dify Env: ELASTICSEARCH_PASSWORDVariable

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

Ziel
ELASTICSEARCH_PASSWORD
Dify Env: ELASTICSEARCH_USE_CLOUDVariable

Using ElasticSearch Cloud Serverless, or not.

Ziel
ELASTICSEARCH_USE_CLOUD
Standard
false|true
Wert
false
Dify Env: ELASTICSEARCH_CLOUD_URLVariable

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

Ziel
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.

Ziel
ELASTICSEARCH_API_KEY
Dify Env: ELASTICSEARCH_VERIFY_CERTSVariable

Upstream Dify self-hosted environment variable.

Ziel
ELASTICSEARCH_VERIFY_CERTS
Standard
False|True
Wert
False
Dify Env: ELASTICSEARCH_CA_CERTSVariable

Upstream Dify self-hosted environment variable.

Ziel
ELASTICSEARCH_CA_CERTS
Dify Env: ELASTICSEARCH_REQUEST_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Ziel
ELASTICSEARCH_REQUEST_TIMEOUT
Standard
100000
Wert
100000
Dify Env: ELASTICSEARCH_RETRY_ON_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Ziel
ELASTICSEARCH_RETRY_ON_TIMEOUT
Standard
True|False
Wert
True
Dify Env: ELASTICSEARCH_MAX_RETRIESVariable

Upstream Dify self-hosted environment variable.

Ziel
ELASTICSEARCH_MAX_RETRIES
Standard
10
Wert
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'.

Ziel
BAIDU_VECTOR_DB_ENDPOINT
Dify Env: BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MSVariable

Upstream Dify self-hosted environment variable.

Ziel
BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS
Standard
30000
Wert
30000
Dify Env: BAIDU_VECTOR_DB_ACCOUNTVariable

Upstream Dify self-hosted environment variable.

Ziel
BAIDU_VECTOR_DB_ACCOUNT
Standard
root
Wert
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.

Ziel
BAIDU_VECTOR_DB_API_KEY
Dify Env: BAIDU_VECTOR_DB_DATABASEVariable

Upstream Dify self-hosted environment variable.

Ziel
BAIDU_VECTOR_DB_DATABASE
Standard
dify
Wert
dify
Dify Env: BAIDU_VECTOR_DB_SHARDVariable

Upstream Dify self-hosted environment variable.

Ziel
BAIDU_VECTOR_DB_SHARD
Standard
1
Wert
1
Dify Env: BAIDU_VECTOR_DB_REPLICASVariable

Upstream Dify self-hosted environment variable.

Ziel
BAIDU_VECTOR_DB_REPLICAS
Standard
3
Wert
3
Dify Env: BAIDU_VECTOR_DB_INVERTED_INDEX_ANALYZERVariable

Upstream Dify self-hosted environment variable.

Ziel
BAIDU_VECTOR_DB_INVERTED_INDEX_ANALYZER
Standard
DEFAULT_ANALYZER
Wert
DEFAULT_ANALYZER
Dify Env: BAIDU_VECTOR_DB_INVERTED_INDEX_PARSER_MODEVariable

Upstream Dify self-hosted environment variable.

Ziel
BAIDU_VECTOR_DB_INVERTED_INDEX_PARSER_MODE
Standard
COARSE_MODE
Wert
COARSE_MODE
Dify Env: BAIDU_VECTOR_DB_AUTO_BUILD_ROW_COUNT_INCREMENTVariable

Upstream Dify self-hosted environment variable.

Ziel
BAIDU_VECTOR_DB_AUTO_BUILD_ROW_COUNT_INCREMENT
Standard
500
Wert
500
Dify Env: BAIDU_VECTOR_DB_AUTO_BUILD_ROW_COUNT_INCREMENT_RATIOVariable

Upstream Dify self-hosted environment variable.

Ziel
BAIDU_VECTOR_DB_AUTO_BUILD_ROW_COUNT_INCREMENT_RATIO
Standard
0.05
Wert
0.05
Dify Env: BAIDU_VECTOR_DB_REBUILD_INDEX_TIMEOUT_IN_SECONDSVariable

Upstream Dify self-hosted environment variable.

Ziel
BAIDU_VECTOR_DB_REBUILD_INDEX_TIMEOUT_IN_SECONDS
Standard
300
Wert
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.

Ziel
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.

Ziel
VIKINGDB_SECRET_KEY
Dify Env: VIKINGDB_REGIONVariable

Upstream Dify self-hosted environment variable.

Ziel
VIKINGDB_REGION
Standard
cn-shanghai
Wert
cn-shanghai
Dify Env: VIKINGDB_HOSTVariable

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

Ziel
VIKINGDB_HOST
Dify Env: VIKINGDB_SCHEMAVariable

Upstream Dify self-hosted environment variable.

Ziel
VIKINGDB_SCHEMA
Standard
http
Wert
http
Dify Env: VIKINGDB_CONNECTION_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Ziel
VIKINGDB_CONNECTION_TIMEOUT
Standard
30
Wert
30
Dify Env: VIKINGDB_SOCKET_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Ziel
VIKINGDB_SOCKET_TIMEOUT
Standard
30
Wert
30
Dify Env: LINDORM_URLVariable

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

Ziel
LINDORM_URL
Dify Env: LINDORM_USERNAMEVariable

Upstream Dify self-hosted environment variable.

Ziel
LINDORM_USERNAME
Standard
admin
Wert
admin
Dify Env: LINDORM_PASSWORDVariable

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

Ziel
LINDORM_PASSWORD
Dify Env: LINDORM_USING_UGCVariable

Upstream Dify self-hosted environment variable.

Ziel
LINDORM_USING_UGC
Standard
True|False
Wert
True
Dify Env: LINDORM_QUERY_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Ziel
LINDORM_QUERY_TIMEOUT
Standard
1
Wert
1
Dify Env: OPENGAUSS_HOSTVariable

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

Ziel
OPENGAUSS_HOST
Dify Env: OPENGAUSS_PORTVariable

Upstream Dify self-hosted environment variable.

Ziel
OPENGAUSS_PORT
Standard
6600
Wert
6600
Dify Env: OPENGAUSS_USERVariable

Upstream Dify self-hosted environment variable.

Ziel
OPENGAUSS_USER
Standard
postgres
Wert
postgres
Dify Env: OPENGAUSS_PASSWORDVariable

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

Ziel
OPENGAUSS_PASSWORD
Dify Env: OPENGAUSS_DATABASEVariable

Upstream Dify self-hosted environment variable.

Ziel
OPENGAUSS_DATABASE
Standard
dify
Wert
dify
Dify Env: OPENGAUSS_MIN_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Ziel
OPENGAUSS_MIN_CONNECTION
Standard
1
Wert
1
Dify Env: OPENGAUSS_MAX_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Ziel
OPENGAUSS_MAX_CONNECTION
Standard
5
Wert
5
Dify Env: OPENGAUSS_ENABLE_PQVariable

Upstream Dify self-hosted environment variable.

Ziel
OPENGAUSS_ENABLE_PQ
Standard
false|true
Wert
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'.

Ziel
HUAWEI_CLOUD_HOSTS
Dify Env: HUAWEI_CLOUD_USERVariable

Upstream Dify self-hosted environment variable.

Ziel
HUAWEI_CLOUD_USER
Standard
admin
Wert
admin
Dify Env: HUAWEI_CLOUD_PASSWORDVariable

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

Ziel
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.

Ziel
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.

Ziel
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'.

Ziel
TABLESTORE_ENDPOINT
Dify Env: TABLESTORE_INSTANCE_NAMEVariable

Upstream Dify self-hosted environment variable.

Ziel
TABLESTORE_INSTANCE_NAME
Standard
instance-name
Wert
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.

Ziel
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.

Ziel
TABLESTORE_ACCESS_KEY_SECRET
Dify Env: TABLESTORE_NORMALIZE_FULLTEXT_BM25_SCOREVariable

Upstream Dify self-hosted environment variable.

Ziel
TABLESTORE_NORMALIZE_FULLTEXT_BM25_SCORE
Standard
false|true
Wert
false
Dify Env: CLICKZETTA_USERNAMEVariable

Clickzetta configuration, only available when VECTOR_STORE is `clickzetta`

Ziel
CLICKZETTA_USERNAME
Dify Env: CLICKZETTA_PASSWORDVariable

Upstream Dify self-hosted environment variable.

Ziel
CLICKZETTA_PASSWORD
Dify Env: CLICKZETTA_INSTANCEVariable

Upstream Dify self-hosted environment variable.

Ziel
CLICKZETTA_INSTANCE
Dify Env: CLICKZETTA_SERVICEVariable

Upstream Dify self-hosted environment variable.

Ziel
CLICKZETTA_SERVICE
Standard
api.clickzetta.com
Wert
api.clickzetta.com
Dify Env: CLICKZETTA_WORKSPACEVariable

Upstream Dify self-hosted environment variable.

Ziel
CLICKZETTA_WORKSPACE
Standard
quick_start
Wert
quick_start
Dify Env: CLICKZETTA_VCLUSTERVariable

Upstream Dify self-hosted environment variable.

Ziel
CLICKZETTA_VCLUSTER
Standard
default_ap
Wert
default_ap
Dify Env: CLICKZETTA_SCHEMAVariable

Upstream Dify self-hosted environment variable.

Ziel
CLICKZETTA_SCHEMA
Standard
dify
Wert
dify
Dify Env: CLICKZETTA_BATCH_SIZEVariable

Upstream Dify self-hosted environment variable.

Ziel
CLICKZETTA_BATCH_SIZE
Standard
100
Wert
100
Dify Env: CLICKZETTA_ENABLE_INVERTED_INDEXVariable

Upstream Dify self-hosted environment variable.

Ziel
CLICKZETTA_ENABLE_INVERTED_INDEX
Standard
true|false
Wert
true
Dify Env: CLICKZETTA_ANALYZER_TYPEVariable

Upstream Dify self-hosted environment variable.

Ziel
CLICKZETTA_ANALYZER_TYPE
Standard
chinese
Wert
chinese
Dify Env: CLICKZETTA_ANALYZER_MODEVariable

Upstream Dify self-hosted environment variable.

Ziel
CLICKZETTA_ANALYZER_MODE
Standard
smart
Wert
smart
Dify Env: CLICKZETTA_VECTOR_DISTANCE_FUNCTIONVariable

Upstream Dify self-hosted environment variable.

Ziel
CLICKZETTA_VECTOR_DISTANCE_FUNCTION
Standard
cosine_distance
Wert
cosine_distance
Dify Env: IRIS_HOSTVariable

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

Ziel
IRIS_HOST
Dify Env: IRIS_SUPER_SERVER_PORTVariable

Upstream Dify self-hosted environment variable.

Ziel
IRIS_SUPER_SERVER_PORT
Standard
1972
Wert
1972
Dify Env: IRIS_WEB_SERVER_PORTVariable

Upstream Dify self-hosted environment variable.

Ziel
IRIS_WEB_SERVER_PORT
Standard
52773
Wert
52773
Dify Env: IRIS_USERVariable

Upstream Dify self-hosted environment variable.

Ziel
IRIS_USER
Standard
_SYSTEM
Wert
_SYSTEM
Dify Env: IRIS_PASSWORDVariable

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

Ziel
IRIS_PASSWORD
Dify Env: IRIS_DATABASEVariable

Upstream Dify self-hosted environment variable.

Ziel
IRIS_DATABASE
Standard
USER
Wert
USER
Dify Env: IRIS_SCHEMAVariable

Upstream Dify self-hosted environment variable.

Ziel
IRIS_SCHEMA
Standard
dify
Wert
dify
Dify Env: IRIS_CONNECTION_URLVariable

Upstream Dify self-hosted environment variable.

Ziel
IRIS_CONNECTION_URL
Dify Env: IRIS_MIN_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Ziel
IRIS_MIN_CONNECTION
Standard
1
Wert
1
Dify Env: IRIS_MAX_CONNECTIONVariable

Upstream Dify self-hosted environment variable.

Ziel
IRIS_MAX_CONNECTION
Standard
3
Wert
3
Dify Env: IRIS_TEXT_INDEXVariable

Upstream Dify self-hosted environment variable.

Ziel
IRIS_TEXT_INDEX
Standard
true|false
Wert
true
Dify Env: IRIS_TEXT_INDEX_LANGUAGEVariable

Upstream Dify self-hosted environment variable.

Ziel
IRIS_TEXT_INDEX_LANGUAGE
Standard
en
Wert
en
Dify Env: IRIS_TIMEZONEVariable

Upstream Dify self-hosted environment variable.

Ziel
IRIS_TIMEZONE
Standard
UTC
Wert
UTC
Dify Env: UPLOAD_FILE_SIZE_LIMITVariable

Upload file size limit, default 15M.

Ziel
UPLOAD_FILE_SIZE_LIMIT
Standard
15
Wert
15
Dify Env: UPLOAD_FILE_BATCH_LIMITVariable

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

Ziel
UPLOAD_FILE_BATCH_LIMIT
Standard
5
Wert
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

Ziel
UPLOAD_FILE_EXTENSION_BLACKLIST
Dify Env: ATTACHMENT_IMAGE_FILE_SIZE_LIMITVariable

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

Ziel
ATTACHMENT_IMAGE_FILE_SIZE_LIMIT
Standard
2
Wert
2
Dify Env: ATTACHMENT_IMAGE_DOWNLOAD_TIMEOUTVariable

Timeout for downloading image attachments in seconds, default 60.

Ziel
ATTACHMENT_IMAGE_DOWNLOAD_TIMEOUT
Standard
60
Wert
60
Dify Env: ETL_TYPEVariable

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

Ziel
ETL_TYPE
Standard
dify|Unstructured
Wert
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

Ziel
UNSTRUCTURED_API_URL
Dify Env: UNSTRUCTURED_API_KEYVariable

Upstream Dify self-hosted environment variable.

Ziel
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.

Ziel
PROMPT_GENERATION_MAX_TOKENS
Standard
512
Wert
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.

Ziel
CODE_GENERATION_MAX_TOKENS
Standard
1024
Wert
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...

Ziel
MULTIMODAL_SEND_FORMAT
Standard
base64
Wert
base64
Dify Env: UPLOAD_IMAGE_FILE_SIZE_LIMITVariable

Upload image file size limit, default 10M.

Ziel
UPLOAD_IMAGE_FILE_SIZE_LIMIT
Standard
10
Wert
10
Dify Env: UPLOAD_VIDEO_FILE_SIZE_LIMITVariable

Upload video file size limit, default 100M.

Ziel
UPLOAD_VIDEO_FILE_SIZE_LIMIT
Standard
100
Wert
100
Dify Env: UPLOAD_AUDIO_FILE_SIZE_LIMITVariable

Upload audio file size limit, default 50M.

Ziel
UPLOAD_AUDIO_FILE_SIZE_LIMIT
Standard
50
Wert
50
Dify Env: SENTRY_DSNVariable

Sentry Configuration Used for application monitoring and error log tracking.

Ziel
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.

Ziel
PLUGIN_SENTRY_ENABLED
Standard
false|true
Wert
false
Dify Env: PLUGIN_SENTRY_DSNVariable

Upstream Dify self-hosted environment variable.

Ziel
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.

Ziel
NOTION_INTEGRATION_TYPE
Standard
public
Wert
public
Dify Env: NOTION_CLIENT_SECRETVariable

Notion OAuth client secret (used for public integration type)

Ziel
NOTION_CLIENT_SECRET
Dify Env: NOTION_CLIENT_IDVariable

Notion OAuth client id (used for public integration type)

Ziel
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.

Ziel
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'.

Ziel
RESEND_API_URL
Dify Env: SMTP_USE_TLSVariable

Upstream Dify self-hosted environment variable.

Ziel
SMTP_USE_TLS
Standard
true|false
Wert
true
Dify Env: SMTP_OPPORTUNISTIC_TLSVariable

Upstream Dify self-hosted environment variable.

Ziel
SMTP_OPPORTUNISTIC_TLS
Standard
false|true
Wert
false
Dify Env: SMTP_LOCAL_HOSTNAMEVariable

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

Ziel
SMTP_LOCAL_HOSTNAME
Dify Env: INDEXING_MAX_SEGMENTATION_TOKENS_LENGTHVariable

Maximum length of segmentation tokens for indexing

Ziel
INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH
Standard
4000
Wert
4000
Dify Env: INVITE_EXPIRY_HOURSVariable

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

Ziel
INVITE_EXPIRY_HOURS
Standard
72
Wert
72
Dify Env: RESET_PASSWORD_TOKEN_EXPIRY_MINUTESVariable

Reset password token valid time (minutes),

Ziel
RESET_PASSWORD_TOKEN_EXPIRY_MINUTES
Standard
5
Wert
5
Dify Env: EMAIL_REGISTER_TOKEN_EXPIRY_MINUTESVariable

Upstream Dify self-hosted environment variable.

Ziel
EMAIL_REGISTER_TOKEN_EXPIRY_MINUTES
Standard
5
Wert
5
Dify Env: CHANGE_EMAIL_TOKEN_EXPIRY_MINUTESVariable

Upstream Dify self-hosted environment variable.

Ziel
CHANGE_EMAIL_TOKEN_EXPIRY_MINUTES
Standard
5
Wert
5
Dify Env: OWNER_TRANSFER_TOKEN_EXPIRY_MINUTESVariable

Upstream Dify self-hosted environment variable.

Ziel
OWNER_TRANSFER_TOKEN_EXPIRY_MINUTES
Standard
5
Wert
5
Dify Env: CODE_EXECUTION_SSL_VERIFYVariable

Upstream Dify self-hosted environment variable.

Ziel
CODE_EXECUTION_SSL_VERIFY
Standard
True|False
Wert
True
Dify Env: CODE_EXECUTION_POOL_MAX_CONNECTIONSVariable

Upstream Dify self-hosted environment variable.

Ziel
CODE_EXECUTION_POOL_MAX_CONNECTIONS
Standard
100
Wert
100
Dify Env: CODE_EXECUTION_POOL_MAX_KEEPALIVE_CONNECTIONSVariable

Upstream Dify self-hosted environment variable.

Ziel
CODE_EXECUTION_POOL_MAX_KEEPALIVE_CONNECTIONS
Standard
20
Wert
20
Dify Env: CODE_EXECUTION_POOL_KEEPALIVE_EXPIRYVariable

Upstream Dify self-hosted environment variable.

Ziel
CODE_EXECUTION_POOL_KEEPALIVE_EXPIRY
Standard
5.0
Wert
5.0
Dify Env: CODE_EXECUTION_CONNECT_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Ziel
CODE_EXECUTION_CONNECT_TIMEOUT
Standard
10
Wert
10
Dify Env: CODE_EXECUTION_READ_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Ziel
CODE_EXECUTION_READ_TIMEOUT
Standard
60
Wert
60
Dify Env: CODE_EXECUTION_WRITE_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Ziel
CODE_EXECUTION_WRITE_TIMEOUT
Standard
10
Wert
10
Dify Env: WORKFLOW_MAX_EXECUTION_STEPSVariable

Workflow runtime configuration

Ziel
WORKFLOW_MAX_EXECUTION_STEPS
Standard
500
Wert
500
Dify Env: WORKFLOW_MAX_EXECUTION_TIMEVariable

Upstream Dify self-hosted environment variable.

Ziel
WORKFLOW_MAX_EXECUTION_TIME
Standard
1200
Wert
1200
Dify Env: WORKFLOW_CALL_MAX_DEPTHVariable

Upstream Dify self-hosted environment variable.

Ziel
WORKFLOW_CALL_MAX_DEPTH
Standard
5
Wert
5
Dify Env: WORKFLOW_FILE_UPLOAD_LIMITVariable

Upstream Dify self-hosted environment variable.

Ziel
WORKFLOW_FILE_UPLOAD_LIMIT
Standard
10
Wert
10
Dify Env: WORKFLOW_LOG_CLEANUP_ENABLEDVariable

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

Ziel
WORKFLOW_LOG_CLEANUP_ENABLED
Standard
false|true
Wert
false
Dify Env: WORKFLOW_LOG_RETENTION_DAYSVariable

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

Ziel
WORKFLOW_LOG_RETENTION_DAYS
Standard
30
Wert
30
Dify Env: WORKFLOW_LOG_CLEANUP_BATCH_SIZEVariable

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

Ziel
WORKFLOW_LOG_CLEANUP_BATCH_SIZE
Standard
100
Wert
100
Dify Env: WORKFLOW_LOG_CLEANUP_SPECIFIC_WORKFLOW_IDSVariable

Comma-separated list of workflow IDs to clean logs for

Ziel
WORKFLOW_LOG_CLEANUP_SPECIFIC_WORKFLOW_IDS
Dify Env: LOGSTORE_DUAL_WRITE_ENABLEDVariable

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

Ziel
LOGSTORE_DUAL_WRITE_ENABLED
Standard
false|true
Wert
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

Ziel
LOGSTORE_DUAL_READ_ENABLED
Standard
true|false
Wert
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.

Ziel
LOGSTORE_ENABLE_PUT_GRAPH_FIELD
Standard
true|false
Wert
true
Dify Env: HTTP_REQUEST_NODE_MAX_BINARY_SIZEVariable

HTTP request node in workflow configuration

Ziel
HTTP_REQUEST_NODE_MAX_BINARY_SIZE
Standard
10485760
Wert
10485760
Dify Env: HTTP_REQUEST_NODE_MAX_TEXT_SIZEVariable

Upstream Dify self-hosted environment variable.

Ziel
HTTP_REQUEST_NODE_MAX_TEXT_SIZE
Standard
1048576
Wert
1048576
Dify Env: HTTP_REQUEST_NODE_SSL_VERIFYVariable

Upstream Dify self-hosted environment variable.

Ziel
HTTP_REQUEST_NODE_SSL_VERIFY
Standard
True|False
Wert
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)...

Ziel
HTTP_REQUEST_MAX_CONNECT_TIMEOUT
Standard
10
Wert
10
Dify Env: HTTP_REQUEST_MAX_READ_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Ziel
HTTP_REQUEST_MAX_READ_TIMEOUT
Standard
600
Wert
600
Dify Env: HTTP_REQUEST_MAX_WRITE_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Ziel
HTTP_REQUEST_MAX_WRITE_TIMEOUT
Standard
600
Wert
600
Dify Env: TEXT_GENERATION_TIMEOUT_MSVariable

The timeout for the text generation in millisecond

Ziel
TEXT_GENERATION_TIMEOUT_MS
Standard
60000
Wert
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.

Ziel
ALLOW_INLINE_STYLES
Standard
false|true
Wert
false
Dify Env: ALLOW_UNSAFE_DATA_SCHEMEVariable

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

Ziel
ALLOW_UNSAFE_DATA_SCHEME
Standard
false|true
Wert
false
Dify Env: SANDBOX_GIN_MODEVariable

The mode in which the Gin framework runs

Ziel
SANDBOX_GIN_MODE
Standard
release
Wert
release
Dify Env: ORACLE_PWDVariable

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

Ziel
ORACLE_PWD
Standard
Dify123456
Wert
Dify123456
Dify Env: ORACLE_CHARACTERSETVariable

Upstream Dify self-hosted environment variable.

Ziel
ORACLE_CHARACTERSET
Standard
AL32UTF8
Wert
AL32UTF8
Dify Env: MILVUS_AUTHORIZATION_ENABLEDVariable

Enable or disable security authorization

Ziel
MILVUS_AUTHORIZATION_ENABLED
Standard
true|false
Wert
true
Dify Env: SSRF_HTTP_PORTVariable

Environment Variables for SSRF Proxy

Ziel
SSRF_HTTP_PORT
Standard
3128
Wert
3128
Dify Env: SSRF_DEFAULT_TIME_OUTVariable

Upstream Dify self-hosted environment variable.

Ziel
SSRF_DEFAULT_TIME_OUT
Standard
5
Wert
5
Dify Env: SSRF_DEFAULT_CONNECT_TIME_OUTVariable

Upstream Dify self-hosted environment variable.

Ziel
SSRF_DEFAULT_CONNECT_TIME_OUT
Standard
5
Wert
5
Dify Env: SSRF_DEFAULT_READ_TIME_OUTVariable

Upstream Dify self-hosted environment variable.

Ziel
SSRF_DEFAULT_READ_TIME_OUT
Standard
5
Wert
5
Dify Env: SSRF_DEFAULT_WRITE_TIME_OUTVariable

Upstream Dify self-hosted environment variable.

Ziel
SSRF_DEFAULT_WRITE_TIME_OUT
Standard
5
Wert
5
Dify Env: SSRF_POOL_MAX_CONNECTIONSVariable

Upstream Dify self-hosted environment variable.

Ziel
SSRF_POOL_MAX_CONNECTIONS
Standard
100
Wert
100
Dify Env: SSRF_POOL_MAX_KEEPALIVE_CONNECTIONSVariable

Upstream Dify self-hosted environment variable.

Ziel
SSRF_POOL_MAX_KEEPALIVE_CONNECTIONS
Standard
20
Wert
20
Dify Env: SSRF_POOL_KEEPALIVE_EXPIRYVariable

Upstream Dify self-hosted environment variable.

Ziel
SSRF_POOL_KEEPALIVE_EXPIRY
Standard
5.0
Wert
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

Ziel
POSITION_TOOL_PINS
Dify Env: POSITION_TOOL_INCLUDESVariable

Upstream Dify self-hosted environment variable.

Ziel
POSITION_TOOL_INCLUDES
Dify Env: POSITION_TOOL_EXCLUDESVariable

Upstream Dify self-hosted environment variable.

Ziel
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

Ziel
POSITION_PROVIDER_PINS
Dify Env: POSITION_PROVIDER_INCLUDESVariable

Upstream Dify self-hosted environment variable.

Ziel
POSITION_PROVIDER_INCLUDES
Dify Env: POSITION_PROVIDER_EXCLUDESVariable

Upstream Dify self-hosted environment variable.

Ziel
POSITION_PROVIDER_EXCLUDES
Dify Env: CSP_WHITELISTVariable

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

Ziel
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

Ziel
PLUGIN_STORAGE_TYPE
Standard
local|aws_s3|tencent_cos|azure_blob|aliyun_oss|volcengine_tos
Wert
local
Dify Env: PLUGIN_STORAGE_OSS_BUCKETVariable

Plugin oss bucket

Ziel
PLUGIN_STORAGE_OSS_BUCKET
Dify Env: PLUGIN_S3_USE_AWSVariable

Plugin oss s3 credentials

Ziel
PLUGIN_S3_USE_AWS
Standard
false|true
Wert
false
Dify Env: PLUGIN_S3_USE_AWS_MANAGED_IAMVariable

Upstream Dify self-hosted environment variable.

Ziel
PLUGIN_S3_USE_AWS_MANAGED_IAM
Standard
false|true
Wert
false
Dify Env: PLUGIN_S3_ENDPOINTVariable

Upstream Dify self-hosted environment variable.

Ziel
PLUGIN_S3_ENDPOINT
Dify Env: PLUGIN_S3_USE_PATH_STYLEVariable

Upstream Dify self-hosted environment variable.

Ziel
PLUGIN_S3_USE_PATH_STYLE
Standard
false|true
Wert
false
Dify Env: PLUGIN_AWS_ACCESS_KEYVariable

Upstream Dify self-hosted environment variable.

Ziel
PLUGIN_AWS_ACCESS_KEY
Dify Env: PLUGIN_AWS_SECRET_KEYVariable

Upstream Dify self-hosted environment variable.

Ziel
PLUGIN_AWS_SECRET_KEY
Dify Env: PLUGIN_AWS_REGIONVariable

Upstream Dify self-hosted environment variable.

Ziel
PLUGIN_AWS_REGION
Dify Env: PLUGIN_AZURE_BLOB_STORAGE_CONTAINER_NAMEVariable

Plugin oss azure blob

Ziel
PLUGIN_AZURE_BLOB_STORAGE_CONTAINER_NAME
Dify Env: PLUGIN_AZURE_BLOB_STORAGE_CONNECTION_STRINGVariable

Upstream Dify self-hosted environment variable.

Ziel
PLUGIN_AZURE_BLOB_STORAGE_CONNECTION_STRING
Dify Env: PLUGIN_TENCENT_COS_SECRET_KEYVariable

Plugin oss tencent cos

Ziel
PLUGIN_TENCENT_COS_SECRET_KEY
Dify Env: PLUGIN_TENCENT_COS_SECRET_IDVariable

Upstream Dify self-hosted environment variable.

Ziel
PLUGIN_TENCENT_COS_SECRET_ID
Dify Env: PLUGIN_TENCENT_COS_REGIONVariable

Upstream Dify self-hosted environment variable.

Ziel
PLUGIN_TENCENT_COS_REGION
Dify Env: PLUGIN_ALIYUN_OSS_REGIONVariable

Plugin oss aliyun oss

Ziel
PLUGIN_ALIYUN_OSS_REGION
Dify Env: PLUGIN_ALIYUN_OSS_ENDPOINTVariable

Upstream Dify self-hosted environment variable.

Ziel
PLUGIN_ALIYUN_OSS_ENDPOINT
Dify Env: PLUGIN_ALIYUN_OSS_ACCESS_KEY_IDVariable

Upstream Dify self-hosted environment variable.

Ziel
PLUGIN_ALIYUN_OSS_ACCESS_KEY_ID
Dify Env: PLUGIN_ALIYUN_OSS_ACCESS_KEY_SECRETVariable

Upstream Dify self-hosted environment variable.

Ziel
PLUGIN_ALIYUN_OSS_ACCESS_KEY_SECRET
Dify Env: PLUGIN_ALIYUN_OSS_AUTH_VERSIONVariable

Upstream Dify self-hosted environment variable.

Ziel
PLUGIN_ALIYUN_OSS_AUTH_VERSION
Standard
v4
Wert
v4
Dify Env: PLUGIN_ALIYUN_OSS_PATHVariable

Upstream Dify self-hosted environment variable.

Ziel
PLUGIN_ALIYUN_OSS_PATH
Dify Env: PLUGIN_VOLCENGINE_TOS_ENDPOINTVariable

Plugin oss volcengine tos

Ziel
PLUGIN_VOLCENGINE_TOS_ENDPOINT
Dify Env: PLUGIN_VOLCENGINE_TOS_ACCESS_KEYVariable

Upstream Dify self-hosted environment variable.

Ziel
PLUGIN_VOLCENGINE_TOS_ACCESS_KEY
Dify Env: PLUGIN_VOLCENGINE_TOS_SECRET_KEYVariable

Upstream Dify self-hosted environment variable.

Ziel
PLUGIN_VOLCENGINE_TOS_SECRET_KEY
Dify Env: PLUGIN_VOLCENGINE_TOS_REGIONVariable

Upstream Dify self-hosted environment variable.

Ziel
PLUGIN_VOLCENGINE_TOS_REGION
Dify Env: OTEL_EXPORTER_OTLP_PROTOCOLVariable

Upstream Dify self-hosted environment variable.

Ziel
OTEL_EXPORTER_OTLP_PROTOCOL
Dify Env: OTEL_EXPORTER_TYPEVariable

Upstream Dify self-hosted environment variable.

Ziel
OTEL_EXPORTER_TYPE
Standard
otlp
Wert
otlp
Dify Env: OTEL_SAMPLING_RATEVariable

Upstream Dify self-hosted environment variable.

Ziel
OTEL_SAMPLING_RATE
Standard
0.1
Wert
0.1
Dify Env: OTEL_BATCH_EXPORT_SCHEDULE_DELAYVariable

Upstream Dify self-hosted environment variable.

Ziel
OTEL_BATCH_EXPORT_SCHEDULE_DELAY
Standard
5000
Wert
5000
Dify Env: OTEL_MAX_QUEUE_SIZEVariable

Upstream Dify self-hosted environment variable.

Ziel
OTEL_MAX_QUEUE_SIZE
Standard
2048
Wert
2048
Dify Env: OTEL_MAX_EXPORT_BATCH_SIZEVariable

Upstream Dify self-hosted environment variable.

Ziel
OTEL_MAX_EXPORT_BATCH_SIZE
Standard
512
Wert
512
Dify Env: OTEL_METRIC_EXPORT_INTERVALVariable

Upstream Dify self-hosted environment variable.

Ziel
OTEL_METRIC_EXPORT_INTERVAL
Standard
60000
Wert
60000
Dify Env: OTEL_BATCH_EXPORT_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Ziel
OTEL_BATCH_EXPORT_TIMEOUT
Standard
10000
Wert
10000
Dify Env: OTEL_METRIC_EXPORT_TIMEOUTVariable

Upstream Dify self-hosted environment variable.

Ziel
OTEL_METRIC_EXPORT_TIMEOUT
Standard
30000
Wert
30000
Dify Env: ALLOW_EMBEDVariable

Prevent Clickjacking

Ziel
ALLOW_EMBED
Standard
false|true
Wert
false
Dify Env: DATASET_MAX_SEGMENTS_PER_REQUESTVariable

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

Ziel
DATASET_MAX_SEGMENTS_PER_REQUEST
Standard
0
Wert
0
Dify Env: ENABLE_CLEAN_EMBEDDING_CACHE_TASKVariable

Celery schedule tasks configuration

Ziel
ENABLE_CLEAN_EMBEDDING_CACHE_TASK
Standard
false|true
Wert
false
Dify Env: ENABLE_CLEAN_UNUSED_DATASETS_TASKVariable

Upstream Dify self-hosted environment variable.

Ziel
ENABLE_CLEAN_UNUSED_DATASETS_TASK
Standard
false|true
Wert
false
Dify Env: ENABLE_CLEAN_MESSAGESVariable

Upstream Dify self-hosted environment variable.

Ziel
ENABLE_CLEAN_MESSAGES
Standard
false|true
Wert
false
Dify Env: ENABLE_WORKFLOW_RUN_CLEANUP_TASKVariable

Upstream Dify self-hosted environment variable.

Ziel
ENABLE_WORKFLOW_RUN_CLEANUP_TASK
Standard
false|true
Wert
false
Dify Env: ENABLE_MAIL_CLEAN_DOCUMENT_NOTIFY_TASKVariable

Upstream Dify self-hosted environment variable.

Ziel
ENABLE_MAIL_CLEAN_DOCUMENT_NOTIFY_TASK
Standard
false|true
Wert
false
Dify Env: ENABLE_WORKFLOW_SCHEDULE_POLLER_TASKVariable

Upstream Dify self-hosted environment variable.

Ziel
ENABLE_WORKFLOW_SCHEDULE_POLLER_TASK
Standard
true|false
Wert
true
Dify Env: WORKFLOW_SCHEDULE_POLLER_INTERVALVariable

Upstream Dify self-hosted environment variable.

Ziel
WORKFLOW_SCHEDULE_POLLER_INTERVAL
Standard
1
Wert
1
Dify Env: WORKFLOW_SCHEDULE_POLLER_BATCH_SIZEVariable

Upstream Dify self-hosted environment variable.

Ziel
WORKFLOW_SCHEDULE_POLLER_BATCH_SIZE
Standard
100
Wert
100
Dify Env: WORKFLOW_SCHEDULE_MAX_DISPATCH_PER_TICKVariable

Upstream Dify self-hosted environment variable.

Ziel
WORKFLOW_SCHEDULE_MAX_DISPATCH_PER_TICK
Standard
0
Wert
0
Dify Env: SANDBOX_EXPIRED_RECORDS_CLEAN_GRACEFUL_PERIODVariable

Sandbox expired records clean configuration

Ziel
SANDBOX_EXPIRED_RECORDS_CLEAN_GRACEFUL_PERIOD
Standard
21
Wert
21
Dify Env: SANDBOX_EXPIRED_RECORDS_CLEAN_BATCH_SIZEVariable

Upstream Dify self-hosted environment variable.

Ziel
SANDBOX_EXPIRED_RECORDS_CLEAN_BATCH_SIZE
Standard
1000
Wert
1000
Dify Env: SANDBOX_EXPIRED_RECORDS_CLEAN_BATCH_MAX_INTERVALVariable

Upstream Dify self-hosted environment variable.

Ziel
SANDBOX_EXPIRED_RECORDS_CLEAN_BATCH_MAX_INTERVAL
Standard
200
Wert
200
Dify Env: SANDBOX_EXPIRED_RECORDS_RETENTION_DAYSVariable

Upstream Dify self-hosted environment variable.

Ziel
SANDBOX_EXPIRED_RECORDS_RETENTION_DAYS
Standard
30
Wert
30
Dify Env: ENABLE_HUMAN_INPUT_TIMEOUT_TASKVariable

Whether to Enable human input timeout check task

Ziel
ENABLE_HUMAN_INPUT_TIMEOUT_TASK
Standard
true|false
Wert
true
Dify Env: HUMAN_INPUT_TIMEOUT_TASK_INTERVALVariable

Human input timeout check interval in minutes

Ziel
HUMAN_INPUT_TIMEOUT_TASK_INTERVAL
Standard
1
Wert
1
Dify Env: SANDBOX_EXPIRED_RECORDS_CLEAN_TASK_LOCK_TTLVariable

Upstream Dify self-hosted environment variable.

Ziel
SANDBOX_EXPIRED_RECORDS_CLEAN_TASK_LOCK_TTL
Standard
90000
Wert
90000

Statistik herunterladen

2,748
Downloads insgesamt

Einzelheiten

Repository
jsonbored/dify-aio:latest
Zuletzt aktualisiert2026-05-26
Erstmals gesehen2026-04-30

Führen Sie dify-aio auf Unraid aus.

dify-aio ist gelistet in Community Apps für Unraid OS. Erkunden Sie Unraid, um einen flexiblen Heimserver, ein NAS oder ein Heimlabor aufzubauen.