| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 | # Your App secret key will be used for securely signing the session cookie# Make sure you are changing this key for your deployment with a strong key.# You can generate a strong key using `openssl rand -base64 42`.# Alternatively you can set it with `SECRET_KEY` environment variable.SECRET_KEY=# Console API base URLCONSOLE_API_URL=http://127.0.0.1:5001CONSOLE_WEB_URL=http://127.0.0.1:3000# Service API base URLSERVICE_API_URL=http://127.0.0.1:5001# Web APP base URLAPP_WEB_URL=http://127.0.0.1:3000# Files URLFILES_URL=http://127.0.0.1:5001# celery configurationCELERY_BROKER_URL=redis://:difyai123456@localhost:6379/1# redis configurationREDIS_HOST=localhostREDIS_PORT=6379REDIS_USERNAME=REDIS_PASSWORD=difyai123456REDIS_DB=0# PostgreSQL database configurationDB_USERNAME=postgresDB_PASSWORD=difyai123456DB_HOST=localhostDB_PORT=5432DB_DATABASE=dify# Storage configuration# use for store upload files, private keys...# storage type: local, s3, azure-blobSTORAGE_TYPE=localSTORAGE_LOCAL_PATH=storageS3_ENDPOINT=https://your-bucket-name.storage.s3.clooudflare.comS3_BUCKET_NAME=your-bucket-nameS3_ACCESS_KEY=your-access-keyS3_SECRET_KEY=your-secret-keyS3_REGION=your-region# Azure Blob Storage configurationAZURE_BLOB_ACCOUNT_NAME=your-account-nameAZURE_BLOB_ACCOUNT_KEY=your-account-keyAZURE_BLOB_CONTAINER_NAME=yout-container-nameAZURE_BLOB_ACCOUNT_URL=https://<your_account_name>.blob.core.windows.net# Aliyun oss Storage configurationALIYUN_OSS_BUCKET_NAME=your-bucket-nameALIYUN_OSS_ACCESS_KEY=your-access-keyALIYUN_OSS_SECRET_KEY=your-secret-keyALIYUN_OSS_ENDPOINT=your-endpointALIYUN_OSS_AUTH_VERSION=v1ALIYUN_OSS_REGION=your-region# Google Storage configurationGOOGLE_STORAGE_BUCKET_NAME=yout-bucket-nameGOOGLE_STORAGE_SERVICE_ACCOUNT_JSON=your-google-service-account-json-base64-string# CORS configurationWEB_API_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*CONSOLE_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*# Vector database configuration, support: weaviate, qdrant, milvus, relyt, pgvecto_rs, pgvectorVECTOR_STORE=weaviate# Weaviate configurationWEAVIATE_ENDPOINT=http://localhost:8080WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkihWEAVIATE_GRPC_ENABLED=falseWEAVIATE_BATCH_SIZE=100# Qdrant configuration, use `http://localhost:6333` for local mode or `https://your-qdrant-cluster-url.qdrant.io` for remote modeQDRANT_URL=http://localhost:6333QDRANT_API_KEY=difyai123456QDRANT_CLIENT_TIMEOUT=20QDRANT_GRPC_ENABLED=falseQDRANT_GRPC_PORT=6334# Milvus configurationMILVUS_HOST=127.0.0.1MILVUS_PORT=19530MILVUS_USER=rootMILVUS_PASSWORD=MilvusMILVUS_SECURE=false# Relyt configurationRELYT_HOST=127.0.0.1RELYT_PORT=5432RELYT_USER=postgresRELYT_PASSWORD=postgresRELYT_DATABASE=postgres# PGVECTO_RS configurationPGVECTO_RS_HOST=localhostPGVECTO_RS_PORT=5431PGVECTO_RS_USER=postgresPGVECTO_RS_PASSWORD=difyai123456PGVECTO_RS_DATABASE=postgres# PGVector configurationPGVECTOR_HOST=127.0.0.1PGVECTOR_PORT=5433PGVECTOR_USER=postgresPGVECTOR_PASSWORD=postgresPGVECTOR_DATABASE=postgres# Upload configurationUPLOAD_FILE_SIZE_LIMIT=15UPLOAD_FILE_BATCH_LIMIT=5UPLOAD_IMAGE_FILE_SIZE_LIMIT=10# Model ConfigurationMULTIMODAL_SEND_IMAGE_FORMAT=base64# Mail configuration, support: resend, smtpMAIL_TYPE=MAIL_DEFAULT_SEND_FROM=no-reply <no-reply@dify.ai>RESEND_API_KEY=RESEND_API_URL=https://api.resend.com# smtp configurationSMTP_SERVER=smtp.gmail.comSMTP_PORT=587SMTP_USERNAME=123SMTP_PASSWORD=abcSMTP_USE_TLS=false# Sentry configurationSENTRY_DSN=# DEBUGDEBUG=falseSQLALCHEMY_ECHO=false# Notion import configuration, support public and internalNOTION_INTEGRATION_TYPE=publicNOTION_CLIENT_SECRET=you-client-secretNOTION_CLIENT_ID=you-client-idNOTION_INTERNAL_SECRET=you-internal-secretETL_TYPE=difyUNSTRUCTURED_API_URL=UNSTRUCTURED_API_KEY=SSRF_PROXY_HTTP_URL=SSRF_PROXY_HTTPS_URL=BATCH_UPLOAD_LIMIT=10KEYWORD_DATA_SOURCE_TYPE=database# CODE EXECUTION CONFIGURATIONCODE_EXECUTION_ENDPOINT=http://127.0.0.1:8194CODE_EXECUTION_API_KEY=dify-sandboxCODE_MAX_NUMBER=9223372036854775807CODE_MIN_NUMBER=-9223372036854775808CODE_MAX_STRING_LENGTH=80000TEMPLATE_TRANSFORM_MAX_LENGTH=80000CODE_MAX_STRING_ARRAY_LENGTH=30CODE_MAX_OBJECT_ARRAY_LENGTH=30CODE_MAX_NUMBER_ARRAY_LENGTH=1000# API Tool configurationAPI_TOOL_DEFAULT_CONNECT_TIMEOUT=10API_TOOL_DEFAULT_READ_TIMEOUT=60# HTTP Node configurationHTTP_REQUEST_MAX_CONNECT_TIMEOUT=300HTTP_REQUEST_MAX_READ_TIMEOUT=600HTTP_REQUEST_MAX_WRITE_TIMEOUT=600HTTP_REQUEST_NODE_MAX_BINARY_SIZE=10485760 # 10MBHTTP_REQUEST_NODE_MAX_TEXT_SIZE=1048576 # 1MB# Log file pathLOG_FILE=
 |