.env.example 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. # Your App secret key will be used for securely signing the session cookie
  2. # Make sure you are changing this key for your deployment with a strong key.
  3. # You can generate a strong key using `openssl rand -base64 42`.
  4. # Alternatively you can set it with `SECRET_KEY` environment variable.
  5. SECRET_KEY=
  6. # Console API base URL
  7. CONSOLE_API_URL=http://127.0.0.1:5001
  8. CONSOLE_WEB_URL=http://127.0.0.1:3000
  9. # Service API base URL
  10. SERVICE_API_URL=http://127.0.0.1:5001
  11. # Web APP base URL
  12. APP_WEB_URL=http://127.0.0.1:3000
  13. # Files URL
  14. FILES_URL=http://127.0.0.1:5001
  15. # The time in seconds after the signature is rejected
  16. FILES_ACCESS_TIMEOUT=300
  17. # celery configuration
  18. CELERY_BROKER_URL=redis://:difyai123456@localhost:6379/1
  19. # redis configuration
  20. REDIS_HOST=localhost
  21. REDIS_PORT=6379
  22. REDIS_USERNAME=
  23. REDIS_PASSWORD=difyai123456
  24. REDIS_DB=0
  25. # PostgreSQL database configuration
  26. DB_USERNAME=postgres
  27. DB_PASSWORD=difyai123456
  28. DB_HOST=localhost
  29. DB_PORT=5432
  30. DB_DATABASE=dify
  31. # Storage configuration
  32. # use for store upload files, private keys...
  33. # storage type: local, s3, azure-blob
  34. STORAGE_TYPE=local
  35. STORAGE_LOCAL_PATH=storage
  36. S3_ENDPOINT=https://your-bucket-name.storage.s3.clooudflare.com
  37. S3_BUCKET_NAME=your-bucket-name
  38. S3_ACCESS_KEY=your-access-key
  39. S3_SECRET_KEY=your-secret-key
  40. S3_REGION=your-region
  41. # Azure Blob Storage configuration
  42. AZURE_BLOB_ACCOUNT_NAME=your-account-name
  43. AZURE_BLOB_ACCOUNT_KEY=your-account-key
  44. AZURE_BLOB_CONTAINER_NAME=yout-container-name
  45. AZURE_BLOB_ACCOUNT_URL=https://<your_account_name>.blob.core.windows.net
  46. # Aliyun oss Storage configuration
  47. ALIYUN_OSS_BUCKET_NAME=your-bucket-name
  48. ALIYUN_OSS_ACCESS_KEY=your-access-key
  49. ALIYUN_OSS_SECRET_KEY=your-secret-key
  50. ALIYUN_OSS_ENDPOINT=your-endpoint
  51. ALIYUN_OSS_AUTH_VERSION=v1
  52. ALIYUN_OSS_REGION=your-region
  53. # Google Storage configuration
  54. GOOGLE_STORAGE_BUCKET_NAME=yout-bucket-name
  55. GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON=your-google-service-account-json-base64-string
  56. # CORS configuration
  57. WEB_API_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  58. CONSOLE_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  59. # Vector database configuration, support: weaviate, qdrant, milvus, relyt, pgvecto_rs, pgvector
  60. VECTOR_STORE=weaviate
  61. # Weaviate configuration
  62. WEAVIATE_ENDPOINT=http://localhost:8080
  63. WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  64. WEAVIATE_GRPC_ENABLED=false
  65. WEAVIATE_BATCH_SIZE=100
  66. # Qdrant configuration, use `http://localhost:6333` for local mode or `https://your-qdrant-cluster-url.qdrant.io` for remote mode
  67. QDRANT_URL=http://localhost:6333
  68. QDRANT_API_KEY=difyai123456
  69. QDRANT_CLIENT_TIMEOUT=20
  70. QDRANT_GRPC_ENABLED=false
  71. QDRANT_GRPC_PORT=6334
  72. # Milvus configuration
  73. MILVUS_HOST=127.0.0.1
  74. MILVUS_PORT=19530
  75. MILVUS_USER=root
  76. MILVUS_PASSWORD=Milvus
  77. MILVUS_SECURE=false
  78. # Relyt configuration
  79. RELYT_HOST=127.0.0.1
  80. RELYT_PORT=5432
  81. RELYT_USER=postgres
  82. RELYT_PASSWORD=postgres
  83. RELYT_DATABASE=postgres
  84. # PGVECTO_RS configuration
  85. PGVECTO_RS_HOST=localhost
  86. PGVECTO_RS_PORT=5431
  87. PGVECTO_RS_USER=postgres
  88. PGVECTO_RS_PASSWORD=difyai123456
  89. PGVECTO_RS_DATABASE=postgres
  90. # PGVector configuration
  91. PGVECTOR_HOST=127.0.0.1
  92. PGVECTOR_PORT=5433
  93. PGVECTOR_USER=postgres
  94. PGVECTOR_PASSWORD=postgres
  95. PGVECTOR_DATABASE=postgres
  96. # Tidb Vector configuration
  97. TIDB_VECTOR_HOST=xxx.eu-central-1.xxx.aws.tidbcloud.com
  98. TIDB_VECTOR_PORT=4000
  99. TIDB_VECTOR_USER=xxx.root
  100. TIDB_VECTOR_PASSWORD=xxxxxx
  101. TIDB_VECTOR_DATABASE=dify
  102. # Upload configuration
  103. UPLOAD_FILE_SIZE_LIMIT=15
  104. UPLOAD_FILE_BATCH_LIMIT=5
  105. UPLOAD_IMAGE_FILE_SIZE_LIMIT=10
  106. # Model Configuration
  107. MULTIMODAL_SEND_IMAGE_FORMAT=base64
  108. # Mail configuration, support: resend, smtp
  109. MAIL_TYPE=
  110. MAIL_DEFAULT_SEND_FROM=no-reply <no-reply@dify.ai>
  111. RESEND_API_KEY=
  112. RESEND_API_URL=https://api.resend.com
  113. # smtp configuration
  114. SMTP_SERVER=smtp.gmail.com
  115. SMTP_PORT=465
  116. SMTP_USERNAME=123
  117. SMTP_PASSWORD=abc
  118. SMTP_USE_TLS=true
  119. SMTP_OPPORTUNISTIC_TLS=false
  120. # Sentry configuration
  121. SENTRY_DSN=
  122. # DEBUG
  123. DEBUG=false
  124. SQLALCHEMY_ECHO=false
  125. # Notion import configuration, support public and internal
  126. NOTION_INTEGRATION_TYPE=public
  127. NOTION_CLIENT_SECRET=you-client-secret
  128. NOTION_CLIENT_ID=you-client-id
  129. NOTION_INTERNAL_SECRET=you-internal-secret
  130. ETL_TYPE=dify
  131. UNSTRUCTURED_API_URL=
  132. UNSTRUCTURED_API_KEY=
  133. SSRF_PROXY_HTTP_URL=
  134. SSRF_PROXY_HTTPS_URL=
  135. BATCH_UPLOAD_LIMIT=10
  136. KEYWORD_DATA_SOURCE_TYPE=database
  137. # CODE EXECUTION CONFIGURATION
  138. CODE_EXECUTION_ENDPOINT=http://127.0.0.1:8194
  139. CODE_EXECUTION_API_KEY=dify-sandbox
  140. CODE_MAX_NUMBER=9223372036854775807
  141. CODE_MIN_NUMBER=-9223372036854775808
  142. CODE_MAX_STRING_LENGTH=80000
  143. TEMPLATE_TRANSFORM_MAX_LENGTH=80000
  144. CODE_MAX_STRING_ARRAY_LENGTH=30
  145. CODE_MAX_OBJECT_ARRAY_LENGTH=30
  146. CODE_MAX_NUMBER_ARRAY_LENGTH=1000
  147. # API Tool configuration
  148. API_TOOL_DEFAULT_CONNECT_TIMEOUT=10
  149. API_TOOL_DEFAULT_READ_TIMEOUT=60
  150. # HTTP Node configuration
  151. HTTP_REQUEST_MAX_CONNECT_TIMEOUT=300
  152. HTTP_REQUEST_MAX_READ_TIMEOUT=600
  153. HTTP_REQUEST_MAX_WRITE_TIMEOUT=600
  154. HTTP_REQUEST_NODE_MAX_BINARY_SIZE=10485760 # 10MB
  155. HTTP_REQUEST_NODE_MAX_TEXT_SIZE=1048576 # 1MB
  156. # Log file path
  157. LOG_FILE=
  158. # Indexing configuration
  159. INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH=1000
  160. # Workflow runtime configuration
  161. WORKFLOW_MAX_EXECUTION_STEPS=500
  162. WORKFLOW_MAX_EXECUTION_TIME=1200
  163. WORKFLOW_CALL_MAX_DEPTH=5