2023-05-15 08:51:32 +08:00
|
|
|
# Server Edition
|
|
|
|
EDITION=SELF_HOSTED
|
|
|
|
|
|
|
|
# Your App secret key will be used for securely signing the session cookie
|
|
|
|
# Make sure you are changing this key for your deployment with a strong key.
|
|
|
|
# You can generate a strong key using `openssl rand -base64 42`.
|
|
|
|
# Alternatively you can set it with `SECRET_KEY` environment variable.
|
|
|
|
SECRET_KEY=
|
|
|
|
|
|
|
|
# Console API base URL
|
2023-07-14 11:19:26 +08:00
|
|
|
CONSOLE_API_URL=http://127.0.0.1:5001
|
|
|
|
CONSOLE_WEB_URL=http://127.0.0.1:3000
|
2023-05-15 08:51:32 +08:00
|
|
|
|
|
|
|
# Service API base URL
|
2023-07-14 11:19:26 +08:00
|
|
|
SERVICE_API_URL=http://127.0.0.1:5001
|
|
|
|
|
2023-08-13 17:32:23 +08:00
|
|
|
# Web APP base URL
|
2023-07-14 11:19:26 +08:00
|
|
|
APP_API_URL=http://127.0.0.1:5001
|
|
|
|
APP_WEB_URL=http://127.0.0.1:3000
|
2023-05-15 08:51:32 +08:00
|
|
|
|
|
|
|
# celery configuration
|
|
|
|
CELERY_BROKER_URL=redis://:difyai123456@localhost:6379/1
|
|
|
|
|
|
|
|
# redis configuration
|
|
|
|
REDIS_HOST=localhost
|
|
|
|
REDIS_PORT=6379
|
2023-06-19 22:14:47 +08:00
|
|
|
REDIS_USERNAME=
|
2023-05-15 08:51:32 +08:00
|
|
|
REDIS_PASSWORD=difyai123456
|
|
|
|
REDIS_DB=0
|
|
|
|
|
|
|
|
# PostgreSQL database configuration
|
|
|
|
DB_USERNAME=postgres
|
|
|
|
DB_PASSWORD=difyai123456
|
|
|
|
DB_HOST=localhost
|
|
|
|
DB_PORT=5432
|
|
|
|
DB_DATABASE=dify
|
|
|
|
|
|
|
|
# Storage configuration
|
|
|
|
# use for store upload files, private keys...
|
|
|
|
# storage type: local, s3
|
|
|
|
STORAGE_TYPE=local
|
|
|
|
STORAGE_LOCAL_PATH=storage
|
|
|
|
S3_ENDPOINT=https://your-bucket-name.storage.s3.clooudflare.com
|
|
|
|
S3_BUCKET_NAME=your-bucket-name
|
|
|
|
S3_ACCESS_KEY=your-access-key
|
|
|
|
S3_SECRET_KEY=your-secret-key
|
|
|
|
S3_REGION=your-region
|
|
|
|
|
|
|
|
# CORS configuration
|
|
|
|
WEB_API_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
|
|
|
|
CONSOLE_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
|
|
|
|
|
|
|
|
# Vector database configuration, support: weaviate, qdrant
|
|
|
|
VECTOR_STORE=weaviate
|
|
|
|
|
|
|
|
# Weaviate configuration
|
|
|
|
WEAVIATE_ENDPOINT=http://localhost:8080
|
|
|
|
WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
|
|
|
|
WEAVIATE_GRPC_ENABLED=false
|
2023-06-13 14:49:40 +08:00
|
|
|
WEAVIATE_BATCH_SIZE=100
|
2023-05-15 08:51:32 +08:00
|
|
|
|
2023-10-09 01:04:04 +08:00
|
|
|
# Qdrant configuration, use `http://localhost:6333` for local mode or `https://your-qdrant-cluster-url.qdrant.io` for remote mode
|
|
|
|
QDRANT_URL=http://localhost:6333
|
|
|
|
QDRANT_API_KEY=difyai123456
|
2023-05-15 08:51:32 +08:00
|
|
|
|
2023-07-14 11:19:26 +08:00
|
|
|
# Mail configuration, support: resend
|
|
|
|
MAIL_TYPE=
|
|
|
|
MAIL_DEFAULT_SEND_FROM=no-reply <no-reply@dify.ai>
|
|
|
|
RESEND_API_KEY=
|
|
|
|
|
2023-05-15 08:51:32 +08:00
|
|
|
# Sentry configuration
|
|
|
|
SENTRY_DSN=
|
|
|
|
|
|
|
|
# DEBUG
|
|
|
|
DEBUG=false
|
|
|
|
SQLALCHEMY_ECHO=false
|
2023-06-19 16:32:03 +08:00
|
|
|
|
|
|
|
# Notion import configuration, support public and internal
|
|
|
|
NOTION_INTEGRATION_TYPE=public
|
|
|
|
NOTION_CLIENT_SECRET=you-client-secret
|
|
|
|
NOTION_CLIENT_ID=you-client-id
|
2023-06-19 22:14:47 +08:00
|
|
|
NOTION_INTERNAL_SECRET=you-internal-secret
|
2023-08-12 00:57:00 +08:00
|
|
|
|
|
|
|
# Hosted Model Credentials
|
|
|
|
HOSTED_OPENAI_ENABLED=false
|
|
|
|
HOSTED_OPENAI_API_KEY=
|
|
|
|
HOSTED_OPENAI_API_BASE=
|
|
|
|
HOSTED_OPENAI_API_ORGANIZATION=
|
|
|
|
HOSTED_OPENAI_QUOTA_LIMIT=200
|
|
|
|
HOSTED_OPENAI_PAID_ENABLED=false
|
|
|
|
HOSTED_OPENAI_PAID_STRIPE_PRICE_ID=
|
|
|
|
HOSTED_OPENAI_PAID_INCREASE_QUOTA=1
|
|
|
|
|
|
|
|
HOSTED_AZURE_OPENAI_ENABLED=false
|
|
|
|
HOSTED_AZURE_OPENAI_API_KEY=
|
|
|
|
HOSTED_AZURE_OPENAI_API_BASE=
|
|
|
|
HOSTED_AZURE_OPENAI_QUOTA_LIMIT=200
|
|
|
|
|
|
|
|
HOSTED_ANTHROPIC_ENABLED=false
|
|
|
|
HOSTED_ANTHROPIC_API_BASE=
|
|
|
|
HOSTED_ANTHROPIC_API_KEY=
|
2023-08-17 16:56:20 +08:00
|
|
|
HOSTED_ANTHROPIC_QUOTA_LIMIT=600000
|
2023-08-12 00:57:00 +08:00
|
|
|
HOSTED_ANTHROPIC_PAID_ENABLED=false
|
|
|
|
HOSTED_ANTHROPIC_PAID_STRIPE_PRICE_ID=
|
2023-08-17 16:56:20 +08:00
|
|
|
HOSTED_ANTHROPIC_PAID_INCREASE_QUOTA=1000000
|
|
|
|
HOSTED_ANTHROPIC_PAID_MIN_QUANTITY=20
|
|
|
|
HOSTED_ANTHROPIC_PAID_MAX_QUANTITY=100
|
2023-08-12 00:57:00 +08:00
|
|
|
|
|
|
|
STRIPE_API_KEY=
|
|
|
|
STRIPE_WEBHOOK_SECRET=
|