.env.example 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. # celery configuration
  17. CELERY_BROKER_URL=redis://:difyai123456@localhost:6379/1
  18. # redis configuration
  19. REDIS_HOST=localhost
  20. REDIS_PORT=6379
  21. REDIS_USERNAME=
  22. REDIS_PASSWORD=difyai123456
  23. REDIS_DB=0
  24. # PostgreSQL database configuration
  25. DB_USERNAME=postgres
  26. DB_PASSWORD=difyai123456
  27. DB_HOST=localhost
  28. DB_PORT=5432
  29. DB_DATABASE=dify
  30. # Storage configuration
  31. # use for store upload files, private keys...
  32. # storage type: local, s3
  33. STORAGE_TYPE=local
  34. STORAGE_LOCAL_PATH=storage
  35. S3_ENDPOINT=https://your-bucket-name.storage.s3.clooudflare.com
  36. S3_BUCKET_NAME=your-bucket-name
  37. S3_ACCESS_KEY=your-access-key
  38. S3_SECRET_KEY=your-secret-key
  39. S3_REGION=your-region
  40. # CORS configuration
  41. WEB_API_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  42. CONSOLE_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  43. # Cookie configuration
  44. COOKIE_HTTPONLY=true
  45. COOKIE_SAMESITE=None
  46. COOKIE_SECURE=true
  47. # Session configuration
  48. SESSION_PERMANENT=true
  49. SESSION_USE_SIGNER=true
  50. ## support redis, sqlalchemy
  51. SESSION_TYPE=redis
  52. # session redis configuration
  53. SESSION_REDIS_HOST=localhost
  54. SESSION_REDIS_PORT=6379
  55. SESSION_REDIS_PASSWORD=difyai123456
  56. SESSION_REDIS_DB=2
  57. # Vector database configuration, support: weaviate, qdrant
  58. VECTOR_STORE=weaviate
  59. # Weaviate configuration
  60. WEAVIATE_ENDPOINT=http://localhost:8080
  61. WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  62. WEAVIATE_GRPC_ENABLED=false
  63. WEAVIATE_BATCH_SIZE=100
  64. # Qdrant configuration, use `path:` prefix for local mode or `https://your-qdrant-cluster-url.qdrant.io` for remote mode
  65. QDRANT_URL=path:storage/qdrant
  66. QDRANT_API_KEY=your-qdrant-api-key
  67. # Mail configuration, support: resend
  68. MAIL_TYPE=
  69. MAIL_DEFAULT_SEND_FROM=no-reply <no-reply@dify.ai>
  70. RESEND_API_KEY=
  71. # Sentry configuration
  72. SENTRY_DSN=
  73. # DEBUG
  74. DEBUG=false
  75. SQLALCHEMY_ECHO=false
  76. # Notion import configuration, support public and internal
  77. NOTION_INTEGRATION_TYPE=public
  78. NOTION_CLIENT_SECRET=you-client-secret
  79. NOTION_CLIENT_ID=you-client-id
  80. NOTION_INTERNAL_SECRET=you-internal-secret
  81. # Hosted Model Credentials
  82. HOSTED_OPENAI_ENABLED=false
  83. HOSTED_OPENAI_API_KEY=
  84. HOSTED_OPENAI_API_BASE=
  85. HOSTED_OPENAI_API_ORGANIZATION=
  86. HOSTED_OPENAI_QUOTA_LIMIT=200
  87. HOSTED_OPENAI_PAID_ENABLED=false
  88. HOSTED_OPENAI_PAID_STRIPE_PRICE_ID=
  89. HOSTED_OPENAI_PAID_INCREASE_QUOTA=1
  90. HOSTED_AZURE_OPENAI_ENABLED=false
  91. HOSTED_AZURE_OPENAI_API_KEY=
  92. HOSTED_AZURE_OPENAI_API_BASE=
  93. HOSTED_AZURE_OPENAI_QUOTA_LIMIT=200
  94. HOSTED_ANTHROPIC_ENABLED=false
  95. HOSTED_ANTHROPIC_API_BASE=
  96. HOSTED_ANTHROPIC_API_KEY=
  97. HOSTED_ANTHROPIC_QUOTA_LIMIT=1000000
  98. HOSTED_ANTHROPIC_PAID_ENABLED=false
  99. HOSTED_ANTHROPIC_PAID_STRIPE_PRICE_ID=
  100. HOSTED_ANTHROPIC_PAID_INCREASE_QUOTA=1
  101. STRIPE_API_KEY=
  102. STRIPE_WEBHOOK_SECRET=