Skip to content

armgit / dify

Public Imported from GitHub
0

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.

use REDIS_PORT to replace 6379 in celery config (#16182)

JaydenZhou4448a54cc1e6
diff --git a/api/.env.example b/api/.env.example
index 151ed141206..a609fae8059 100644
--- a/api/.env.example
+++ b/api/.env.example
@@ -26,9 +26,6 @@ ACCESS_TOKEN_EXPIRE_MINUTES=60
# Refresh token expiration time in days
REFRESH_TOKEN_EXPIRE_DAYS=30
-# celery configuration
-CELERY_BROKER_URL=redis://:difyai123456@localhost:6379/1
-
# redis configuration
REDIS_HOST=localhost
REDIS_PORT=6379
@@ -50,6 +47,9 @@ REDIS_USE_CLUSTERS=false
REDIS_CLUSTERS=
REDIS_CLUSTERS_PASSWORD=
+# celery configuration
+CELERY_BROKER_URL=redis://:difyai123456@localhost:${REDIS_PORT}/1
+
# PostgreSQL database configuration
DB_USERNAME=postgres
DB_PASSWORD=difyai123456