Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
chore: add default value for redis configuration (#9864)
zhuhaoeec63b112fab
diff --git a/api/.env.example b/api/.env.exampleindex 960d8b18797..184a811c516 100644--- a/api/.env.example+++ b/api/.env.example@@ -31,8 +31,17 @@ REDIS_HOST=localhostREDIS_PORT=6379REDIS_USERNAME=REDIS_PASSWORD=difyai123456+REDIS_USE_SSL=falseREDIS_DB=0+# redis Sentinel configuration.+REDIS_USE_SENTINEL=false+REDIS_SENTINELS=+REDIS_SENTINEL_SERVICE_NAME=+REDIS_SENTINEL_USERNAME=+REDIS_SENTINEL_PASSWORD=+REDIS_SENTINEL_SOCKET_TIMEOUT=0.1+# PostgreSQL database configurationDB_USERNAME=postgresDB_PASSWORD=difyai123456diff --git a/docker/.env.example b/docker/.env.exampleindex 0a9e0814c7d..49ce48a20d4 100644--- a/docker/.env.example+++ b/docker/.env.example@@ -222,6 +222,7 @@ REDIS_PORT=6379REDIS_USERNAME=REDIS_PASSWORD=difyai123456REDIS_USE_SSL=false+REDIS_DB=0# Whether to use Redis Sentinel mode.# If set to true, the application will automatically discover and connect to the master node through Sentinel.@@ -273,6 +274,7 @@ CONSOLE_CORS_ALLOW_ORIGINS=*# Supported values are `local` , `s3` , `azure-blob` , `google-storage`, `tencent-cos`, `huawei-obs`, `volcengine-tos`, `baidu-obs`, `supabase`# Default: `local`STORAGE_TYPE=local+STORAGE_LOCAL_PATH=storage# S3 Configuration# Whether to use AWS managed IAM roles for authenticating with the S3 service.@@ -591,6 +593,7 @@ MAIL_DEFAULT_SEND_FROM=# API-Key for the Resend email provider, used when MAIL_TYPE is `resend`.RESEND_API_KEY=your-resend-api-key+RESEND_API_URL=https://api.resend.com# SMTP server configuration, used when MAIL_TYPE is `smtp`SMTP_SERVER=diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yamlindex 24e1328e959..d43bd5e2d1a 100644--- a/docker/docker-compose.yaml+++ b/docker/docker-compose.yaml@@ -43,14 +43,14 @@ x-shared-env: &shared-api-worker-envREDIS_USERNAME: ${REDIS_USERNAME:-}REDIS_PASSWORD: ${REDIS_PASSWORD:-difyai123456}REDIS_USE_SSL: ${REDIS_USE_SSL:-false}- REDIS_DB: 0+ REDIS_DB: ${REDIS_DB:-0}REDIS_USE_SENTINEL: ${REDIS_USE_SENTINEL:-false}REDIS_SENTINELS: ${REDIS_SENTINELS:-}REDIS_SENTINEL_SERVICE_NAME: ${REDIS_SENTINEL_SERVICE_NAME:-}REDIS_SENTINEL_USERNAME: ${REDIS_SENTINEL_USERNAME:-}REDIS_SENTINEL_PASSWORD: ${REDIS_SENTINEL_PASSWORD:-}- ACCESS_TOKEN_EXPIRE_MINUTES: ${ACCESS_TOKEN_EXPIRE_MINUTES:-60}REDIS_SENTINEL_SOCKET_TIMEOUT: ${REDIS_SENTINEL_SOCKET_TIMEOUT:-0.1}+ ACCESS_TOKEN_EXPIRE_MINUTES: ${ACCESS_TOKEN_EXPIRE_MINUTES:-60}CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://:difyai123456@redis:6379/1}BROKER_USE_SSL: ${BROKER_USE_SSL:-false}CELERY_USE_SENTINEL: ${CELERY_USE_SENTINEL:-false}@@ -59,7 +59,7 @@ x-shared-env: &shared-api-worker-envWEB_API_CORS_ALLOW_ORIGINS: ${WEB_API_CORS_ALLOW_ORIGINS:-*}CONSOLE_CORS_ALLOW_ORIGINS: ${CONSOLE_CORS_ALLOW_ORIGINS:-*}STORAGE_TYPE: ${STORAGE_TYPE:-local}- STORAGE_LOCAL_PATH: storage+ STORAGE_LOCAL_PATH: ${STORAGE_LOCAL_PATH:-storage}S3_USE_AWS_MANAGED_IAM: ${S3_USE_AWS_MANAGED_IAM:-false}S3_ENDPOINT: ${S3_ENDPOINT:-}S3_BUCKET_NAME: ${S3_BUCKET_NAME:-}@@ -208,7 +208,7 @@ x-shared-env: &shared-api-worker-envSMTP_USE_TLS: ${SMTP_USE_TLS:-true}SMTP_OPPORTUNISTIC_TLS: ${SMTP_OPPORTUNISTIC_TLS:-false}RESEND_API_KEY: ${RESEND_API_KEY:-your-resend-api-key}- RESEND_API_URL: https://api.resend.com+ RESEND_API_URL: ${RESEND_API_URL:-https://api.resend.com}INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH: ${INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH:-1000}INVITE_EXPIRY_HOURS: ${INVITE_EXPIRY_HOURS:-72}RESET_PASSWORD_TOKEN_EXPIRY_MINUTES: ${RESET_PASSWORD_TOKEN_EXPIRY_MINUTES:-5}