.env.example 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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 frontend web base URL
  11. CONSOLE_WEB_URL=http://127.0.0.1:3000
  12. # Service API base URL
  13. SERVICE_API_URL=http://127.0.0.1:5001
  14. # Web APP API base URL
  15. APP_API_URL=http://127.0.0.1:5001
  16. # Web APP frontend web base URL
  17. APP_WEB_URL=http://127.0.0.1:3000
  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. # Cookie configuration
  46. COOKIE_HTTPONLY=true
  47. COOKIE_SAMESITE=None
  48. COOKIE_SECURE=true
  49. # Session configuration
  50. SESSION_PERMANENT=true
  51. SESSION_USE_SIGNER=true
  52. ## support redis, sqlalchemy
  53. SESSION_TYPE=redis
  54. # session redis configuration
  55. SESSION_REDIS_HOST=localhost
  56. SESSION_REDIS_PORT=6379
  57. SESSION_REDIS_PASSWORD=difyai123456
  58. SESSION_REDIS_DB=2
  59. # Vector database configuration, support: weaviate, qdrant
  60. VECTOR_STORE=weaviate
  61. # Weaviate configuration
  62. WEAVIATE_ENDPOINT=http://localhost:8080
  63. WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  64. WEAVIATE_GRPC_ENABLED=false
  65. WEAVIATE_BATCH_SIZE=100
  66. # Qdrant configuration, use `path:` prefix for local mode or `https://your-qdrant-cluster-url.qdrant.io` for remote mode
  67. QDRANT_URL=path:storage/qdrant
  68. QDRANT_API_KEY=your-qdrant-api-key
  69. # Mail configuration, support: resend
  70. MAIL_TYPE=
  71. MAIL_DEFAULT_SEND_FROM=no-reply <no-reply@dify.ai>
  72. RESEND_API_KEY=
  73. # Sentry configuration
  74. SENTRY_DSN=
  75. # DEBUG
  76. DEBUG=false
  77. SQLALCHEMY_ECHO=false
  78. # Notion import configuration, support public and internal
  79. NOTION_INTEGRATION_TYPE=public
  80. NOTION_CLIENT_SECRET=you-client-secret
  81. NOTION_CLIENT_ID=you-client-id
  82. NOTION_INTERNAL_SECRET=you-internal-secret