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