.env.example 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. # Server Edition
  2. EDITION=SELF_HOSTED
  3. # Your App secret key will be used for securely signing the session cookie
  4. # Make sure you are changing this key for your deployment with a strong key.
  5. # You can generate a strong key using `openssl rand -base64 42`.
  6. # Alternatively you can set it with `SECRET_KEY` environment variable.
  7. SECRET_KEY=
  8. # Console API base URL
  9. CONSOLE_API_URL=http://127.0.0.1:5001
  10. CONSOLE_WEB_URL=http://127.0.0.1:3000
  11. # Service API base URL
  12. SERVICE_API_URL=http://127.0.0.1:5001
  13. # Web APP base URL
  14. APP_WEB_URL=http://127.0.0.1:3000
  15. # Files URL
  16. FILES_URL=http://127.0.0.1:5001
  17. # celery configuration
  18. CELERY_BROKER_URL=redis://:difyai123456@localhost:6379/1
  19. # redis configuration
  20. REDIS_HOST=localhost
  21. REDIS_PORT=6379
  22. REDIS_USERNAME=
  23. REDIS_PASSWORD=difyai123456
  24. REDIS_DB=0
  25. # PostgreSQL database configuration
  26. DB_USERNAME=postgres
  27. DB_PASSWORD=difyai123456
  28. DB_HOST=localhost
  29. DB_PORT=5432
  30. DB_DATABASE=dify
  31. # Storage configuration
  32. # use for store upload files, private keys...
  33. # storage type: local, s3, azure-blob
  34. STORAGE_TYPE=local
  35. STORAGE_LOCAL_PATH=storage
  36. S3_ENDPOINT=https://your-bucket-name.storage.s3.clooudflare.com
  37. S3_BUCKET_NAME=your-bucket-name
  38. S3_ACCESS_KEY=your-access-key
  39. S3_SECRET_KEY=your-secret-key
  40. S3_REGION=your-region
  41. # Azure Blob Storage configuration
  42. AZURE_BLOB_ACCOUNT_NAME=your-account-name
  43. AZURE_BLOB_ACCOUNT_KEY=your-account-key
  44. AZURE_BLOB_CONTAINER_NAME=yout-container-name
  45. AZURE_BLOB_ACCOUNT_URL=https://<your_account_name>.blob.core.windows.net
  46. # CORS configuration
  47. WEB_API_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  48. CONSOLE_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  49. # Vector database configuration, support: weaviate, qdrant, milvus
  50. VECTOR_STORE=weaviate
  51. # Weaviate configuration
  52. WEAVIATE_ENDPOINT=http://localhost:8080
  53. WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  54. WEAVIATE_GRPC_ENABLED=false
  55. WEAVIATE_BATCH_SIZE=100
  56. # Qdrant configuration, use `http://localhost:6333` for local mode or `https://your-qdrant-cluster-url.qdrant.io` for remote mode
  57. QDRANT_URL=http://localhost:6333
  58. QDRANT_API_KEY=difyai123456
  59. QDRANT_CLIENT_TIMEOUT=20
  60. # Milvus configuration
  61. MILVUS_HOST=127.0.0.1
  62. MILVUS_PORT=19530
  63. MILVUS_USER=root
  64. MILVUS_PASSWORD=Milvus
  65. MILVUS_SECURE=false
  66. # Upload configuration
  67. UPLOAD_FILE_SIZE_LIMIT=15
  68. UPLOAD_FILE_BATCH_LIMIT=5
  69. UPLOAD_IMAGE_FILE_SIZE_LIMIT=10
  70. # Model Configuration
  71. MULTIMODAL_SEND_IMAGE_FORMAT=base64
  72. # Mail configuration, support: resend, smtp
  73. MAIL_TYPE=
  74. MAIL_DEFAULT_SEND_FROM=no-reply <no-reply@dify.ai>
  75. RESEND_API_KEY=
  76. RESEND_API_URL=https://api.resend.com
  77. # smtp configuration
  78. SMTP_SERVER=smtp.gmail.com
  79. SMTP_PORT=587
  80. SMTP_USERNAME=123
  81. SMTP_PASSWORD=abc
  82. SMTP_USE_TLS=false
  83. # Sentry configuration
  84. SENTRY_DSN=
  85. # DEBUG
  86. DEBUG=false
  87. SQLALCHEMY_ECHO=false
  88. # Notion import configuration, support public and internal
  89. NOTION_INTEGRATION_TYPE=public
  90. NOTION_CLIENT_SECRET=you-client-secret
  91. NOTION_CLIENT_ID=you-client-id
  92. NOTION_INTERNAL_SECRET=you-internal-secret
  93. # Hosted Model Credentials
  94. HOSTED_OPENAI_API_KEY=
  95. HOSTED_OPENAI_API_BASE=
  96. HOSTED_OPENAI_API_ORGANIZATION=
  97. HOSTED_OPENAI_TRIAL_ENABLED=false
  98. HOSTED_OPENAI_QUOTA_LIMIT=200
  99. HOSTED_OPENAI_PAID_ENABLED=false
  100. HOSTED_AZURE_OPENAI_ENABLED=false
  101. HOSTED_AZURE_OPENAI_API_KEY=
  102. HOSTED_AZURE_OPENAI_API_BASE=
  103. HOSTED_AZURE_OPENAI_QUOTA_LIMIT=200
  104. HOSTED_ANTHROPIC_API_BASE=
  105. HOSTED_ANTHROPIC_API_KEY=
  106. HOSTED_ANTHROPIC_TRIAL_ENABLED=false
  107. HOSTED_ANTHROPIC_QUOTA_LIMIT=600000
  108. HOSTED_ANTHROPIC_PAID_ENABLED=false
  109. ETL_TYPE=dify
  110. UNSTRUCTURED_API_URL=
  111. SSRF_PROXY_HTTP_URL=
  112. SSRF_PROXY_HTTPS_URL=
  113. BATCH_UPLOAD_LIMIT=10
  114. KEYWORD_DATA_SOURCE_TYPE=database
  115. # CODE EXECUTION CONFIGURATION
  116. CODE_EXECUTION_ENDPOINT=http://127.0.0.1:8194
  117. CODE_EXECUTION_API_KEY=dify-sandbox
  118. CODE_MAX_NUMBER=9223372036854775807
  119. CODE_MIN_NUMBER=-9223372036854775808
  120. CODE_MAX_STRING_LENGTH=80000
  121. TEMPLATE_TRANSFORM_MAX_LENGTH=80000
  122. CODE_MAX_STRING_ARRAY_LENGTH=30
  123. CODE_MAX_OBJECT_ARRAY_LENGTH=30
  124. CODE_MAX_NUMBER_ARRAY_LENGTH=1000
  125. # API Tool configuration
  126. API_TOOL_DEFAULT_CONNECT_TIMEOUT=10
  127. API_TOOL_DEFAULT_READ_TIMEOUT=60