.env.example 3.8 KB

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