.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_API_URL=http://127.0.0.1:5001
  15. APP_WEB_URL=http://127.0.0.1:3000
  16. # Files URL
  17. FILES_URL=http://127.0.0.1:5001
  18. # celery configuration
  19. CELERY_BROKER_URL=redis://:difyai123456@localhost:6379/1
  20. # redis configuration
  21. REDIS_HOST=localhost
  22. REDIS_PORT=6379
  23. REDIS_USERNAME=
  24. REDIS_PASSWORD=difyai123456
  25. REDIS_DB=0
  26. # PostgreSQL database configuration
  27. DB_USERNAME=postgres
  28. DB_PASSWORD=difyai123456
  29. DB_HOST=localhost
  30. DB_PORT=5432
  31. DB_DATABASE=dify
  32. # Storage configuration
  33. # use for store upload files, private keys...
  34. # storage type: local, s3
  35. STORAGE_TYPE=local
  36. STORAGE_LOCAL_PATH=storage
  37. S3_ENDPOINT=https://your-bucket-name.storage.s3.clooudflare.com
  38. S3_BUCKET_NAME=your-bucket-name
  39. S3_ACCESS_KEY=your-access-key
  40. S3_SECRET_KEY=your-secret-key
  41. S3_REGION=your-region
  42. # CORS configuration
  43. WEB_API_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  44. CONSOLE_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  45. # Vector database configuration, support: weaviate, qdrant, milvus
  46. VECTOR_STORE=weaviate
  47. # Weaviate configuration
  48. WEAVIATE_ENDPOINT=http://localhost:8080
  49. WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  50. WEAVIATE_GRPC_ENABLED=false
  51. WEAVIATE_BATCH_SIZE=100
  52. # Qdrant configuration, use `http://localhost:6333` for local mode or `https://your-qdrant-cluster-url.qdrant.io` for remote mode
  53. QDRANT_URL=http://localhost:6333
  54. QDRANT_API_KEY=difyai123456
  55. QDRANT_CLIENT_TIMEOUT=20
  56. # Milvus configuration
  57. MILVUS_HOST=127.0.0.1
  58. MILVUS_PORT=19530
  59. MILVUS_USER=root
  60. MILVUS_PASSWORD=Milvus
  61. MILVUS_SECURE=false
  62. # Upload configuration
  63. UPLOAD_FILE_SIZE_LIMIT=15
  64. UPLOAD_FILE_BATCH_LIMIT=5
  65. UPLOAD_IMAGE_FILE_SIZE_LIMIT=10
  66. # Model Configuration
  67. MULTIMODAL_SEND_IMAGE_FORMAT=base64
  68. # Mail configuration, support: resend
  69. MAIL_TYPE=
  70. MAIL_DEFAULT_SEND_FROM=no-reply <no-reply@dify.ai>
  71. RESEND_API_KEY=
  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_ENABLED=false
  84. HOSTED_OPENAI_API_KEY=
  85. HOSTED_OPENAI_API_BASE=
  86. HOSTED_OPENAI_API_ORGANIZATION=
  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_ENABLED=false
  94. HOSTED_ANTHROPIC_API_BASE=
  95. HOSTED_ANTHROPIC_API_KEY=
  96. HOSTED_ANTHROPIC_QUOTA_LIMIT=600000
  97. HOSTED_ANTHROPIC_PAID_ENABLED=false
  98. ETL_TYPE=dify
  99. UNSTRUCTURED_API_URL=