https://api.console.dify.ai
https://console.dify.ai
https://api.dify.ai
https://app.dify.ai
https://udify.app/
openssl rand -base64 42
to generate a strong key for it.
flask db upgrade
in the api directory.
https://updates.dify.ai
to check for updates.
Currently, the version check interface based on CloudFlare Worker is not directly accessible in China. Setting this variable to an empty value will disable this API call.
number of cpu cores x 2 + 1
Reference: https://docs.gunicorn.org/en/stable/design.html#how-many-workers
SERVER_WORKER_CLASS
. Default is gevent. If using windows, it can be switched to sync or solo.
<sentinel1_ip>:<sentinel1_port>,<sentinel2_ip>:<sentinel2_port>,<sentinel3_ip>:<sentinel3_port>
redis://:difyai123456@redis:6379/1
Sentinel mode:
sentinel://localhost:26379/1;sentinel://localhost:26380/1;sentinel://localhost:26381/1
*
, that is, all domains can access.*
, that is, all domains can access.STORAGE_LOCAL_PATH
configuration needs to be set.
/app/api/storage
directory in both containers to the same local directory, otherwise, you may encounter file not found errors.
weaviate
qdrant
milvus
zilliz
(share the same configuration as milvus
)myscale
pinecone
(not yet open)analyticdb
couchbase
oceanbase
tablestore
lindorm
tencent
opengauss
http://weaviate:8080
.
https://your-qdrant-cluster-url.qdrant.tech/
us-east4-gcp
http://host.docker.internal:19530
. For Zilliz Cloud, adjust the uri and token to the Public Endpoint and API Key.
default
.
default
.
gp-xxxxxx
. Read the Analyticdb documentation to create your instance.
cn-hangzhou
.
dify
. If this namespace does not exist, it will be created automatically.
http://unstructured:8000/general/v0/general
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 configured as url
, you need to configure FILES_URL
as an externally accessible address so that the multi-modal model can access the image.
NOTION_INTEGRATION_TYPE
is âinternalâ, you need to configure this variable.POSITION_TOOL_PINS=bing,google
POSITION_TOOL_INCLUDES=bing,google
POSITION_TOOL_EXCLUDES=yahoo,wolframalpha
POSITION_PROVIDER_PINS=openai,openllm
POSITION_PROVIDER_INCLUDES=cohere,upstage
POSITION_PROVIDER_EXCLUDES=openrouter,ollama
â ïž Modified in 0.3.8, will be deprecated in 0.4.9, replaced by:Console URL, used to concatenate the authorization callback, console front-end address, and CORS configuration use. If empty, it is the same domain. Example:CONSOLE_API_URL
andCONSOLE_WEB_URL
.
https://console.dify.ai
.
â ïž Modified in 0.3.8, will be deprecated in 0.4.9, replaced by SERVICE_API_URL
.
API URL, used to display Service API Base URL to the front-end. If empty, it is the same domain. Example: https://api.dify.ai
â ïž Modified in 0.3.8, will be deprecated in 0.4.9, replaced byWebApp Url, used to display WebAPP API Base Url to the front-end. If empty, it is the same domain. Example:APP_API_URL
andAPP_WEB_URL
.
https://udify.app/
â ïž This configuration is no longer valid since v0.3.24.Only used by the API service for interface identity verification.
â ïž This configuration is no longer valid since v0.3.24.Used to set the browser policy for session cookies used for identity verification.