.env.example 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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_PASSWORD=difyai123456
  20. REDIS_DB=0
  21. # PostgreSQL database configuration
  22. DB_USERNAME=postgres
  23. DB_PASSWORD=difyai123456
  24. DB_HOST=localhost
  25. DB_PORT=5432
  26. DB_DATABASE=dify
  27. # Storage configuration
  28. # use for store upload files, private keys...
  29. # storage type: local, s3
  30. STORAGE_TYPE=local
  31. STORAGE_LOCAL_PATH=storage
  32. S3_ENDPOINT=https://your-bucket-name.storage.s3.clooudflare.com
  33. S3_BUCKET_NAME=your-bucket-name
  34. S3_ACCESS_KEY=your-access-key
  35. S3_SECRET_KEY=your-secret-key
  36. S3_REGION=your-region
  37. # CORS configuration
  38. WEB_API_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  39. CONSOLE_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  40. # Cookie configuration
  41. COOKIE_HTTPONLY=true
  42. COOKIE_SAMESITE=None
  43. COOKIE_SECURE=true
  44. # Session configuration
  45. SESSION_PERMANENT=true
  46. SESSION_USE_SIGNER=true
  47. ## support redis, sqlalchemy
  48. SESSION_TYPE=redis
  49. # session redis configuration
  50. SESSION_REDIS_HOST=localhost
  51. SESSION_REDIS_PORT=6379
  52. SESSION_REDIS_PASSWORD=difyai123456
  53. SESSION_REDIS_DB=2
  54. # Vector database configuration, support: weaviate, qdrant
  55. VECTOR_STORE=weaviate
  56. # Weaviate configuration
  57. WEAVIATE_ENDPOINT=http://localhost:8080
  58. WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  59. WEAVIATE_GRPC_ENABLED=false
  60. # Qdrant configuration, use `path:` prefix for local mode or `https://your-qdrant-cluster-url.qdrant.io` for remote mode
  61. QDRANT_URL=path:storage/qdrant
  62. QDRANT_API_KEY=your-qdrant-api-key
  63. # Sentry configuration
  64. SENTRY_DSN=
  65. # DEBUG
  66. DEBUG=false
  67. SQLALCHEMY_ECHO=false