.env.example 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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_URL=http://127.0.0.1:5001
  10. # Service API base URL
  11. API_URL=http://127.0.0.1:5001
  12. # Web APP base URL
  13. APP_URL=http://127.0.0.1:3000
  14. # celery configuration
  15. CELERY_BROKER_URL=redis://:difyai123456@localhost:6379/1
  16. # redis configuration
  17. REDIS_HOST=localhost
  18. REDIS_PORT=6379
  19. REDIS_USERNAME=
  20. REDIS_PASSWORD=difyai123456
  21. REDIS_DB=0
  22. # PostgreSQL database configuration
  23. DB_USERNAME=postgres
  24. DB_PASSWORD=difyai123456
  25. DB_HOST=localhost
  26. DB_PORT=5432
  27. DB_DATABASE=dify
  28. # Storage configuration
  29. # use for store upload files, private keys...
  30. # storage type: local, s3
  31. STORAGE_TYPE=local
  32. STORAGE_LOCAL_PATH=storage
  33. S3_ENDPOINT=https://your-bucket-name.storage.s3.clooudflare.com
  34. S3_BUCKET_NAME=your-bucket-name
  35. S3_ACCESS_KEY=your-access-key
  36. S3_SECRET_KEY=your-secret-key
  37. S3_REGION=your-region
  38. # CORS configuration
  39. WEB_API_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  40. CONSOLE_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  41. # Cookie configuration
  42. COOKIE_HTTPONLY=true
  43. COOKIE_SAMESITE=None
  44. COOKIE_SECURE=true
  45. # Session configuration
  46. SESSION_PERMANENT=true
  47. SESSION_USE_SIGNER=true
  48. ## support redis, sqlalchemy
  49. SESSION_TYPE=redis
  50. # session redis configuration
  51. SESSION_REDIS_HOST=localhost
  52. SESSION_REDIS_PORT=6379
  53. SESSION_REDIS_PASSWORD=difyai123456
  54. SESSION_REDIS_DB=2
  55. # Vector database configuration, support: weaviate, qdrant
  56. VECTOR_STORE=weaviate
  57. # Weaviate configuration
  58. WEAVIATE_ENDPOINT=http://localhost:8080
  59. WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  60. WEAVIATE_GRPC_ENABLED=false
  61. WEAVIATE_BATCH_SIZE=100
  62. # Qdrant configuration, use `path:` prefix for local mode or `https://your-qdrant-cluster-url.qdrant.io` for remote mode
  63. QDRANT_URL=path:storage/qdrant
  64. QDRANT_API_KEY=your-qdrant-api-key
  65. # Sentry configuration
  66. SENTRY_DSN=
  67. # DEBUG
  68. DEBUG=false
  69. SQLALCHEMY_ECHO=false
  70. # Notion import configuration, support public and internal
  71. NOTION_INTEGRATION_TYPE=public
  72. NOTION_CLIENT_SECRET=you-client-secret
  73. NOTION_CLIENT_ID=you-client-id
  74. NOTION_INTERNAL_SECRET=you-internal-secret