You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.env.example 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. FLASK_APP=app.py
  2. FLASK_DEBUG=0
  3. SECRET_KEY='uhySf6a3aZuvRNfAlcr47paOw9TRYBY6j8ZHXpVw1yx5RP27Yj3w2uvI'
  4. CONSOLE_API_URL=http://127.0.0.1:5001
  5. CONSOLE_WEB_URL=http://127.0.0.1:3000
  6. # Service API base URL
  7. SERVICE_API_URL=http://127.0.0.1:5001
  8. # Web APP base URL
  9. APP_WEB_URL=http://127.0.0.1:3000
  10. # Files URL
  11. FILES_URL=http://127.0.0.1:5001
  12. # The time in seconds after the signature is rejected
  13. FILES_ACCESS_TIMEOUT=300
  14. # Access token expiration time in minutes
  15. ACCESS_TOKEN_EXPIRE_MINUTES=60
  16. # Refresh token expiration time in days
  17. REFRESH_TOKEN_EXPIRE_DAYS=30
  18. # celery configuration
  19. CELERY_BROKER_URL=redis://:difyai123456@localhost:6379/1
  20. # redis configuration
  21. REDIS_HOST=localhost
  22. REDIS_PORT=6379
  23. REDIS_USERNAME=
  24. REDIS_PASSWORD=difyai123456
  25. REDIS_USE_SSL=false
  26. REDIS_DB=0
  27. # PostgreSQL database configuration
  28. DB_USERNAME=postgres
  29. DB_PASSWORD=difyai123456
  30. DB_HOST=localhost
  31. DB_PORT=5432
  32. DB_DATABASE=dify
  33. # Storage configuration
  34. # use for store upload files, private keys...
  35. # storage type: opendal, s3, aliyun-oss, azure-blob, baidu-obs, google-storage, huawei-obs, oci-storage, tencent-cos, volcengine-tos, supabase
  36. STORAGE_TYPE=opendal
  37. # Apache OpenDAL storage configuration, refer to https://github.com/apache/opendal
  38. OPENDAL_SCHEME=fs
  39. OPENDAL_FS_ROOT=storage
  40. # CORS configuration
  41. WEB_API_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  42. CONSOLE_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  43. # Vector database configuration
  44. # support: weaviate, qdrant, milvus, myscale, relyt, pgvecto_rs, pgvector, pgvector, chroma, opensearch, tidb_vector, couchbase, vikingdb, upstash, lindorm, oceanbase
  45. VECTOR_STORE=weaviate
  46. # Weaviate configuration
  47. WEAVIATE_ENDPOINT=http://localhost:8080
  48. WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  49. WEAVIATE_GRPC_ENABLED=false
  50. WEAVIATE_BATCH_SIZE=100
  51. # Upload configuration
  52. UPLOAD_FILE_SIZE_LIMIT=15
  53. UPLOAD_FILE_BATCH_LIMIT=5
  54. UPLOAD_IMAGE_FILE_SIZE_LIMIT=10
  55. UPLOAD_VIDEO_FILE_SIZE_LIMIT=100
  56. UPLOAD_AUDIO_FILE_SIZE_LIMIT=50
  57. # Model configuration
  58. MULTIMODAL_SEND_FORMAT=base64
  59. PROMPT_GENERATION_MAX_TOKENS=4096
  60. CODE_GENERATION_MAX_TOKENS=1024
  61. # Mail configuration, support: resend, smtp
  62. MAIL_TYPE=
  63. MAIL_DEFAULT_SEND_FROM=no-reply <no-reply@example.com>
  64. RESEND_API_KEY=
  65. RESEND_API_URL=https://api.resend.com
  66. # smtp configuration
  67. SMTP_SERVER=smtp.example.com
  68. SMTP_PORT=465
  69. SMTP_USERNAME=123
  70. SMTP_PASSWORD=abc
  71. SMTP_USE_TLS=true
  72. SMTP_OPPORTUNISTIC_TLS=false
  73. # Sentry configuration
  74. SENTRY_DSN=
  75. # DEBUG
  76. DEBUG=false
  77. SQLALCHEMY_ECHO=false
  78. # Notion import configuration, support public and internal
  79. NOTION_INTEGRATION_TYPE=public
  80. NOTION_CLIENT_SECRET=you-client-secret
  81. NOTION_CLIENT_ID=you-client-id
  82. NOTION_INTERNAL_SECRET=you-internal-secret
  83. ETL_TYPE=dify
  84. UNSTRUCTURED_API_URL=
  85. UNSTRUCTURED_API_KEY=
  86. SCARF_NO_ANALYTICS=false
  87. #ssrf
  88. SSRF_PROXY_HTTP_URL=
  89. SSRF_PROXY_HTTPS_URL=
  90. SSRF_DEFAULT_MAX_RETRIES=3
  91. SSRF_DEFAULT_TIME_OUT=5
  92. SSRF_DEFAULT_CONNECT_TIME_OUT=5
  93. SSRF_DEFAULT_READ_TIME_OUT=5
  94. SSRF_DEFAULT_WRITE_TIME_OUT=5
  95. BATCH_UPLOAD_LIMIT=10
  96. KEYWORD_DATA_SOURCE_TYPE=database
  97. # Workflow file upload limit
  98. WORKFLOW_FILE_UPLOAD_LIMIT=10
  99. # CODE EXECUTION CONFIGURATION
  100. CODE_EXECUTION_ENDPOINT=http://127.0.0.1:8194
  101. CODE_EXECUTION_API_KEY=dify-sandbox
  102. CODE_MAX_NUMBER=9223372036854775807
  103. CODE_MIN_NUMBER=-9223372036854775808
  104. CODE_MAX_STRING_LENGTH=80000
  105. TEMPLATE_TRANSFORM_MAX_LENGTH=80000
  106. CODE_MAX_STRING_ARRAY_LENGTH=30
  107. CODE_MAX_OBJECT_ARRAY_LENGTH=30
  108. CODE_MAX_NUMBER_ARRAY_LENGTH=1000
  109. # API Tool configuration
  110. API_TOOL_DEFAULT_CONNECT_TIMEOUT=10
  111. API_TOOL_DEFAULT_READ_TIMEOUT=60
  112. # HTTP Node configuration
  113. HTTP_REQUEST_MAX_CONNECT_TIMEOUT=300
  114. HTTP_REQUEST_MAX_READ_TIMEOUT=600
  115. HTTP_REQUEST_MAX_WRITE_TIMEOUT=600
  116. HTTP_REQUEST_NODE_MAX_BINARY_SIZE=10485760
  117. HTTP_REQUEST_NODE_MAX_TEXT_SIZE=1048576
  118. # Respect X-* headers to redirect clients
  119. RESPECT_XFORWARD_HEADERS_ENABLED=false
  120. # Log file path
  121. LOG_FILE=
  122. # Log file max size, the unit is MB
  123. LOG_FILE_MAX_SIZE=20
  124. # Log file max backup count
  125. LOG_FILE_BACKUP_COUNT=5
  126. # Log dateformat
  127. LOG_DATEFORMAT=%Y-%m-%d %H:%M:%S
  128. # Log Timezone
  129. LOG_TZ=UTC
  130. # Log format
  131. LOG_FORMAT=%(asctime)s,%(msecs)d %(levelname)-2s [%(filename)s:%(lineno)d] %(req_id)s %(message)s
  132. # Indexing configuration
  133. INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH=4000
  134. # Workflow runtime configuration
  135. WORKFLOW_MAX_EXECUTION_STEPS=500
  136. WORKFLOW_MAX_EXECUTION_TIME=1200
  137. WORKFLOW_CALL_MAX_DEPTH=5
  138. WORKFLOW_PARALLEL_DEPTH_LIMIT=3
  139. MAX_VARIABLE_SIZE=204800
  140. # App configuration
  141. APP_MAX_EXECUTION_TIME=1200
  142. APP_MAX_ACTIVE_REQUESTS=0
  143. # Celery beat configuration
  144. CELERY_BEAT_SCHEDULER_TIME=1
  145. # Position configuration
  146. POSITION_TOOL_PINS=
  147. POSITION_TOOL_INCLUDES=
  148. POSITION_TOOL_EXCLUDES=
  149. POSITION_PROVIDER_PINS=
  150. POSITION_PROVIDER_INCLUDES=
  151. POSITION_PROVIDER_EXCLUDES=
  152. # Plugin configuration
  153. PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi
  154. PLUGIN_DAEMON_URL=http://127.0.0.1:5002
  155. PLUGIN_REMOTE_INSTALL_PORT=5003
  156. PLUGIN_REMOTE_INSTALL_HOST=localhost
  157. PLUGIN_MAX_PACKAGE_SIZE=15728640
  158. INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1
  159. # Marketplace configuration
  160. MARKETPLACE_ENABLED=true
  161. MARKETPLACE_API_URL=https://marketplace.dify.ai
  162. # Endpoint configuration
  163. ENDPOINT_URL_TEMPLATE=http://localhost:5002/e/{hook_id}
  164. # Reset password token expiry minutes
  165. RESET_PASSWORD_TOKEN_EXPIRY_MINUTES=5
  166. CREATE_TIDB_SERVICE_JOB_ENABLED=false
  167. # Maximum number of submitted thread count in a ThreadPool for parallel node execution
  168. MAX_SUBMIT_COUNT=100
  169. # Lockout duration in seconds
  170. LOGIN_LOCKOUT_DURATION=86400
  171. HTTP_PROXY='http://127.0.0.1:1092'
  172. HTTPS_PROXY='http://127.0.0.1:1092'
  173. NO_PROXY='localhost,127.0.0.1'
  174. LOG_LEVEL=INFO