.env.example 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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. # celery configuration
  16. CELERY_BROKER_URL=redis://:difyai123456@localhost:6379/1
  17. # redis configuration
  18. REDIS_HOST=localhost
  19. REDIS_PORT=6379
  20. REDIS_USERNAME=
  21. REDIS_PASSWORD=difyai123456
  22. REDIS_DB=0
  23. # PostgreSQL database configuration
  24. DB_USERNAME=postgres
  25. DB_PASSWORD=difyai123456
  26. DB_HOST=localhost
  27. DB_PORT=5432
  28. DB_DATABASE=dify
  29. # Storage configuration
  30. # use for store upload files, private keys...
  31. # storage type: local, s3, azure-blob
  32. STORAGE_TYPE=local
  33. STORAGE_LOCAL_PATH=storage
  34. S3_ENDPOINT=https://your-bucket-name.storage.s3.clooudflare.com
  35. S3_BUCKET_NAME=your-bucket-name
  36. S3_ACCESS_KEY=your-access-key
  37. S3_SECRET_KEY=your-secret-key
  38. S3_REGION=your-region
  39. # Azure Blob Storage configuration
  40. AZURE_BLOB_ACCOUNT_NAME=your-account-name
  41. AZURE_BLOB_ACCOUNT_KEY=your-account-key
  42. AZURE_BLOB_CONTAINER_NAME=yout-container-name
  43. AZURE_BLOB_ACCOUNT_URL=https://<your_account_name>.blob.core.windows.net
  44. # Aliyun oss Storage configuration
  45. ALIYUN_OSS_BUCKET_NAME=your-bucket-name
  46. ALIYUN_OSS_ACCESS_KEY=your-access-key
  47. ALIYUN_OSS_SECRET_KEY=your-secret-key
  48. ALIYUN_OSS_ENDPOINT=your-endpoint
  49. ALIYUN_OSS_AUTH_VERSION=v1
  50. ALIYUN_OSS_REGION=your-region
  51. # Google Storage configuration
  52. GOOGLE_STORAGE_BUCKET_NAME=yout-bucket-name
  53. GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON=your-google-service-account-json-base64-string
  54. # CORS configuration
  55. WEB_API_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  56. CONSOLE_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  57. # Vector database configuration, support: weaviate, qdrant, milvus, relyt, pgvecto_rs, pgvector
  58. VECTOR_STORE=weaviate
  59. # Weaviate configuration
  60. WEAVIATE_ENDPOINT=http://localhost:8080
  61. WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  62. WEAVIATE_GRPC_ENABLED=false
  63. WEAVIATE_BATCH_SIZE=100
  64. # Qdrant configuration, use `http://localhost:6333` for local mode or `https://your-qdrant-cluster-url.qdrant.io` for remote mode
  65. QDRANT_URL=http://localhost:6333
  66. QDRANT_API_KEY=difyai123456
  67. QDRANT_CLIENT_TIMEOUT=20
  68. QDRANT_GRPC_ENABLED=false
  69. QDRANT_GRPC_PORT=6334
  70. # Milvus configuration
  71. MILVUS_HOST=127.0.0.1
  72. MILVUS_PORT=19530
  73. MILVUS_USER=root
  74. MILVUS_PASSWORD=Milvus
  75. MILVUS_SECURE=false
  76. # Relyt configuration
  77. RELYT_HOST=127.0.0.1
  78. RELYT_PORT=5432
  79. RELYT_USER=postgres
  80. RELYT_PASSWORD=postgres
  81. RELYT_DATABASE=postgres
  82. # PGVECTO_RS configuration
  83. PGVECTO_RS_HOST=localhost
  84. PGVECTO_RS_PORT=5431
  85. PGVECTO_RS_USER=postgres
  86. PGVECTO_RS_PASSWORD=difyai123456
  87. PGVECTO_RS_DATABASE=postgres
  88. # PGVector configuration
  89. PGVECTOR_HOST=127.0.0.1
  90. PGVECTOR_PORT=5433
  91. PGVECTOR_USER=postgres
  92. PGVECTOR_PASSWORD=postgres
  93. PGVECTOR_DATABASE=postgres
  94. # Upload configuration
  95. UPLOAD_FILE_SIZE_LIMIT=15
  96. UPLOAD_FILE_BATCH_LIMIT=5
  97. UPLOAD_IMAGE_FILE_SIZE_LIMIT=10
  98. # Model Configuration
  99. MULTIMODAL_SEND_IMAGE_FORMAT=base64
  100. # Mail configuration, support: resend, smtp
  101. MAIL_TYPE=
  102. MAIL_DEFAULT_SEND_FROM=no-reply <no-reply@dify.ai>
  103. RESEND_API_KEY=
  104. RESEND_API_URL=https://api.resend.com
  105. # smtp configuration
  106. SMTP_SERVER=smtp.gmail.com
  107. SMTP_PORT=587
  108. SMTP_USERNAME=123
  109. SMTP_PASSWORD=abc
  110. SMTP_USE_TLS=false
  111. # Sentry configuration
  112. SENTRY_DSN=
  113. # DEBUG
  114. DEBUG=false
  115. SQLALCHEMY_ECHO=false
  116. # Notion import configuration, support public and internal
  117. NOTION_INTEGRATION_TYPE=public
  118. NOTION_CLIENT_SECRET=you-client-secret
  119. NOTION_CLIENT_ID=you-client-id
  120. NOTION_INTERNAL_SECRET=you-internal-secret
  121. ETL_TYPE=dify
  122. UNSTRUCTURED_API_URL=
  123. UNSTRUCTURED_API_KEY=
  124. SSRF_PROXY_HTTP_URL=
  125. SSRF_PROXY_HTTPS_URL=
  126. BATCH_UPLOAD_LIMIT=10
  127. KEYWORD_DATA_SOURCE_TYPE=database
  128. # CODE EXECUTION CONFIGURATION
  129. CODE_EXECUTION_ENDPOINT=http://127.0.0.1:8194
  130. CODE_EXECUTION_API_KEY=dify-sandbox
  131. CODE_MAX_NUMBER=9223372036854775807
  132. CODE_MIN_NUMBER=-9223372036854775808
  133. CODE_MAX_STRING_LENGTH=80000
  134. TEMPLATE_TRANSFORM_MAX_LENGTH=80000
  135. CODE_MAX_STRING_ARRAY_LENGTH=30
  136. CODE_MAX_OBJECT_ARRAY_LENGTH=30
  137. CODE_MAX_NUMBER_ARRAY_LENGTH=1000
  138. # API Tool configuration
  139. API_TOOL_DEFAULT_CONNECT_TIMEOUT=10
  140. API_TOOL_DEFAULT_READ_TIMEOUT=60
  141. # HTTP Node configuration
  142. HTTP_REQUEST_MAX_CONNECT_TIMEOUT=300
  143. HTTP_REQUEST_MAX_READ_TIMEOUT=600
  144. HTTP_REQUEST_MAX_WRITE_TIMEOUT=600
  145. HTTP_REQUEST_NODE_MAX_BINARY_SIZE=10485760 # 10MB
  146. HTTP_REQUEST_NODE_MAX_TEXT_SIZE=1048576 # 1MB
  147. # Log file path
  148. LOG_FILE=
  149. # Indexing configuration
  150. INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH=1000