.env.example 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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
  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. # CORS configuration
  42. WEB_API_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  43. CONSOLE_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  44. # Vector database configuration, support: weaviate, qdrant, milvus
  45. VECTOR_STORE=weaviate
  46. # Weaviate configuration
  47. WEAVIATE_ENDPOINT=http://localhost:8080
  48. WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  49. WEAVIATE_GRPC_ENABLED=false
  50. WEAVIATE_BATCH_SIZE=100
  51. # Qdrant configuration, use `http://localhost:6333` for local mode or `https://your-qdrant-cluster-url.qdrant.io` for remote mode
  52. QDRANT_URL=http://localhost:6333
  53. QDRANT_API_KEY=difyai123456
  54. QDRANT_CLIENT_TIMEOUT=20
  55. # Milvus configuration
  56. MILVUS_HOST=127.0.0.1
  57. MILVUS_PORT=19530
  58. MILVUS_USER=root
  59. MILVUS_PASSWORD=Milvus
  60. MILVUS_SECURE=false
  61. # Upload configuration
  62. UPLOAD_FILE_SIZE_LIMIT=15
  63. UPLOAD_FILE_BATCH_LIMIT=5
  64. UPLOAD_IMAGE_FILE_SIZE_LIMIT=10
  65. # Model Configuration
  66. MULTIMODAL_SEND_IMAGE_FORMAT=base64
  67. # Mail configuration, support: resend
  68. MAIL_TYPE=
  69. MAIL_DEFAULT_SEND_FROM=no-reply <no-reply@dify.ai>
  70. RESEND_API_KEY=
  71. RESEND_API_URL=https://api.resend.com
  72. # Sentry configuration
  73. SENTRY_DSN=
  74. # DEBUG
  75. DEBUG=false
  76. SQLALCHEMY_ECHO=false
  77. # Notion import configuration, support public and internal
  78. NOTION_INTEGRATION_TYPE=public
  79. NOTION_CLIENT_SECRET=you-client-secret
  80. NOTION_CLIENT_ID=you-client-id
  81. NOTION_INTERNAL_SECRET=you-internal-secret
  82. # Hosted Model Credentials
  83. HOSTED_OPENAI_API_KEY=
  84. HOSTED_OPENAI_API_BASE=
  85. HOSTED_OPENAI_API_ORGANIZATION=
  86. HOSTED_OPENAI_TRIAL_ENABLED=false
  87. HOSTED_OPENAI_QUOTA_LIMIT=200
  88. HOSTED_OPENAI_PAID_ENABLED=false
  89. HOSTED_AZURE_OPENAI_ENABLED=false
  90. HOSTED_AZURE_OPENAI_API_KEY=
  91. HOSTED_AZURE_OPENAI_API_BASE=
  92. HOSTED_AZURE_OPENAI_QUOTA_LIMIT=200
  93. HOSTED_ANTHROPIC_API_BASE=
  94. HOSTED_ANTHROPIC_API_KEY=
  95. HOSTED_ANTHROPIC_TRIAL_ENABLED=false
  96. HOSTED_ANTHROPIC_QUOTA_LIMIT=600000
  97. HOSTED_ANTHROPIC_PAID_ENABLED=false
  98. ETL_TYPE=dify
  99. UNSTRUCTURED_API_URL=