.env.example 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. # Google Storage configuration
  50. GOOGLE_STORAGE_BUCKET_NAME=yout-bucket-name
  51. GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON=your-google-service-account-json-base64-string
  52. # CORS configuration
  53. WEB_API_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  54. CONSOLE_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  55. # Vector database configuration, support: weaviate, qdrant, milvus, relyt, pgvecto_rs
  56. VECTOR_STORE=weaviate
  57. # Weaviate configuration
  58. WEAVIATE_ENDPOINT=http://localhost:8080
  59. WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  60. WEAVIATE_GRPC_ENABLED=false
  61. WEAVIATE_BATCH_SIZE=100
  62. # Qdrant configuration, use `http://localhost:6333` for local mode or `https://your-qdrant-cluster-url.qdrant.io` for remote mode
  63. QDRANT_URL=http://localhost:6333
  64. QDRANT_API_KEY=difyai123456
  65. QDRANT_CLIENT_TIMEOUT=20
  66. QDRANT_GRPC_ENABLED=false
  67. QDRANT_GRPC_PORT=6334
  68. # Milvus configuration
  69. MILVUS_HOST=127.0.0.1
  70. MILVUS_PORT=19530
  71. MILVUS_USER=root
  72. MILVUS_PASSWORD=Milvus
  73. MILVUS_SECURE=false
  74. # Relyt configuration
  75. RELYT_HOST=127.0.0.1
  76. RELYT_PORT=5432
  77. RELYT_USER=postgres
  78. RELYT_PASSWORD=postgres
  79. RELYT_DATABASE=postgres
  80. # PGVECTO_RS configuration
  81. PGVECTO_RS_HOST=localhost
  82. PGVECTO_RS_PORT=5431
  83. PGVECTO_RS_USER=postgres
  84. PGVECTO_RS_PASSWORD=difyai123456
  85. PGVECTO_RS_DATABASE=postgres
  86. # Upload configuration
  87. UPLOAD_FILE_SIZE_LIMIT=15
  88. UPLOAD_FILE_BATCH_LIMIT=5
  89. UPLOAD_IMAGE_FILE_SIZE_LIMIT=10
  90. # Model Configuration
  91. MULTIMODAL_SEND_IMAGE_FORMAT=base64
  92. # Mail configuration, support: resend, smtp
  93. MAIL_TYPE=
  94. MAIL_DEFAULT_SEND_FROM=no-reply <no-reply@dify.ai>
  95. RESEND_API_KEY=
  96. RESEND_API_URL=https://api.resend.com
  97. # smtp configuration
  98. SMTP_SERVER=smtp.gmail.com
  99. SMTP_PORT=587
  100. SMTP_USERNAME=123
  101. SMTP_PASSWORD=abc
  102. SMTP_USE_TLS=false
  103. # Sentry configuration
  104. SENTRY_DSN=
  105. # DEBUG
  106. DEBUG=false
  107. SQLALCHEMY_ECHO=false
  108. # Notion import configuration, support public and internal
  109. NOTION_INTEGRATION_TYPE=public
  110. NOTION_CLIENT_SECRET=you-client-secret
  111. NOTION_CLIENT_ID=you-client-id
  112. NOTION_INTERNAL_SECRET=you-internal-secret
  113. ETL_TYPE=dify
  114. UNSTRUCTURED_API_URL=
  115. SSRF_PROXY_HTTP_URL=
  116. SSRF_PROXY_HTTPS_URL=
  117. BATCH_UPLOAD_LIMIT=10
  118. KEYWORD_DATA_SOURCE_TYPE=database
  119. # CODE EXECUTION CONFIGURATION
  120. CODE_EXECUTION_ENDPOINT=http://127.0.0.1:8194
  121. CODE_EXECUTION_API_KEY=dify-sandbox
  122. CODE_MAX_NUMBER=9223372036854775807
  123. CODE_MIN_NUMBER=-9223372036854775808
  124. CODE_MAX_STRING_LENGTH=80000
  125. TEMPLATE_TRANSFORM_MAX_LENGTH=80000
  126. CODE_MAX_STRING_ARRAY_LENGTH=30
  127. CODE_MAX_OBJECT_ARRAY_LENGTH=30
  128. CODE_MAX_NUMBER_ARRAY_LENGTH=1000
  129. # API Tool configuration
  130. API_TOOL_DEFAULT_CONNECT_TIMEOUT=10
  131. API_TOOL_DEFAULT_READ_TIMEOUT=60
  132. # HTTP Node configuration
  133. HTTP_REQUEST_MAX_CONNECT_TIMEOUT=300
  134. HTTP_REQUEST_MAX_READ_TIMEOUT=600
  135. HTTP_REQUEST_MAX_WRITE_TIMEOUT=600
  136. # Log file path
  137. LOG_FILE=