From eb1be3b7e20491aebfd8fb308ca3efbde9d850a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=90=E7=B2=92=20Yanli?= Date: Wed, 13 May 2026 04:42:48 +0800 Subject: [PATCH] add dify-agent env example --- dify-agent/.example.env | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 dify-agent/.example.env diff --git a/dify-agent/.example.env b/dify-agent/.example.env new file mode 100644 index 0000000000..679a467488 --- /dev/null +++ b/dify-agent/.example.env @@ -0,0 +1,37 @@ +# Dify Agent run server settings template. +# Mirrors dify_agent.server.settings.ServerSettings with the DIFY_AGENT_ prefix. +# This template intentionally covers the current run-server settings only. + +# Redis +# Redis connection URL for run records and per-run event streams. +DIFY_AGENT_REDIS_URL=redis://localhost:6379/0 +# Prefix for Redis run-record and event-stream keys. +DIFY_AGENT_REDIS_PREFIX=dify-agent + +# Shutdown and retention +# Seconds to wait for active local runs during graceful shutdown before cancellation. +DIFY_AGENT_SHUTDOWN_GRACE_SECONDS=30 +# Seconds to retain Redis run records and per-run event streams (default: 3 days). +DIFY_AGENT_RUN_RETENTION_SECONDS=259200 + +# Plugin daemon +# Base URL for the Dify plugin daemon used by local runs. +DIFY_AGENT_PLUGIN_DAEMON_URL=http://localhost:5002 +# API key sent to the Dify plugin daemon. +DIFY_AGENT_PLUGIN_DAEMON_API_KEY= + +# Shared plugin-daemon HTTP client timeouts and limits. +# Plugin-daemon HTTP connect timeout in seconds. +DIFY_AGENT_PLUGIN_DAEMON_CONNECT_TIMEOUT=10 +# Plugin-daemon HTTP read timeout in seconds. +DIFY_AGENT_PLUGIN_DAEMON_READ_TIMEOUT=600 +# Plugin-daemon HTTP write timeout in seconds. +DIFY_AGENT_PLUGIN_DAEMON_WRITE_TIMEOUT=30 +# Plugin-daemon HTTP connection-pool wait timeout in seconds. +DIFY_AGENT_PLUGIN_DAEMON_POOL_TIMEOUT=10 +# Maximum total plugin-daemon HTTP connections. +DIFY_AGENT_PLUGIN_DAEMON_MAX_CONNECTIONS=100 +# Maximum idle keep-alive plugin-daemon HTTP connections. +DIFY_AGENT_PLUGIN_DAEMON_MAX_KEEPALIVE_CONNECTIONS=20 +# Keep-alive expiry in seconds for idle plugin-daemon HTTP connections. +DIFY_AGENT_PLUGIN_DAEMON_KEEPALIVE_EXPIRY=30