dify-aio
dify-aio
Docker app from JSONbored's Repository
Overview
Dify is a self-hosted AI application platform for agentic workflows, RAG pipelines, tools, model-provider integrations, and observability.
All-In-One Unraid Editiondify-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)
- Install this template and leave [code]Web UI Port[/code] and [code]AppData[/code] at their defaults unless you already have a port conflict.
- 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.
- 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.
- 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.
- 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.
Requirements
Runtime arguments
- Web UI
http://[IP]:[PORT:8080]- Network
bridge- Shell
sh- Privileged
- false
Template configuration
Dify Web UI and API gateway port.
- Target
- 8080
- Default
- 8080
- Value
- 8080
Persistent Dify data, generated secrets, PostgreSQL data, Redis data, uploads, plugin storage, and sandbox configuration.
- Target
- /appdata
- Default
- /mnt/user/appdata/dify-aio
- Value
- /mnt/user/appdata/dify-aio
Optional external base URL such as https://dify.example.com. Used to default Dify console, app, trigger, WebSocket, and file URLs.
- Target
- DIFY_AIO_PUBLIC_URL
Optional initial admin password. Dify limits this value to 30 characters. Leave blank to set the admin account during first-run setup.
- Target
- INIT_PASSWORD
Container timezone.
- Target
- TZ
- Default
- UTC
- Value
- UTC
Dify deployment environment mode. Keep PRODUCTION for normal Unraid installs.
- Target
- DEPLOY_ENV
- Default
- PRODUCTION|TESTING
- Value
- PRODUCTION
Optional Dify update-check endpoint. Leave blank to disable outbound update checks for privacy-focused or offline installs.
- Target
- CHECK_UPDATE_URL
Dify application secret key. Leave blank to generate and persist one on first boot. Changing this after setup invalidates encrypted credentials and sessions.
- Target
- SECRET_KEY
Use the bundled PostgreSQL 15 database with pgvector. Set false only when using an external PostgreSQL-compatible database.
- Target
- DIFY_USE_INTERNAL_POSTGRES
- Default
- true|false
- Value
- true
Database type used by Dify. The bundled AIO database is PostgreSQL; non-PostgreSQL modes require external infrastructure.
- Target
- DB_TYPE
- Default
- postgresql|mysql|oceanbase|seekdb
- Value
- postgresql
PostgreSQL host. Keep 127.0.0.1 for bundled PostgreSQL.
- Target
- DB_HOST
- Default
- 127.0.0.1
- Value
- 127.0.0.1
PostgreSQL port.
- Target
- DB_PORT
- Default
- 5432
- Value
- 5432
PostgreSQL user for Dify.
- Target
- DB_USERNAME
- Default
- dify
- Value
- dify
PostgreSQL password. Leave blank to generate and persist one on first boot.
- Target
- DB_PASSWORD
PostgreSQL database used by the Dify API.
- Target
- DB_DATABASE
- Default
- dify
- Value
- dify
PostgreSQL database used by the Dify plugin daemon.
- Target
- DB_PLUGIN_DATABASE
- Default
- dify_plugin
- Value
- dify_plugin
Use the bundled Redis instance. Set false only when using an external Redis service.
- Target
- DIFY_USE_INTERNAL_REDIS
- Default
- true|false
- Value
- true
Redis host. Keep 127.0.0.1 for bundled Redis.
- Target
- REDIS_HOST
- Default
- 127.0.0.1
- Value
- 127.0.0.1
Redis port.
- Target
- REDIS_PORT
- Default
- 6379
- Value
- 6379
Redis password. Leave blank to generate and persist one on first boot.
- Target
- REDIS_PASSWORD
Optional explicit Celery broker URL. Leave blank to derive it from Redis settings.
- Target
- CELERY_BROKER_URL
Optional public console API URL. Leave blank to derive from Public URL or incoming requests.
- Target
- CONSOLE_API_URL
Optional public console web URL. Leave blank to derive from Public URL or incoming requests.
- Target
- CONSOLE_WEB_URL
Optional public Service API URL shown inside Dify. Leave blank to derive from Public URL or incoming requests.
- Target
- SERVICE_API_URL
Optional public trigger URL. Leave blank to derive from Public URL or use Dify defaults.
- Target
- TRIGGER_URL
Optional published-app API URL. Leave blank to derive from Public URL or incoming requests.
- Target
- APP_API_URL
Optional published-app web URL. Leave blank to derive from Public URL or incoming requests.
- Target
- APP_WEB_URL
Optional public file preview/download URL. Leave blank to derive from Public URL.
- Target
- FILES_URL
Internal file URL used by Dify services. Leave blank for the AIO localhost default.
- Target
- INTERNAL_FILES_URL
Optional WebSocket URL for collaboration mode. Leave blank to derive from Public URL when provided.
- Target
- NEXT_PUBLIC_SOCKET_URL
Optional Dify log file path. Leave blank for /appdata/logs/server.log.
- Target
- LOG_FILE
Optional Dify log timezone. Leave blank to inherit TZ.
- Target
- LOG_TZ
Internal Dify API bind address. Keep localhost so only the bundled Nginx gateway is exposed.
- Target
- DIFY_BIND_ADDRESS
- Default
- 127.0.0.1
- Value
- 127.0.0.1
Dify API worker count. Increase only if the host has enough CPU and memory.
- Target
- SERVER_WORKER_AMOUNT
- Default
- 1
- Value
- 1
Gunicorn worker class. The AIO default supports collaboration WebSockets.
- Target
- SERVER_WORKER_CLASS
- Default
- geventwebsocket.gunicorn.workers.GeventWebSocketWorker
- Value
- geventwebsocket.gunicorn.workers.GeventWebSocketWorker
Dify background worker count. Increase for indexing-heavy workloads on larger hosts.
- Target
- CELERY_WORKER_AMOUNT
- Default
- 2
- Value
- 2
Celery worker class. Keep gevent unless debugging an upstream-specific issue.
- Target
- CELERY_WORKER_CLASS
- Default
- gevent
- Value
- gevent
API request timeout in seconds.
- Target
- GUNICORN_TIMEOUT
- Default
- 360
- Value
- 360
Dify vector database backend. The default uses bundled PostgreSQL with pgvector. Non-pgvector choices require external services and matching variables.
- Target
- VECTOR_STORE
- Default
- 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
- Value
- pgvector
Optional pgvector host override. Leave blank to reuse the Dify database host.
- Target
- PGVECTOR_HOST
Optional pgvector port override. Leave blank to reuse the Dify database port.
- Target
- PGVECTOR_PORT
Optional pgvector user override. Leave blank to reuse the Dify database user.
- Target
- PGVECTOR_USER
Optional pgvector password override. Leave blank to reuse the Dify database password.
- Target
- PGVECTOR_PASSWORD
Optional pgvector database override. Leave blank to reuse the Dify database name.
- Target
- PGVECTOR_DATABASE
External Qdrant URL when Vector Store is qdrant.
- Target
- QDRANT_URL
External Qdrant API key when required.
- Target
- QDRANT_API_KEY
External Weaviate HTTP endpoint when Vector Store is weaviate.
- Target
- WEAVIATE_ENDPOINT
External Weaviate API key when required.
- Target
- WEAVIATE_API_KEY
External Weaviate gRPC endpoint when required.
- Target
- WEAVIATE_GRPC_ENDPOINT
Dify file storage backend. The default uses local OpenDAL filesystem storage under AppData.
- Target
- STORAGE_TYPE
- Default
- opendal|s3|azure-blob|google-storage|aliyun-oss|tencent-cos|huawei-obs|oci-storage|volcengine-tos|baidu-obs|supabase|clickzetta-volume
- Value
- opendal
OpenDAL storage scheme. The AIO default uses local filesystem storage.
- Target
- OPENDAL_SCHEME
- Default
- fs
- Value
- fs
OpenDAL filesystem root. Leave blank for /app/api/storage, symlinked to AppData.
- Target
- OPENDAL_FS_ROOT
S3-compatible storage endpoint when using S3 storage.
- Target
- S3_ENDPOINT
S3 region.
- Target
- S3_REGION
- Default
- us-east-1
- Value
- us-east-1
S3 bucket for Dify files.
- Target
- S3_BUCKET_NAME
S3 access key.
- Target
- S3_ACCESS_KEY
S3 secret key.
- Target
- S3_SECRET_KEY
Run the bundled Dify sandbox used for code execution. Disabling it breaks code-execution features.
- Target
- DIFY_ENABLE_SANDBOX
- Default
- true|false
- Value
- true
Sandbox API key. Leave blank to generate and persist one on first boot.
- Target
- SANDBOX_API_KEY
Dify sandbox endpoint. Leave blank for the AIO localhost sandbox.
- Target
- CODE_EXECUTION_ENDPOINT
Dify sandbox API key used by the API service. Leave blank to mirror Sandbox API Key.
- Target
- CODE_EXECUTION_API_KEY
Allow sandboxed code to access the network through the bundled SSRF proxy.
- Target
- SANDBOX_ENABLE_NETWORK
- Default
- true|false
- Value
- true
Sandbox execution timeout in seconds.
- Target
- SANDBOX_WORKER_TIMEOUT
- Default
- 15
- Value
- 15
Sandbox service port. Leave blank for 8194.
- Target
- SANDBOX_PORT
HTTP proxy used by sandboxed code. Leave blank for the bundled SSRF proxy.
- Target
- SANDBOX_HTTP_PROXY
HTTPS proxy used by sandboxed code. Leave blank for the bundled SSRF proxy.
- Target
- SANDBOX_HTTPS_PROXY
Internal HTTP proxy URL used by Dify. Leave blank for the bundled SSRF proxy.
- Target
- SSRF_PROXY_HTTP_URL
Internal HTTPS proxy URL used by Dify. Leave blank for the bundled SSRF proxy.
- Target
- SSRF_PROXY_HTTPS_URL
Internal reverse proxy port. Leave blank for the AIO non-conflicting default.
- Target
- SSRF_REVERSE_PROXY_PORT
Sandbox host name used by the SSRF proxy. Leave blank for localhost.
- Target
- SSRF_SANDBOX_HOST
Plugin daemon server key. Leave blank to generate and persist one on first boot.
- Target
- PLUGIN_DAEMON_KEY
Shared inner API key used between Dify and the plugin daemon. Leave blank to generate and persist one on first boot.
- Target
- PLUGIN_DIFY_INNER_API_KEY
Plugin daemon URL used by Dify. Leave blank for the AIO localhost plugin daemon.
- Target
- PLUGIN_DAEMON_URL
Inner API URL used by the plugin daemon. Leave blank for the AIO localhost API.
- Target
- PLUGIN_DIFY_INNER_API_URL
Require signed plugins where Dify supports signature verification.
- Target
- FORCE_VERIFYING_SIGNATURE
- Default
- true|false
- Value
- true
Enable the Dify plugin marketplace integration.
- Target
- MARKETPLACE_ENABLED
- Default
- true|false
- Value
- true
Mail provider used by Dify.
- Target
- MAIL_TYPE
- Default
- resend|smtp|sendgrid
- Value
- resend
Resend API key when Mail Type is resend.
- Target
- RESEND_API_KEY
SendGrid API key when Mail Type is sendgrid.
- Target
- SENDGRID_API_KEY
SMTP host when Mail Type is smtp.
- Target
- SMTP_SERVER
SMTP port.
- Target
- SMTP_PORT
- Default
- 465
- Value
- 465
SMTP username.
- Target
- SMTP_USERNAME
SMTP password.
- Target
- SMTP_PASSWORD
Default sender address for Dify email.
- Target
- MAIL_DEFAULT_SEND_FROM
Internal Nginx listen port. Keep this aligned with the Web UI Port mapping.
- Target
- NGINX_PORT
- Default
- 8080
- Value
- 8080
Nginx server_name value.
- Target
- NGINX_SERVER_NAME
- Default
- _
- Value
- _
Maximum request body size accepted by the bundled Nginx gateway.
- Target
- NGINX_CLIENT_MAX_BODY_SIZE
- Default
- 100M
- Value
- 100M
Bundled Nginx proxy read timeout.
- Target
- NGINX_PROXY_READ_TIMEOUT
- Default
- 3600s
- Value
- 3600s
Bundled Nginx proxy send timeout.
- Target
- NGINX_PROXY_SEND_TIMEOUT
- Default
- 3600s
- Value
- 3600s
Expose Firecrawl as a Dify website datasource option. Configure Firecrawl credentials inside Dify where required.
- Target
- ENABLE_WEBSITE_FIRECRAWL
- Default
- true|false
- Value
- true
Expose Jina Reader as a Dify website datasource option.
- Target
- ENABLE_WEBSITE_JINAREADER
- Default
- true|false
- Value
- true
Expose WaterCrawl as a Dify website datasource option.
- Target
- ENABLE_WEBSITE_WATERCRAWL
- Default
- true|false
- Value
- true
Storage backend for workflow node execution records. Keep rdbms for the default AIO database path.
- Target
- WORKFLOW_NODE_EXECUTION_STORAGE
- Default
- rdbms|hybrid
- Value
- rdbms
Startup wait timeout for internal service readiness checks.
- Target
- DIFY_AIO_WAIT_TIMEOUT_SECONDS
- Default
- 300
- Value
- 300
Optional dotenv-style file for rare upstream Dify variables that are intentionally not shown in the Unraid template.
- Target
- DIFY_AIO_EXTRA_ENV_FILE
- Default
- /appdata/config/extra.env
- Value
- /appdata/config/extra.env
Optional locale override for LANG. Leave blank for C.UTF-8.
- Target
- DIFY_AIO_LANG
Optional locale override for LC_ALL. Leave blank for C.UTF-8.
- Target
- DIFY_AIO_LC_ALL
Internal Dify web service port. Keep aligned with the bundled Nginx proxy.
- Target
- DIFY_WEB_PORT
- Default
- 3000
- Value
- 3000
Internal Dify web service bind host. Keep localhost so only the bundled Nginx gateway is exposed.
- Target
- DIFY_WEB_HOST
- Default
- 127.0.0.1
- Value
- 127.0.0.1
Plugin daemon platform mode. The AIO default is local.
- Target
- PLUGIN_PLATFORM
- Default
- local
- Value
- local
Plugin remote-install/debug host used by the plugin daemon. Keep localhost unless you intentionally expose plugin debugging.
- Target
- PLUGIN_DEBUGGING_HOST
- Default
- 127.0.0.1
- Value
- 127.0.0.1
Plugin remote-install/debug port used by the plugin daemon.
- Target
- PLUGIN_DEBUGGING_PORT
- Default
- 5003
- Value
- 5003
Maximum plugin package size accepted by the plugin daemon, in bytes.
- Target
- PLUGIN_MAX_PACKAGE_SIZE
- Default
- 52428800
- Value
- 52428800
Internal plugin daemon port. Keep aligned with the bundled Nginx /e/ route.
- Target
- PLUGIN_DAEMON_PORT
- Default
- 5002
- Value
- 5002
Plugin daemon database SSL mode.
- Target
- DB_SSL_MODE
- Default
- disable
- Value
- disable
Optional Python package mirror URL used by the Dify sandbox.
- Target
- PIP_MIRROR_URL
Disable telemetry from the bundled Next.js web runtime.
- Target
- NEXT_TELEMETRY_DISABLED
- Default
- 1
- Value
- 1
The log level for the application. Supported values are `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL`
- Target
- LOG_LEVEL
- Default
- DEBUG|INFO|WARNING|ERROR|CRITICAL
- Value
- INFO
Log output format: text or json
- Target
- LOG_OUTPUT_FORMAT
- Default
- text|json
- Value
- text
Log file max size, the unit is MB
- Target
- LOG_FILE_MAX_SIZE
- Default
- 20
- Value
- 20
Log file max backup count
- Target
- LOG_FILE_BACKUP_COUNT
- Default
- 5
- Value
- 5
Log dateformat
- Target
- LOG_DATEFORMAT
- Default
- %Y-%m-%d %H:%M:%S
- Value
- %Y-%m-%d %H:%M:%S
Debug mode, default is false. It is recommended to turn on this configuration for local development to prevent some problems caused by monkey patch.
- Target
- DEBUG
- Default
- false|true
- Value
- false
Flask debug mode, it can output trace information at the interface when turned on, which is convenient for debugging.
- Target
- FLASK_DEBUG
- Default
- false|true
- Value
- false
Enable request logging, which will log the request and response information. And the log level is DEBUG
- Target
- ENABLE_REQUEST_LOGGING
- Default
- False|True
- Value
- False
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.
- Target
- OPENAI_API_BASE
- Default
- https://api.openai.com/v1
- Value
- https://api.openai.com/v1
When enabled, migrations will be executed prior to application startup and the application will start after the migrations have completed.
- Target
- MIGRATION_ENABLED
- Default
- true|false
- Value
- true
File Access Time specifies a time interval in seconds for the file to be accessed. The default value is 300 seconds.
- Target
- FILES_ACCESS_TIMEOUT
- Default
- 300
- Value
- 300
Collaboration mode toggle To open collaboration features, you also need to set SERVER_WORKER_CLASS=geventwebsocket.gunicorn.workers.GeventWebSocketWorker
- Target
- ENABLE_COLLABORATION_MODE
- Default
- false|true
- Value
- false
Access token expiration time in minutes
- Target
- ACCESS_TOKEN_EXPIRE_MINUTES
- Default
- 60
- Value
- 60
Refresh token expiration time in days
- Target
- REFRESH_TOKEN_EXPIRE_DAYS
- Default
- 30
- Value
- 30
The default number of active requests for the application, where 0 means unlimited, should be a non-negative integer.
- Target
- APP_DEFAULT_ACTIVE_REQUESTS
- Default
- 0
- Value
- 0
The maximum number of active requests for the application, where 0 means unlimited, should be a non-negative integer.
- Target
- APP_MAX_ACTIVE_REQUESTS
- Default
- 0
- Value
- 0
Upstream Dify self-hosted environment variable.
- Target
- APP_MAX_EXECUTION_TIME
- Default
- 1200
- Value
- 1200
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....
- Target
- CELERY_AUTO_SCALE
- Default
- false|true
- Value
- false
The maximum number of Celery workers that can be autoscaled. This is optional and only used when autoscaling is enabled. Default is not set.
- Target
- CELERY_MAX_WORKERS
The minimum number of Celery workers that can be autoscaled. This is optional and only used when autoscaling is enabled. Default is not set.
- Target
- CELERY_MIN_WORKERS
API Tool configuration
- Target
- API_TOOL_DEFAULT_CONNECT_TIMEOUT
- Default
- 10
- Value
- 10
Upstream Dify self-hosted environment variable.
- Target
- API_TOOL_DEFAULT_READ_TIMEOUT
- Default
- 60
- Value
- 60
Enable inline LaTeX rendering with single dollar signs ($...$) in the web frontend Default is false for security reasons to prevent conflicts with regular text
- Target
- NEXT_PUBLIC_ENABLE_SINGLE_DOLLAR_LATEX
- Default
- false|true
- Value
- false
The size of the database connection pool. The default is 30 connections, which can be appropriately increased.
- Target
- SQLALCHEMY_POOL_SIZE
- Default
- 30
- Value
- 30
The default is 10 connections, which allows temporary overflow beyond the pool size.
- Target
- SQLALCHEMY_MAX_OVERFLOW
- Default
- 10
- Value
- 10
Database connection pool recycling time, the default is 3600 seconds.
- Target
- SQLALCHEMY_POOL_RECYCLE
- Default
- 3600
- Value
- 3600
Whether to print SQL, default is false.
- Target
- SQLALCHEMY_ECHO
- Default
- false|true
- Value
- false
If True, will test connections for liveness upon each checkout
- Target
- SQLALCHEMY_POOL_PRE_PING
- Default
- false|true
- Value
- false
Whether to enable the Last in first out option or use default FIFO queue if is false
- Target
- SQLALCHEMY_POOL_USE_LIFO
- Default
- false|true
- Value
- false
Number of seconds to wait for a connection from the pool before raising a timeout error. Default is 30
- Target
- SQLALCHEMY_POOL_TIMEOUT
- Default
- 30
- Value
- 30
Maximum number of connections to the database Default is 100 Reference: https://www.postgresql.org/docs/current/runtime-config-connection.html#GUC-MAX-CONNECTIONS
- Target
- POSTGRES_MAX_CONNECTIONS
- Default
- 200
- Value
- 200
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
- Target
- POSTGRES_SHARED_BUFFERS
- Default
- 128MB
- Value
- 128MB
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
- Target
- POSTGRES_WORK_MEM
- Default
- 4MB
- Value
- 4MB
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
- Target
- POSTGRES_MAINTENANCE_WORK_MEM
- Default
- 64MB
- Value
- 64MB
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
- Target
- POSTGRES_EFFECTIVE_CACHE_SIZE
- Default
- 4096MB
- Value
- 4096MB
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.
- Target
- POSTGRES_STATEMENT_TIMEOUT
- Default
- 0
- Value
- 0
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...
- Target
- POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUT
- Default
- 0
- Value
- 0
MySQL Performance Configuration Maximum number of connections to MySQL Default is 1000
- Target
- MYSQL_MAX_CONNECTIONS
- Default
- 1000
- Value
- 1000
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
- Target
- MYSQL_INNODB_BUFFER_POOL_SIZE
- Default
- 512M
- Value
- 512M
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
- Target
- MYSQL_INNODB_LOG_FILE_SIZE
- Default
- 128M
- Value
- 128M
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
- Target
- MYSQL_INNODB_FLUSH_LOG_AT_TRX_COMMIT
- Default
- 2
- Value
- 2
Upstream Dify self-hosted environment variable.
- Target
- REDIS_USERNAME
Upstream Dify self-hosted environment variable.
- Target
- REDIS_USE_SSL
- Default
- false|true
- Value
- false
SSL configuration for Redis (when REDIS_USE_SSL=true)
- Target
- REDIS_SSL_CERT_REQS
- Default
- CERT_NONE|CERT_OPTIONAL|CERT_REQUIRED
- Value
- CERT_NONE
Options: CERT_NONE, CERT_OPTIONAL, CERT_REQUIRED
- Target
- REDIS_SSL_CA_CERTS
Path to CA certificate file for SSL verification
- Target
- REDIS_SSL_CERTFILE
Path to client certificate file for SSL authentication
- Target
- REDIS_SSL_KEYFILE
Path to client private key file for SSL authentication
- Target
- REDIS_DB
- Default
- 0
- Value
- 0
Optional global prefix for Redis keys, topics, streams, and Celery Redis transport artifacts. Leave empty to preserve current unprefixed behavior.
- Target
- REDIS_KEY_PREFIX
Optional: limit total Redis connections used by API/Worker (unset for default) Align with API's REDIS_MAX_CONNECTIONS in configs
- Target
- REDIS_MAX_CONNECTIONS
Whether to use Redis Sentinel mode. If set to true, the application will automatically discover and connect to the master node through Sentinel.
- Target
- REDIS_USE_SENTINEL
- Default
- false|true
- Value
- false
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`
- Target
- REDIS_SENTINELS
Upstream Dify self-hosted environment variable.
- Target
- REDIS_SENTINEL_SERVICE_NAME
Upstream Dify self-hosted environment variable.
- Target
- REDIS_SENTINEL_USERNAME
Upstream Dify self-hosted environment variable.
- Target
- REDIS_SENTINEL_PASSWORD
Upstream Dify self-hosted environment variable.
- Target
- REDIS_SENTINEL_SOCKET_TIMEOUT
- Default
- 0.1
- Value
- 0.1
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`
- Target
- REDIS_USE_CLUSTERS
- Default
- false|true
- Value
- false
Upstream Dify self-hosted environment variable.
- Target
- REDIS_CLUSTERS
Upstream Dify self-hosted environment variable.
- Target
- REDIS_CLUSTERS_PASSWORD
Redis connection and retry configuration max redis retry
- Target
- REDIS_RETRY_RETRIES
- Default
- 3
- Value
- 3
Base delay (in seconds) for exponential backoff on retries
- Target
- REDIS_RETRY_BACKOFF_BASE
- Default
- 1.0
- Value
- 1.0
Cap (in seconds) for exponential backoff on retries
- Target
- REDIS_RETRY_BACKOFF_CAP
- Default
- 10.0
- Value
- 10.0
Timeout (in seconds) for Redis socket operations
- Target
- REDIS_SOCKET_TIMEOUT
- Default
- 5.0
- Value
- 5.0
Timeout (in seconds) for establishing a Redis connection
- Target
- REDIS_SOCKET_CONNECT_TIMEOUT
- Default
- 5.0
- Value
- 5.0
Interval (in seconds) for Redis health checks
- Target
- REDIS_HEALTH_CHECK_INTERVAL
- Default
- 30
- Value
- 30
Upstream Dify self-hosted environment variable.
- Target
- CELERY_BACKEND
- Default
- redis
- Value
- redis
Upstream Dify self-hosted environment variable.
- Target
- BROKER_USE_SSL
- Default
- false|true
- Value
- false
If you are using Redis Sentinel for high availability, configure the following settings.
- Target
- CELERY_USE_SENTINEL
- Default
- false|true
- Value
- false
Upstream Dify self-hosted environment variable.
- Target
- CELERY_SENTINEL_MASTER_NAME
Upstream Dify self-hosted environment variable.
- Target
- CELERY_SENTINEL_PASSWORD
Upstream Dify self-hosted environment variable.
- Target
- CELERY_SENTINEL_SOCKET_TIMEOUT
- Default
- 0.1
- Value
- 0.1
e.g. {"tasks.add": {"rate_limit": "10/s"}}
- Target
- CELERY_TASK_ANNOTATIONS
- Default
- null
- Value
- null
Specifies the allowed origins for cross-origin requests to the Web API, e.g. https://dify.app or * for all origins.
- Target
- WEB_API_CORS_ALLOW_ORIGINS
- Default
- *
- Value
- *
Specifies the allowed origins for cross-origin requests to the console API, e.g. https://cloud.dify.ai or * for all origins.
- Target
- CONSOLE_CORS_ALLOW_ORIGINS
- Default
- *
- Value
- *
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.
- Target
- COOKIE_DOMAIN
When the frontend and backend run on different subdomains, set NEXT_PUBLIC_COOKIE_DOMAIN=1.
- Target
- NEXT_PUBLIC_COOKIE_DOMAIN
Upstream Dify self-hosted environment variable.
- Target
- NEXT_PUBLIC_BATCH_CONCURRENCY
- Default
- 5
- Value
- 5
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-...
- Target
- CLICKZETTA_VOLUME_TYPE
- Default
- user
- Value
- user
External Volume name (required only when TYPE=external)
- Target
- CLICKZETTA_VOLUME_NAME
Table Volume table prefix (used only when TYPE=table)
- Target
- CLICKZETTA_VOLUME_TABLE_PREFIX
- Default
- dataset_
- Value
- dataset_
Dify file directory prefix (isolates from other apps, recommended to keep default)
- Target
- CLICKZETTA_VOLUME_DIFY_PREFIX
- Default
- dify_km
- Value
- dify_km
Upstream Dify self-hosted environment variable.
- Target
- S3_ADDRESS_STYLE
- Default
- auto
- Value
- auto
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.
- Target
- S3_USE_AWS_MANAGED_IAM
- Default
- false|true
- Value
- false
Workflow run and Conversation archive storage (S3-compatible)
- Target
- ARCHIVE_STORAGE_ENABLED
- Default
- false|true
- Value
- false
Upstream Dify self-hosted environment variable.
- Target
- ARCHIVE_STORAGE_ENDPOINT
Upstream Dify self-hosted environment variable.
- Target
- ARCHIVE_STORAGE_ARCHIVE_BUCKET
Upstream Dify self-hosted environment variable.
- Target
- ARCHIVE_STORAGE_EXPORT_BUCKET
Upstream Dify self-hosted environment variable.
- Target
- ARCHIVE_STORAGE_ACCESS_KEY
Upstream Dify self-hosted environment variable.
- Target
- ARCHIVE_STORAGE_SECRET_KEY
Upstream Dify self-hosted environment variable.
- Target
- ARCHIVE_STORAGE_REGION
- Default
- auto
- Value
- auto
Azure Blob Configuration
- Target
- AZURE_BLOB_ACCOUNT_NAME
- Default
- difyai
- Value
- difyai
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- AZURE_BLOB_ACCOUNT_KEY
Upstream Dify self-hosted environment variable.
- Target
- AZURE_BLOB_CONTAINER_NAME
- Default
- difyai-container
- Value
- difyai-container
Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- AZURE_BLOB_ACCOUNT_URL
Google Storage Configuration Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- GOOGLE_STORAGE_BUCKET_NAME
Upstream Dify self-hosted environment variable.
- Target
- GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64
The Alibaba Cloud OSS configurations, Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- ALIYUN_OSS_BUCKET_NAME
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- ALIYUN_OSS_ACCESS_KEY
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- ALIYUN_OSS_SECRET_KEY
Upstream Dify self-hosted environment variable. Official default: 'https://oss-ap-southeast-1-internal.aliyuncs.com'.
- Target
- ALIYUN_OSS_ENDPOINT
Upstream Dify self-hosted environment variable.
- Target
- ALIYUN_OSS_REGION
- Default
- ap-southeast-1
- Value
- ap-southeast-1
Upstream Dify self-hosted environment variable.
- Target
- ALIYUN_OSS_AUTH_VERSION
- Default
- v4
- Value
- v4
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.
- Target
- ALIYUN_OSS_PATH
Tencent COS Configuration Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- TENCENT_COS_BUCKET_NAME
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- TENCENT_COS_SECRET_KEY
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- TENCENT_COS_SECRET_ID
Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- TENCENT_COS_REGION
Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- TENCENT_COS_SCHEME
Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- TENCENT_COS_CUSTOM_DOMAIN
Oracle Storage Configuration Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- OCI_ENDPOINT
Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- OCI_BUCKET_NAME
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- OCI_ACCESS_KEY
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- OCI_SECRET_KEY
Upstream Dify self-hosted environment variable.
- Target
- OCI_REGION
- Default
- us-ashburn-1
- Value
- us-ashburn-1
Huawei OBS Configuration Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- HUAWEI_OBS_BUCKET_NAME
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- HUAWEI_OBS_SECRET_KEY
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- HUAWEI_OBS_ACCESS_KEY
Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- HUAWEI_OBS_SERVER
Upstream Dify self-hosted environment variable.
- Target
- HUAWEI_OBS_PATH_STYLE
- Default
- false|true
- Value
- false
Volcengine TOS Configuration Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- VOLCENGINE_TOS_BUCKET_NAME
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- VOLCENGINE_TOS_SECRET_KEY
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- VOLCENGINE_TOS_ACCESS_KEY
Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- VOLCENGINE_TOS_ENDPOINT
Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- VOLCENGINE_TOS_REGION
Baidu OBS Storage Configuration Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- BAIDU_OBS_BUCKET_NAME
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- BAIDU_OBS_SECRET_KEY
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- BAIDU_OBS_ACCESS_KEY
Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- BAIDU_OBS_ENDPOINT
Supabase Storage Configuration Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- SUPABASE_BUCKET_NAME
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- SUPABASE_API_KEY
Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- SUPABASE_URL
Prefix used to create collection name in vector database
- Target
- VECTOR_INDEX_NAME_PREFIX
- Default
- Vector_index
- Value
- Vector_index
Upstream Dify self-hosted environment variable.
- Target
- WEAVIATE_TOKENIZATION
- Default
- word
- Value
- word
Upstream Dify self-hosted environment variable.
- Target
- QDRANT_CLIENT_TIMEOUT
- Default
- 20
- Value
- 20
Upstream Dify self-hosted environment variable.
- Target
- QDRANT_GRPC_ENABLED
- Default
- false|true
- Value
- false
Upstream Dify self-hosted environment variable.
- Target
- QDRANT_GRPC_PORT
- Default
- 6334
- Value
- 6334
Upstream Dify self-hosted environment variable.
- Target
- QDRANT_REPLICATION_FACTOR
- Default
- 1
- Value
- 1
Milvus configuration. Only available when VECTOR_STORE is `milvus`. The milvus uri.
- Target
- MILVUS_URI
- Default
- http://host.docker.internal:19530
- Value
- http://host.docker.internal:19530
Upstream Dify self-hosted environment variable.
- Target
- MILVUS_DATABASE
Upstream Dify self-hosted environment variable.
- Target
- MILVUS_TOKEN
Upstream Dify self-hosted environment variable.
- Target
- MILVUS_USER
Upstream Dify self-hosted environment variable.
- Target
- MILVUS_PASSWORD
Upstream Dify self-hosted environment variable.
- Target
- MILVUS_ENABLE_HYBRID_SEARCH
- Default
- False|True
- Value
- False
Upstream Dify self-hosted environment variable.
- Target
- MILVUS_ANALYZER_PARAMS
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'.
- Target
- MYSCALE_HOST
Upstream Dify self-hosted environment variable.
- Target
- MYSCALE_PORT
- Default
- 8123
- Value
- 8123
Upstream Dify self-hosted environment variable.
- Target
- MYSCALE_USER
- Default
- default
- Value
- default
Upstream Dify self-hosted environment variable.
- Target
- MYSCALE_PASSWORD
Upstream Dify self-hosted environment variable.
- Target
- MYSCALE_DATABASE
- Default
- dify
- Value
- dify
Upstream Dify self-hosted environment variable.
- Target
- MYSCALE_FTS_PARAMS
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.
- Target
- COUCHBASE_CONNECTION_STRING
Upstream Dify self-hosted environment variable.
- Target
- COUCHBASE_USER
- Default
- Administrator
- Value
- Administrator
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- COUCHBASE_PASSWORD
Upstream Dify self-hosted environment variable.
- Target
- COUCHBASE_BUCKET_NAME
- Default
- Embeddings
- Value
- Embeddings
Upstream Dify self-hosted environment variable.
- Target
- COUCHBASE_SCOPE_NAME
- Default
- _default
- Value
- _default
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
- Target
- HOLOGRES_HOST
Upstream Dify self-hosted environment variable.
- Target
- HOLOGRES_PORT
- Default
- 80
- Value
- 80
Upstream Dify self-hosted environment variable.
- Target
- HOLOGRES_DATABASE
Upstream Dify self-hosted environment variable.
- Target
- HOLOGRES_ACCESS_KEY_ID
Upstream Dify self-hosted environment variable.
- Target
- HOLOGRES_ACCESS_KEY_SECRET
Upstream Dify self-hosted environment variable.
- Target
- HOLOGRES_SCHEMA
- Default
- public
- Value
- public
Upstream Dify self-hosted environment variable.
- Target
- HOLOGRES_TOKENIZER
- Default
- jieba
- Value
- jieba
Upstream Dify self-hosted environment variable.
- Target
- HOLOGRES_DISTANCE_METHOD
- Default
- Cosine
- Value
- Cosine
Upstream Dify self-hosted environment variable.
- Target
- HOLOGRES_BASE_QUANTIZATION_TYPE
- Default
- rabitq
- Value
- rabitq
Upstream Dify self-hosted environment variable.
- Target
- HOLOGRES_MAX_DEGREE
- Default
- 64
- Value
- 64
Upstream Dify self-hosted environment variable.
- Target
- HOLOGRES_EF_CONSTRUCTION
- Default
- 400
- Value
- 400
Upstream Dify self-hosted environment variable.
- Target
- PGVECTOR_MIN_CONNECTION
- Default
- 1
- Value
- 1
Upstream Dify self-hosted environment variable.
- Target
- PGVECTOR_MAX_CONNECTION
- Default
- 5
- Value
- 5
Upstream Dify self-hosted environment variable.
- Target
- PGVECTOR_PG_BIGM
- Default
- false|true
- Value
- false
Upstream Dify self-hosted environment variable.
- Target
- PGVECTOR_PG_BIGM_VERSION
- Default
- 1.2-20240606
- Value
- 1.2-20240606
vastbase configurations, only available when VECTOR_STORE is `vastbase` Official default: 'vastbase'.
- Target
- VASTBASE_HOST
Upstream Dify self-hosted environment variable.
- Target
- VASTBASE_PORT
- Default
- 5432
- Value
- 5432
Upstream Dify self-hosted environment variable.
- Target
- VASTBASE_USER
- Default
- dify
- Value
- dify
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- VASTBASE_PASSWORD
Upstream Dify self-hosted environment variable.
- Target
- VASTBASE_DATABASE
- Default
- dify
- Value
- dify
Upstream Dify self-hosted environment variable.
- Target
- VASTBASE_MIN_CONNECTION
- Default
- 1
- Value
- 1
Upstream Dify self-hosted environment variable.
- Target
- VASTBASE_MAX_CONNECTION
- Default
- 5
- Value
- 5
pgvecto-rs configurations, only available when VECTOR_STORE is `pgvecto-rs` Official default: 'pgvecto-rs'.
- Target
- PGVECTO_RS_HOST
Upstream Dify self-hosted environment variable.
- Target
- PGVECTO_RS_PORT
- Default
- 5432
- Value
- 5432
Upstream Dify self-hosted environment variable.
- Target
- PGVECTO_RS_USER
- Default
- postgres
- Value
- postgres
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- PGVECTO_RS_PASSWORD
Upstream Dify self-hosted environment variable.
- Target
- PGVECTO_RS_DATABASE
- Default
- dify
- Value
- dify
analyticdb configurations, only available when VECTOR_STORE is `analyticdb` Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- ANALYTICDB_KEY_ID
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- ANALYTICDB_KEY_SECRET
Upstream Dify self-hosted environment variable.
- Target
- ANALYTICDB_REGION_ID
- Default
- cn-hangzhou
- Value
- cn-hangzhou
Upstream Dify self-hosted environment variable.
- Target
- ANALYTICDB_INSTANCE_ID
- Default
- gp-ab123456
- Value
- gp-ab123456
Upstream Dify self-hosted environment variable.
- Target
- ANALYTICDB_ACCOUNT
- Default
- testaccount
- Value
- testaccount
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- ANALYTICDB_PASSWORD
Upstream Dify self-hosted environment variable.
- Target
- ANALYTICDB_NAMESPACE
- Default
- dify
- Value
- dify
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- ANALYTICDB_NAMESPACE_PASSWORD
Upstream Dify self-hosted environment variable. Official default: 'gp-test.aliyuncs.com'.
- Target
- ANALYTICDB_HOST
Upstream Dify self-hosted environment variable.
- Target
- ANALYTICDB_PORT
- Default
- 5432
- Value
- 5432
Upstream Dify self-hosted environment variable.
- Target
- ANALYTICDB_MIN_CONNECTION
- Default
- 1
- Value
- 1
Upstream Dify self-hosted environment variable.
- Target
- ANALYTICDB_MAX_CONNECTION
- Default
- 5
- Value
- 5
TiDB vector configurations, only available when VECTOR_STORE is `tidb_vector` Official default: 'tidb'.
- Target
- TIDB_VECTOR_HOST
Upstream Dify self-hosted environment variable.
- Target
- TIDB_VECTOR_PORT
- Default
- 4000
- Value
- 4000
Upstream Dify self-hosted environment variable.
- Target
- TIDB_VECTOR_USER
Upstream Dify self-hosted environment variable.
- Target
- TIDB_VECTOR_PASSWORD
Upstream Dify self-hosted environment variable.
- Target
- TIDB_VECTOR_DATABASE
- Default
- dify
- Value
- dify
Matrixone vector configurations. Official default: 'matrixone'.
- Target
- MATRIXONE_HOST
Upstream Dify self-hosted environment variable.
- Target
- MATRIXONE_PORT
- Default
- 6001
- Value
- 6001
Upstream Dify self-hosted environment variable.
- Target
- MATRIXONE_USER
- Default
- dump
- Value
- dump
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- MATRIXONE_PASSWORD
Upstream Dify self-hosted environment variable.
- Target
- MATRIXONE_DATABASE
- Default
- dify
- Value
- dify
Tidb on qdrant configuration, only available when VECTOR_STORE is `tidb_on_qdrant` Official default: 'http://127.0.0.1'.
- Target
- TIDB_ON_QDRANT_URL
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- TIDB_ON_QDRANT_API_KEY
Upstream Dify self-hosted environment variable.
- Target
- TIDB_ON_QDRANT_CLIENT_TIMEOUT
- Default
- 20
- Value
- 20
Upstream Dify self-hosted environment variable.
- Target
- TIDB_ON_QDRANT_GRPC_ENABLED
- Default
- false|true
- Value
- false
Upstream Dify self-hosted environment variable.
- Target
- TIDB_ON_QDRANT_GRPC_PORT
- Default
- 6334
- Value
- 6334
Chroma configuration, only available when VECTOR_STORE is `chroma` Official default: '127.0.0.1'.
- Target
- CHROMA_HOST
Upstream Dify self-hosted environment variable.
- Target
- CHROMA_PORT
- Default
- 8000
- Value
- 8000
Upstream Dify self-hosted environment variable.
- Target
- CHROMA_TENANT
- Default
- default_tenant
- Value
- default_tenant
Upstream Dify self-hosted environment variable.
- Target
- CHROMA_DATABASE
- Default
- default_database
- Value
- default_database
Upstream Dify self-hosted environment variable.
- Target
- CHROMA_AUTH_PROVIDER
- Default
- chromadb.auth.token_authn.TokenAuthClientProvider
- Value
- chromadb.auth.token_authn.TokenAuthClientProvider
Upstream Dify self-hosted environment variable.
- Target
- CHROMA_AUTH_CREDENTIALS
Oracle configuration, only available when VECTOR_STORE is `oracle`
- Target
- ORACLE_USER
- Default
- dify
- Value
- dify
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- ORACLE_PASSWORD
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- ORACLE_DSN
Upstream Dify self-hosted environment variable.
- Target
- ORACLE_CONFIG_DIR
- Default
- /app/api/storage/wallet
- Value
- /app/api/storage/wallet
Upstream Dify self-hosted environment variable.
- Target
- ORACLE_WALLET_LOCATION
- Default
- /app/api/storage/wallet
- Value
- /app/api/storage/wallet
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- ORACLE_WALLET_PASSWORD
Upstream Dify self-hosted environment variable.
- Target
- ORACLE_IS_AUTONOMOUS
- Default
- false|true
- Value
- false
AlibabaCloud MySQL configuration, only available when VECTOR_STORE is `alibabacloud_mysql` Official default: '127.0.0.1'.
- Target
- ALIBABACLOUD_MYSQL_HOST
Upstream Dify self-hosted environment variable.
- Target
- ALIBABACLOUD_MYSQL_PORT
- Default
- 3306
- Value
- 3306
Upstream Dify self-hosted environment variable.
- Target
- ALIBABACLOUD_MYSQL_USER
- Default
- root
- Value
- root
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- ALIBABACLOUD_MYSQL_PASSWORD
Upstream Dify self-hosted environment variable.
- Target
- ALIBABACLOUD_MYSQL_DATABASE
- Default
- dify
- Value
- dify
Upstream Dify self-hosted environment variable.
- Target
- ALIBABACLOUD_MYSQL_MAX_CONNECTION
- Default
- 5
- Value
- 5
Upstream Dify self-hosted environment variable.
- Target
- ALIBABACLOUD_MYSQL_HNSW_M
- Default
- 6
- Value
- 6
relyt configurations, only available when VECTOR_STORE is `relyt` Official default: 'db'.
- Target
- RELYT_HOST
Upstream Dify self-hosted environment variable.
- Target
- RELYT_PORT
- Default
- 5432
- Value
- 5432
Upstream Dify self-hosted environment variable.
- Target
- RELYT_USER
- Default
- postgres
- Value
- postgres
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- RELYT_PASSWORD
Upstream Dify self-hosted environment variable.
- Target
- RELYT_DATABASE
- Default
- postgres
- Value
- postgres
open search configuration, only available when VECTOR_STORE is `opensearch` Official default: 'opensearch'.
- Target
- OPENSEARCH_HOST
Upstream Dify self-hosted environment variable.
- Target
- OPENSEARCH_PORT
- Default
- 9200
- Value
- 9200
Upstream Dify self-hosted environment variable.
- Target
- OPENSEARCH_SECURE
- Default
- true|false
- Value
- true
Upstream Dify self-hosted environment variable.
- Target
- OPENSEARCH_VERIFY_CERTS
- Default
- true|false
- Value
- true
Upstream Dify self-hosted environment variable.
- Target
- OPENSEARCH_AUTH_METHOD
- Default
- basic
- Value
- basic
Upstream Dify self-hosted environment variable.
- Target
- OPENSEARCH_USER
- Default
- admin
- Value
- admin
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- OPENSEARCH_PASSWORD
If using AWS managed IAM, e.g. Managed Cluster or OpenSearch Serverless
- Target
- OPENSEARCH_AWS_REGION
- Default
- ap-southeast-1
- Value
- ap-southeast-1
Upstream Dify self-hosted environment variable.
- Target
- OPENSEARCH_AWS_SERVICE
- Default
- aoss
- Value
- aoss
tencent vector configurations, only available when VECTOR_STORE is `tencent` Official default: 'http://127.0.0.1'.
- Target
- TENCENT_VECTOR_DB_URL
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- TENCENT_VECTOR_DB_API_KEY
Upstream Dify self-hosted environment variable.
- Target
- TENCENT_VECTOR_DB_TIMEOUT
- Default
- 30
- Value
- 30
Upstream Dify self-hosted environment variable.
- Target
- TENCENT_VECTOR_DB_USERNAME
- Default
- dify
- Value
- dify
Upstream Dify self-hosted environment variable.
- Target
- TENCENT_VECTOR_DB_DATABASE
- Default
- dify
- Value
- dify
Upstream Dify self-hosted environment variable.
- Target
- TENCENT_VECTOR_DB_SHARD
- Default
- 1
- Value
- 1
Upstream Dify self-hosted environment variable.
- Target
- TENCENT_VECTOR_DB_REPLICAS
- Default
- 2
- Value
- 2
Upstream Dify self-hosted environment variable.
- Target
- TENCENT_VECTOR_DB_ENABLE_HYBRID_SEARCH
- Default
- false|true
- Value
- false
ElasticSearch configuration, only available when VECTOR_STORE is `elasticsearch` Official default: '0.0.0.0'.
- Target
- ELASTICSEARCH_HOST
Upstream Dify self-hosted environment variable.
- Target
- ELASTICSEARCH_PORT
- Default
- 9200
- Value
- 9200
Upstream Dify self-hosted environment variable.
- Target
- ELASTICSEARCH_USERNAME
- Default
- elastic
- Value
- elastic
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- ELASTICSEARCH_PASSWORD
Using ElasticSearch Cloud Serverless, or not.
- Target
- ELASTICSEARCH_USE_CLOUD
- Default
- false|true
- Value
- false
Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- ELASTICSEARCH_CLOUD_URL
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- ELASTICSEARCH_API_KEY
Upstream Dify self-hosted environment variable.
- Target
- ELASTICSEARCH_VERIFY_CERTS
- Default
- False|True
- Value
- False
Upstream Dify self-hosted environment variable.
- Target
- ELASTICSEARCH_CA_CERTS
Upstream Dify self-hosted environment variable.
- Target
- ELASTICSEARCH_REQUEST_TIMEOUT
- Default
- 100000
- Value
- 100000
Upstream Dify self-hosted environment variable.
- Target
- ELASTICSEARCH_RETRY_ON_TIMEOUT
- Default
- True|False
- Value
- True
Upstream Dify self-hosted environment variable.
- Target
- ELASTICSEARCH_MAX_RETRIES
- Default
- 10
- Value
- 10
baidu vector configurations, only available when VECTOR_STORE is `baidu` Official default: 'http://127.0.0.1:5287'.
- Target
- BAIDU_VECTOR_DB_ENDPOINT
Upstream Dify self-hosted environment variable.
- Target
- BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS
- Default
- 30000
- Value
- 30000
Upstream Dify self-hosted environment variable.
- Target
- BAIDU_VECTOR_DB_ACCOUNT
- Default
- root
- Value
- root
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- BAIDU_VECTOR_DB_API_KEY
Upstream Dify self-hosted environment variable.
- Target
- BAIDU_VECTOR_DB_DATABASE
- Default
- dify
- Value
- dify
Upstream Dify self-hosted environment variable.
- Target
- BAIDU_VECTOR_DB_SHARD
- Default
- 1
- Value
- 1
Upstream Dify self-hosted environment variable.
- Target
- BAIDU_VECTOR_DB_REPLICAS
- Default
- 3
- Value
- 3
Upstream Dify self-hosted environment variable.
- Target
- BAIDU_VECTOR_DB_INVERTED_INDEX_ANALYZER
- Default
- DEFAULT_ANALYZER
- Value
- DEFAULT_ANALYZER
Upstream Dify self-hosted environment variable.
- Target
- BAIDU_VECTOR_DB_INVERTED_INDEX_PARSER_MODE
- Default
- COARSE_MODE
- Value
- COARSE_MODE
Upstream Dify self-hosted environment variable.
- Target
- BAIDU_VECTOR_DB_AUTO_BUILD_ROW_COUNT_INCREMENT
- Default
- 500
- Value
- 500
Upstream Dify self-hosted environment variable.
- Target
- BAIDU_VECTOR_DB_AUTO_BUILD_ROW_COUNT_INCREMENT_RATIO
- Default
- 0.05
- Value
- 0.05
Upstream Dify self-hosted environment variable.
- Target
- BAIDU_VECTOR_DB_REBUILD_INDEX_TIMEOUT_IN_SECONDS
- Default
- 300
- Value
- 300
VikingDB configurations, only available when VECTOR_STORE is `vikingdb` Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- VIKINGDB_ACCESS_KEY
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- VIKINGDB_SECRET_KEY
Upstream Dify self-hosted environment variable.
- Target
- VIKINGDB_REGION
- Default
- cn-shanghai
- Value
- cn-shanghai
Upstream Dify self-hosted environment variable. Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- VIKINGDB_HOST
Upstream Dify self-hosted environment variable.
- Target
- VIKINGDB_SCHEMA
- Default
- http
- Value
- http
Upstream Dify self-hosted environment variable.
- Target
- VIKINGDB_CONNECTION_TIMEOUT
- Default
- 30
- Value
- 30
Upstream Dify self-hosted environment variable.
- Target
- VIKINGDB_SOCKET_TIMEOUT
- Default
- 30
- Value
- 30
Lindorm configuration, only available when VECTOR_STORE is `lindorm` Official default: 'http://localhost:30070'.
- Target
- LINDORM_URL
Upstream Dify self-hosted environment variable.
- Target
- LINDORM_USERNAME
- Default
- admin
- Value
- admin
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- LINDORM_PASSWORD
Upstream Dify self-hosted environment variable.
- Target
- LINDORM_USING_UGC
- Default
- True|False
- Value
- True
Upstream Dify self-hosted environment variable.
- Target
- LINDORM_QUERY_TIMEOUT
- Default
- 1
- Value
- 1
opengauss configurations, only available when VECTOR_STORE is `opengauss` Official default: 'opengauss'.
- Target
- OPENGAUSS_HOST
Upstream Dify self-hosted environment variable.
- Target
- OPENGAUSS_PORT
- Default
- 6600
- Value
- 6600
Upstream Dify self-hosted environment variable.
- Target
- OPENGAUSS_USER
- Default
- postgres
- Value
- postgres
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- OPENGAUSS_PASSWORD
Upstream Dify self-hosted environment variable.
- Target
- OPENGAUSS_DATABASE
- Default
- dify
- Value
- dify
Upstream Dify self-hosted environment variable.
- Target
- OPENGAUSS_MIN_CONNECTION
- Default
- 1
- Value
- 1
Upstream Dify self-hosted environment variable.
- Target
- OPENGAUSS_MAX_CONNECTION
- Default
- 5
- Value
- 5
Upstream Dify self-hosted environment variable.
- Target
- OPENGAUSS_ENABLE_PQ
- Default
- false|true
- Value
- false
huawei cloud search service vector configurations, only available when VECTOR_STORE is `huawei_cloud` Official default: 'https://127.0.0.1:9200'.
- Target
- HUAWEI_CLOUD_HOSTS
Upstream Dify self-hosted environment variable.
- Target
- HUAWEI_CLOUD_USER
- Default
- admin
- Value
- admin
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- HUAWEI_CLOUD_PASSWORD
Upstash Vector configuration, only available when VECTOR_STORE is `upstash` Upstream ships a placeholder value; the AIO template intentionally leaves it blank.
- Target
- UPSTASH_VECTOR_URL
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- UPSTASH_VECTOR_TOKEN
TableStore Vector configuration (only used when VECTOR_STORE is tablestore) Official default: 'https://instance-name.cn-hangzhou.ots.aliyuncs.com'.
- Target
- TABLESTORE_ENDPOINT
Upstream Dify self-hosted environment variable.
- Target
- TABLESTORE_INSTANCE_NAME
- Default
- instance-name
- Value
- instance-name
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- TABLESTORE_ACCESS_KEY_ID
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- TABLESTORE_ACCESS_KEY_SECRET
Upstream Dify self-hosted environment variable.
- Target
- TABLESTORE_NORMALIZE_FULLTEXT_BM25_SCORE
- Default
- false|true
- Value
- false
Clickzetta configuration, only available when VECTOR_STORE is `clickzetta`
- Target
- CLICKZETTA_USERNAME
Upstream Dify self-hosted environment variable.
- Target
- CLICKZETTA_PASSWORD
Upstream Dify self-hosted environment variable.
- Target
- CLICKZETTA_INSTANCE
Upstream Dify self-hosted environment variable.
- Target
- CLICKZETTA_SERVICE
- Default
- api.clickzetta.com
- Value
- api.clickzetta.com
Upstream Dify self-hosted environment variable.
- Target
- CLICKZETTA_WORKSPACE
- Default
- quick_start
- Value
- quick_start
Upstream Dify self-hosted environment variable.
- Target
- CLICKZETTA_VCLUSTER
- Default
- default_ap
- Value
- default_ap
Upstream Dify self-hosted environment variable.
- Target
- CLICKZETTA_SCHEMA
- Default
- dify
- Value
- dify
Upstream Dify self-hosted environment variable.
- Target
- CLICKZETTA_BATCH_SIZE
- Default
- 100
- Value
- 100
Upstream Dify self-hosted environment variable.
- Target
- CLICKZETTA_ENABLE_INVERTED_INDEX
- Default
- true|false
- Value
- true
Upstream Dify self-hosted environment variable.
- Target
- CLICKZETTA_ANALYZER_TYPE
- Default
- chinese
- Value
- chinese
Upstream Dify self-hosted environment variable.
- Target
- CLICKZETTA_ANALYZER_MODE
- Default
- smart
- Value
- smart
Upstream Dify self-hosted environment variable.
- Target
- CLICKZETTA_VECTOR_DISTANCE_FUNCTION
- Default
- cosine_distance
- Value
- cosine_distance
InterSystems IRIS configuration, only available when VECTOR_STORE is `iris` Official default: 'iris'.
- Target
- IRIS_HOST
Upstream Dify self-hosted environment variable.
- Target
- IRIS_SUPER_SERVER_PORT
- Default
- 1972
- Value
- 1972
Upstream Dify self-hosted environment variable.
- Target
- IRIS_WEB_SERVER_PORT
- Default
- 52773
- Value
- 52773
Upstream Dify self-hosted environment variable.
- Target
- IRIS_USER
- Default
- _SYSTEM
- Value
- _SYSTEM
Upstream Dify self-hosted environment variable. Upstream ships a sample value; the AIO template intentionally leaves it blank.
- Target
- IRIS_PASSWORD
Upstream Dify self-hosted environment variable.
- Target
- IRIS_DATABASE
- Default
- USER
- Value
- USER
Upstream Dify self-hosted environment variable.
- Target
- IRIS_SCHEMA
- Default
- dify
- Value
- dify
Upstream Dify self-hosted environment variable.
- Target
- IRIS_CONNECTION_URL
Upstream Dify self-hosted environment variable.
- Target
- IRIS_MIN_CONNECTION
- Default
- 1
- Value
- 1
Upstream Dify self-hosted environment variable.
- Target
- IRIS_MAX_CONNECTION
- Default
- 3
- Value
- 3
Upstream Dify self-hosted environment variable.
- Target
- IRIS_TEXT_INDEX
- Default
- true|false
- Value
- true
Upstream Dify self-hosted environment variable.
- Target
- IRIS_TEXT_INDEX_LANGUAGE
- Default
- en
- Value
- en
Upstream Dify self-hosted environment variable.
- Target
- IRIS_TIMEZONE
- Default
- UTC
- Value
- UTC
Upload file size limit, default 15M.
- Target
- UPLOAD_FILE_SIZE_LIMIT
- Default
- 15
- Value
- 15
The maximum number of files that can be uploaded at a time, default 5.
- Target
- UPLOAD_FILE_BATCH_LIMIT
- Default
- 5
- Value
- 5
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
- Target
- UPLOAD_FILE_EXTENSION_BLACKLIST
Maximum allowed image file size for attachments in megabytes, default 2.
- Target
- ATTACHMENT_IMAGE_FILE_SIZE_LIMIT
- Default
- 2
- Value
- 2
Timeout for downloading image attachments in seconds, default 60.
- Target
- ATTACHMENT_IMAGE_DOWNLOAD_TIMEOUT
- Default
- 60
- Value
- 60
ETL type, support: `dify`, `Unstructured` `dify` Dify's proprietary file extraction scheme `Unstructured` Unstructured.io file extraction scheme
- Target
- ETL_TYPE
- Default
- dify|Unstructured
- Value
- dify
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
- Target
- UNSTRUCTURED_API_URL
Upstream Dify self-hosted environment variable.
- Target
- UNSTRUCTURED_API_KEY
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.
- Target
- PROMPT_GENERATION_MAX_TOKENS
- Default
- 512
- Value
- 512
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.
- Target
- CODE_GENERATION_MAX_TOKENS
- Default
- 1024
- Value
- 1024
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...
- Target
- MULTIMODAL_SEND_FORMAT
- Default
- base64
- Value
- base64
Upload image file size limit, default 10M.
- Target
- UPLOAD_IMAGE_FILE_SIZE_LIMIT
- Default
- 10
- Value
- 10
Upload video file size limit, default 100M.
- Target
- UPLOAD_VIDEO_FILE_SIZE_LIMIT
- Default
- 100
- Value
- 100
Upload audio file size limit, default 50M.
- Target
- UPLOAD_AUDIO_FILE_SIZE_LIMIT
- Default
- 50
- Value
- 50
Sentry Configuration Used for application monitoring and error log tracking.
- Target
- SENTRY_DSN
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.
- Target
- PLUGIN_SENTRY_ENABLED
- Default
- false|true
- Value
- false
Upstream Dify self-hosted environment variable.
- Target
- PLUGIN_SENTRY_DSN
Configure as "public" or "internal". Since Notion's OAuth redirect URL only supports HTTPS, if deploying locally, please use Notion's internal integration.
- Target
- NOTION_INTEGRATION_TYPE
- Default
- public
- Value
- public
Notion OAuth client secret (used for public integration type)
- Target
- NOTION_CLIENT_SECRET
Notion OAuth client id (used for public integration type)
- Target
- NOTION_CLIENT_ID
Notion internal integration secret. If the value of NOTION_INTEGRATION_TYPE is "internal", you need to configure this variable.
- Target
- NOTION_INTERNAL_SECRET
API-Key for the Resend email provider, used when MAIL_TYPE is `resend`. Official default: 'https://api.resend.com'.
- Target
- RESEND_API_URL
Upstream Dify self-hosted environment variable.
- Target
- SMTP_USE_TLS
- Default
- true|false
- Value
- true
Upstream Dify self-hosted environment variable.
- Target
- SMTP_OPPORTUNISTIC_TLS
- Default
- false|true
- Value
- false
Optional: override the local hostname used for SMTP HELO/EHLO
- Target
- SMTP_LOCAL_HOSTNAME
Maximum length of segmentation tokens for indexing
- Target
- INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH
- Default
- 4000
- Value
- 4000
Member invitation link valid time (hours), Default: 72.
- Target
- INVITE_EXPIRY_HOURS
- Default
- 72
- Value
- 72
Reset password token valid time (minutes),
- Target
- RESET_PASSWORD_TOKEN_EXPIRY_MINUTES
- Default
- 5
- Value
- 5
Upstream Dify self-hosted environment variable.
- Target
- EMAIL_REGISTER_TOKEN_EXPIRY_MINUTES
- Default
- 5
- Value
- 5
Upstream Dify self-hosted environment variable.
- Target
- CHANGE_EMAIL_TOKEN_EXPIRY_MINUTES
- Default
- 5
- Value
- 5
Upstream Dify self-hosted environment variable.
- Target
- OWNER_TRANSFER_TOKEN_EXPIRY_MINUTES
- Default
- 5
- Value
- 5
Upstream Dify self-hosted environment variable.
- Target
- CODE_EXECUTION_SSL_VERIFY
- Default
- True|False
- Value
- True
Upstream Dify self-hosted environment variable.
- Target
- CODE_EXECUTION_POOL_MAX_CONNECTIONS
- Default
- 100
- Value
- 100
Upstream Dify self-hosted environment variable.
- Target
- CODE_EXECUTION_POOL_MAX_KEEPALIVE_CONNECTIONS
- Default
- 20
- Value
- 20
Upstream Dify self-hosted environment variable.
- Target
- CODE_EXECUTION_POOL_KEEPALIVE_EXPIRY
- Default
- 5.0
- Value
- 5.0
Upstream Dify self-hosted environment variable.
- Target
- CODE_EXECUTION_CONNECT_TIMEOUT
- Default
- 10
- Value
- 10
Upstream Dify self-hosted environment variable.
- Target
- CODE_EXECUTION_READ_TIMEOUT
- Default
- 60
- Value
- 60
Upstream Dify self-hosted environment variable.
- Target
- CODE_EXECUTION_WRITE_TIMEOUT
- Default
- 10
- Value
- 10
Workflow runtime configuration
- Target
- WORKFLOW_MAX_EXECUTION_STEPS
- Default
- 500
- Value
- 500
Upstream Dify self-hosted environment variable.
- Target
- WORKFLOW_MAX_EXECUTION_TIME
- Default
- 1200
- Value
- 1200
Upstream Dify self-hosted environment variable.
- Target
- WORKFLOW_CALL_MAX_DEPTH
- Default
- 5
- Value
- 5
Upstream Dify self-hosted environment variable.
- Target
- WORKFLOW_FILE_UPLOAD_LIMIT
- Default
- 10
- Value
- 10
Workflow log cleanup configuration Enable automatic cleanup of workflow run logs to manage database size
- Target
- WORKFLOW_LOG_CLEANUP_ENABLED
- Default
- false|true
- Value
- false
Number of days to retain workflow run logs (default: 30 days)
- Target
- WORKFLOW_LOG_RETENTION_DAYS
- Default
- 30
- Value
- 30
Batch size for workflow log cleanup operations (default: 100)
- Target
- WORKFLOW_LOG_CLEANUP_BATCH_SIZE
- Default
- 100
- Value
- 100
Comma-separated list of workflow IDs to clean logs for
- Target
- WORKFLOW_LOG_CLEANUP_SPECIFIC_WORKFLOW_IDS
Enable dual-write to both SLS LogStore and SQL database (default: false)
- Target
- LOGSTORE_DUAL_WRITE_ENABLED
- Default
- false|true
- Value
- false
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
- Target
- LOGSTORE_DUAL_READ_ENABLED
- Default
- true|false
- Value
- true
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.
- Target
- LOGSTORE_ENABLE_PUT_GRAPH_FIELD
- Default
- true|false
- Value
- true
HTTP request node in workflow configuration
- Target
- HTTP_REQUEST_NODE_MAX_BINARY_SIZE
- Default
- 10485760
- Value
- 10485760
Upstream Dify self-hosted environment variable.
- Target
- HTTP_REQUEST_NODE_MAX_TEXT_SIZE
- Default
- 1048576
- Value
- 1048576
Upstream Dify self-hosted environment variable.
- Target
- HTTP_REQUEST_NODE_SSL_VERIFY
- Default
- True|False
- Value
- True
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)...
- Target
- HTTP_REQUEST_MAX_CONNECT_TIMEOUT
- Default
- 10
- Value
- 10
Upstream Dify self-hosted environment variable.
- Target
- HTTP_REQUEST_MAX_READ_TIMEOUT
- Default
- 600
- Value
- 600
Upstream Dify self-hosted environment variable.
- Target
- HTTP_REQUEST_MAX_WRITE_TIMEOUT
- Default
- 600
- Value
- 600
The timeout for the text generation in millisecond
- Target
- TEXT_GENERATION_TIMEOUT_MS
- Default
- 60000
- Value
- 60000
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.
- Target
- ALLOW_INLINE_STYLES
- Default
- false|true
- Value
- false
Allow rendering unsafe URLs which have "data:" scheme.
- Target
- ALLOW_UNSAFE_DATA_SCHEME
- Default
- false|true
- Value
- false
The mode in which the Gin framework runs
- Target
- SANDBOX_GIN_MODE
- Default
- release
- Value
- release
Environment Variables for Oracle Service (only used when VECTOR_STORE is oracle)
- Target
- ORACLE_PWD
- Default
- Dify123456
- Value
- Dify123456
Upstream Dify self-hosted environment variable.
- Target
- ORACLE_CHARACTERSET
- Default
- AL32UTF8
- Value
- AL32UTF8
Enable or disable security authorization
- Target
- MILVUS_AUTHORIZATION_ENABLED
- Default
- true|false
- Value
- true
Environment Variables for SSRF Proxy
- Target
- SSRF_HTTP_PORT
- Default
- 3128
- Value
- 3128
Upstream Dify self-hosted environment variable.
- Target
- SSRF_DEFAULT_TIME_OUT
- Default
- 5
- Value
- 5
Upstream Dify self-hosted environment variable.
- Target
- SSRF_DEFAULT_CONNECT_TIME_OUT
- Default
- 5
- Value
- 5
Upstream Dify self-hosted environment variable.
- Target
- SSRF_DEFAULT_READ_TIME_OUT
- Default
- 5
- Value
- 5
Upstream Dify self-hosted environment variable.
- Target
- SSRF_DEFAULT_WRITE_TIME_OUT
- Default
- 5
- Value
- 5
Upstream Dify self-hosted environment variable.
- Target
- SSRF_POOL_MAX_CONNECTIONS
- Default
- 100
- Value
- 100
Upstream Dify self-hosted environment variable.
- Target
- SSRF_POOL_MAX_KEEPALIVE_CONNECTIONS
- Default
- 20
- Value
- 20
Upstream Dify self-hosted environment variable.
- Target
- SSRF_POOL_KEEPALIVE_EXPIRY
- Default
- 5.0
- Value
- 5.0
Pin, include, and exclude tools Use comma-separated values with no spaces between items. Example: POSITION_TOOL_PINS=bing,google
- Target
- POSITION_TOOL_PINS
Upstream Dify self-hosted environment variable.
- Target
- POSITION_TOOL_INCLUDES
Upstream Dify self-hosted environment variable.
- Target
- POSITION_TOOL_EXCLUDES
Pin, include, and exclude model providers Use comma-separated values with no spaces between items. Example: POSITION_PROVIDER_PINS=openai,openllm
- Target
- POSITION_PROVIDER_PINS
Upstream Dify self-hosted environment variable.
- Target
- POSITION_PROVIDER_INCLUDES
Upstream Dify self-hosted environment variable.
- Target
- POSITION_PROVIDER_EXCLUDES
CSP https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
- Target
- CSP_WHITELIST
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
- Target
- PLUGIN_STORAGE_TYPE
- Default
- local|aws_s3|tencent_cos|azure_blob|aliyun_oss|volcengine_tos
- Value
- local
Plugin oss bucket
- Target
- PLUGIN_STORAGE_OSS_BUCKET
Plugin oss s3 credentials
- Target
- PLUGIN_S3_USE_AWS
- Default
- false|true
- Value
- false
Upstream Dify self-hosted environment variable.
- Target
- PLUGIN_S3_USE_AWS_MANAGED_IAM
- Default
- false|true
- Value
- false
Upstream Dify self-hosted environment variable.
- Target
- PLUGIN_S3_ENDPOINT
Upstream Dify self-hosted environment variable.
- Target
- PLUGIN_S3_USE_PATH_STYLE
- Default
- false|true
- Value
- false
Upstream Dify self-hosted environment variable.
- Target
- PLUGIN_AWS_ACCESS_KEY
Upstream Dify self-hosted environment variable.
- Target
- PLUGIN_AWS_SECRET_KEY
Upstream Dify self-hosted environment variable.
- Target
- PLUGIN_AWS_REGION
Plugin oss azure blob
- Target
- PLUGIN_AZURE_BLOB_STORAGE_CONTAINER_NAME
Upstream Dify self-hosted environment variable.
- Target
- PLUGIN_AZURE_BLOB_STORAGE_CONNECTION_STRING
Plugin oss tencent cos
- Target
- PLUGIN_TENCENT_COS_SECRET_KEY
Upstream Dify self-hosted environment variable.
- Target
- PLUGIN_TENCENT_COS_SECRET_ID
Upstream Dify self-hosted environment variable.
- Target
- PLUGIN_TENCENT_COS_REGION
Plugin oss aliyun oss
- Target
- PLUGIN_ALIYUN_OSS_REGION
Upstream Dify self-hosted environment variable.
- Target
- PLUGIN_ALIYUN_OSS_ENDPOINT
Upstream Dify self-hosted environment variable.
- Target
- PLUGIN_ALIYUN_OSS_ACCESS_KEY_ID
Upstream Dify self-hosted environment variable.
- Target
- PLUGIN_ALIYUN_OSS_ACCESS_KEY_SECRET
Upstream Dify self-hosted environment variable.
- Target
- PLUGIN_ALIYUN_OSS_AUTH_VERSION
- Default
- v4
- Value
- v4
Upstream Dify self-hosted environment variable.
- Target
- PLUGIN_ALIYUN_OSS_PATH
Plugin oss volcengine tos
- Target
- PLUGIN_VOLCENGINE_TOS_ENDPOINT
Upstream Dify self-hosted environment variable.
- Target
- PLUGIN_VOLCENGINE_TOS_ACCESS_KEY
Upstream Dify self-hosted environment variable.
- Target
- PLUGIN_VOLCENGINE_TOS_SECRET_KEY
Upstream Dify self-hosted environment variable.
- Target
- PLUGIN_VOLCENGINE_TOS_REGION
Upstream Dify self-hosted environment variable.
- Target
- OTEL_EXPORTER_OTLP_PROTOCOL
Upstream Dify self-hosted environment variable.
- Target
- OTEL_EXPORTER_TYPE
- Default
- otlp
- Value
- otlp
Upstream Dify self-hosted environment variable.
- Target
- OTEL_SAMPLING_RATE
- Default
- 0.1
- Value
- 0.1
Upstream Dify self-hosted environment variable.
- Target
- OTEL_BATCH_EXPORT_SCHEDULE_DELAY
- Default
- 5000
- Value
- 5000
Upstream Dify self-hosted environment variable.
- Target
- OTEL_MAX_QUEUE_SIZE
- Default
- 2048
- Value
- 2048
Upstream Dify self-hosted environment variable.
- Target
- OTEL_MAX_EXPORT_BATCH_SIZE
- Default
- 512
- Value
- 512
Upstream Dify self-hosted environment variable.
- Target
- OTEL_METRIC_EXPORT_INTERVAL
- Default
- 60000
- Value
- 60000
Upstream Dify self-hosted environment variable.
- Target
- OTEL_BATCH_EXPORT_TIMEOUT
- Default
- 10000
- Value
- 10000
Upstream Dify self-hosted environment variable.
- Target
- OTEL_METRIC_EXPORT_TIMEOUT
- Default
- 30000
- Value
- 30000
Prevent Clickjacking
- Target
- ALLOW_EMBED
- Default
- false|true
- Value
- false
Maximum number of segments for dataset segments API (0 for unlimited)
- Target
- DATASET_MAX_SEGMENTS_PER_REQUEST
- Default
- 0
- Value
- 0
Celery schedule tasks configuration
- Target
- ENABLE_CLEAN_EMBEDDING_CACHE_TASK
- Default
- false|true
- Value
- false
Upstream Dify self-hosted environment variable.
- Target
- ENABLE_CLEAN_UNUSED_DATASETS_TASK
- Default
- false|true
- Value
- false
Upstream Dify self-hosted environment variable.
- Target
- ENABLE_CLEAN_MESSAGES
- Default
- false|true
- Value
- false
Upstream Dify self-hosted environment variable.
- Target
- ENABLE_WORKFLOW_RUN_CLEANUP_TASK
- Default
- false|true
- Value
- false
Upstream Dify self-hosted environment variable.
- Target
- ENABLE_MAIL_CLEAN_DOCUMENT_NOTIFY_TASK
- Default
- false|true
- Value
- false
Upstream Dify self-hosted environment variable.
- Target
- ENABLE_WORKFLOW_SCHEDULE_POLLER_TASK
- Default
- true|false
- Value
- true
Upstream Dify self-hosted environment variable.
- Target
- WORKFLOW_SCHEDULE_POLLER_INTERVAL
- Default
- 1
- Value
- 1
Upstream Dify self-hosted environment variable.
- Target
- WORKFLOW_SCHEDULE_POLLER_BATCH_SIZE
- Default
- 100
- Value
- 100
Upstream Dify self-hosted environment variable.
- Target
- WORKFLOW_SCHEDULE_MAX_DISPATCH_PER_TICK
- Default
- 0
- Value
- 0
Sandbox expired records clean configuration
- Target
- SANDBOX_EXPIRED_RECORDS_CLEAN_GRACEFUL_PERIOD
- Default
- 21
- Value
- 21
Upstream Dify self-hosted environment variable.
- Target
- SANDBOX_EXPIRED_RECORDS_CLEAN_BATCH_SIZE
- Default
- 1000
- Value
- 1000
Upstream Dify self-hosted environment variable.
- Target
- SANDBOX_EXPIRED_RECORDS_CLEAN_BATCH_MAX_INTERVAL
- Default
- 200
- Value
- 200
Upstream Dify self-hosted environment variable.
- Target
- SANDBOX_EXPIRED_RECORDS_RETENTION_DAYS
- Default
- 30
- Value
- 30
Whether to Enable human input timeout check task
- Target
- ENABLE_HUMAN_INPUT_TIMEOUT_TASK
- Default
- true|false
- Value
- true
Human input timeout check interval in minutes
- Target
- HUMAN_INPUT_TIMEOUT_TASK_INTERVAL
- Default
- 1
- Value
- 1
Upstream Dify self-hosted environment variable.
- Target
- SANDBOX_EXPIRED_RECORDS_CLEAN_TASK_LOCK_TTL
- Default
- 90000
- Value
- 90000
Categories
Download Statistics
Details
jsonbored/dify-aio:latestRun dify-aio on Unraid.
dify-aio is listed in Community Apps for Unraid OS. Explore Unraid to build a flexible home server, NAS, or homelab.