.env.example 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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
  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. # Upload configuration
  81. UPLOAD_FILE_SIZE_LIMIT=15
  82. UPLOAD_FILE_BATCH_LIMIT=5
  83. UPLOAD_IMAGE_FILE_SIZE_LIMIT=10
  84. # Model Configuration
  85. MULTIMODAL_SEND_IMAGE_FORMAT=base64
  86. # Mail configuration, support: resend, smtp
  87. MAIL_TYPE=
  88. MAIL_DEFAULT_SEND_FROM=no-reply <no-reply@dify.ai>
  89. RESEND_API_KEY=
  90. RESEND_API_URL=https://api.resend.com
  91. # smtp configuration
  92. SMTP_SERVER=smtp.gmail.com
  93. SMTP_PORT=587
  94. SMTP_USERNAME=123
  95. SMTP_PASSWORD=abc
  96. SMTP_USE_TLS=false
  97. # Sentry configuration
  98. SENTRY_DSN=
  99. # DEBUG
  100. DEBUG=false
  101. SQLALCHEMY_ECHO=false
  102. # Notion import configuration, support public and internal
  103. NOTION_INTEGRATION_TYPE=public
  104. NOTION_CLIENT_SECRET=you-client-secret
  105. NOTION_CLIENT_ID=you-client-id
  106. NOTION_INTERNAL_SECRET=you-internal-secret
  107. ETL_TYPE=dify
  108. UNSTRUCTURED_API_URL=
  109. SSRF_PROXY_HTTP_URL=
  110. SSRF_PROXY_HTTPS_URL=
  111. BATCH_UPLOAD_LIMIT=10
  112. KEYWORD_DATA_SOURCE_TYPE=database
  113. # CODE EXECUTION CONFIGURATION
  114. CODE_EXECUTION_ENDPOINT=http://127.0.0.1:8194
  115. CODE_EXECUTION_API_KEY=dify-sandbox
  116. CODE_MAX_NUMBER=9223372036854775807
  117. CODE_MIN_NUMBER=-9223372036854775808
  118. CODE_MAX_STRING_LENGTH=80000
  119. TEMPLATE_TRANSFORM_MAX_LENGTH=80000
  120. CODE_MAX_STRING_ARRAY_LENGTH=30
  121. CODE_MAX_OBJECT_ARRAY_LENGTH=30
  122. CODE_MAX_NUMBER_ARRAY_LENGTH=1000
  123. # API Tool configuration
  124. API_TOOL_DEFAULT_CONNECT_TIMEOUT=10
  125. API_TOOL_DEFAULT_READ_TIMEOUT=60
  126. # Log file path
  127. LOG_FILE=