You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.env.example 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. # Your App secret key will be used for securely signing the session cookie
  2. # Make sure you are changing this key for your deployment with a strong key.
  3. # You can generate a strong key using `openssl rand -base64 42`.
  4. # Alternatively you can set it with `SECRET_KEY` environment variable.
  5. SECRET_KEY=
  6. # Console API base URL
  7. CONSOLE_API_URL=http://localhost:5001
  8. CONSOLE_WEB_URL=http://localhost:3000
  9. # Service API base URL
  10. SERVICE_API_URL=http://localhost:5001
  11. # Web APP base URL
  12. APP_WEB_URL=http://localhost:3000
  13. # Files URL
  14. FILES_URL=http://localhost:5001
  15. # INTERNAL_FILES_URL is used for plugin daemon communication within Docker network.
  16. # Set this to the internal Docker service URL for proper plugin file access.
  17. # Example: INTERNAL_FILES_URL=http://api:5001
  18. INTERNAL_FILES_URL=http://127.0.0.1:5001
  19. # The time in seconds after the signature is rejected
  20. FILES_ACCESS_TIMEOUT=300
  21. # Access token expiration time in minutes
  22. ACCESS_TOKEN_EXPIRE_MINUTES=60
  23. # Refresh token expiration time in days
  24. REFRESH_TOKEN_EXPIRE_DAYS=30
  25. # redis configuration
  26. REDIS_HOST=localhost
  27. REDIS_PORT=6379
  28. REDIS_USERNAME=
  29. REDIS_PASSWORD=difyai123456
  30. REDIS_USE_SSL=false
  31. REDIS_DB=0
  32. # redis Sentinel configuration.
  33. REDIS_USE_SENTINEL=false
  34. REDIS_SENTINELS=
  35. REDIS_SENTINEL_SERVICE_NAME=
  36. REDIS_SENTINEL_USERNAME=
  37. REDIS_SENTINEL_PASSWORD=
  38. REDIS_SENTINEL_SOCKET_TIMEOUT=0.1
  39. # redis Cluster configuration.
  40. REDIS_USE_CLUSTERS=false
  41. REDIS_CLUSTERS=
  42. REDIS_CLUSTERS_PASSWORD=
  43. # celery configuration
  44. CELERY_BROKER_URL=redis://:difyai123456@localhost:${REDIS_PORT}/1
  45. CELERY_BACKEND=redis
  46. # PostgreSQL database configuration
  47. DB_USERNAME=postgres
  48. DB_PASSWORD=difyai123456
  49. DB_HOST=localhost
  50. DB_PORT=5432
  51. DB_DATABASE=dify
  52. # Storage configuration
  53. # use for store upload files, private keys...
  54. # storage type: opendal, s3, aliyun-oss, azure-blob, baidu-obs, google-storage, huawei-obs, oci-storage, tencent-cos, volcengine-tos, supabase
  55. STORAGE_TYPE=opendal
  56. # Apache OpenDAL storage configuration, refer to https://github.com/apache/opendal
  57. OPENDAL_SCHEME=fs
  58. OPENDAL_FS_ROOT=storage
  59. # S3 Storage configuration
  60. S3_USE_AWS_MANAGED_IAM=false
  61. S3_ENDPOINT=https://your-bucket-name.storage.s3.cloudflare.com
  62. S3_BUCKET_NAME=your-bucket-name
  63. S3_ACCESS_KEY=your-access-key
  64. S3_SECRET_KEY=your-secret-key
  65. S3_REGION=your-region
  66. # Azure Blob Storage configuration
  67. AZURE_BLOB_ACCOUNT_NAME=your-account-name
  68. AZURE_BLOB_ACCOUNT_KEY=your-account-key
  69. AZURE_BLOB_CONTAINER_NAME=your-container-name
  70. AZURE_BLOB_ACCOUNT_URL=https://<your_account_name>.blob.core.windows.net
  71. # Aliyun oss Storage configuration
  72. ALIYUN_OSS_BUCKET_NAME=your-bucket-name
  73. ALIYUN_OSS_ACCESS_KEY=your-access-key
  74. ALIYUN_OSS_SECRET_KEY=your-secret-key
  75. ALIYUN_OSS_ENDPOINT=your-endpoint
  76. ALIYUN_OSS_AUTH_VERSION=v1
  77. ALIYUN_OSS_REGION=your-region
  78. # Don't start with '/'. OSS doesn't support leading slash in object names.
  79. ALIYUN_OSS_PATH=your-path
  80. # Google Storage configuration
  81. GOOGLE_STORAGE_BUCKET_NAME=your-bucket-name
  82. GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64=your-google-service-account-json-base64-string
  83. # Tencent COS Storage configuration
  84. TENCENT_COS_BUCKET_NAME=your-bucket-name
  85. TENCENT_COS_SECRET_KEY=your-secret-key
  86. TENCENT_COS_SECRET_ID=your-secret-id
  87. TENCENT_COS_REGION=your-region
  88. TENCENT_COS_SCHEME=your-scheme
  89. # Huawei OBS Storage Configuration
  90. HUAWEI_OBS_BUCKET_NAME=your-bucket-name
  91. HUAWEI_OBS_SECRET_KEY=your-secret-key
  92. HUAWEI_OBS_ACCESS_KEY=your-access-key
  93. HUAWEI_OBS_SERVER=your-server-url
  94. # Baidu OBS Storage Configuration
  95. BAIDU_OBS_BUCKET_NAME=your-bucket-name
  96. BAIDU_OBS_SECRET_KEY=your-secret-key
  97. BAIDU_OBS_ACCESS_KEY=your-access-key
  98. BAIDU_OBS_ENDPOINT=your-server-url
  99. # OCI Storage configuration
  100. OCI_ENDPOINT=your-endpoint
  101. OCI_BUCKET_NAME=your-bucket-name
  102. OCI_ACCESS_KEY=your-access-key
  103. OCI_SECRET_KEY=your-secret-key
  104. OCI_REGION=your-region
  105. # Volcengine tos Storage configuration
  106. VOLCENGINE_TOS_ENDPOINT=your-endpoint
  107. VOLCENGINE_TOS_BUCKET_NAME=your-bucket-name
  108. VOLCENGINE_TOS_ACCESS_KEY=your-access-key
  109. VOLCENGINE_TOS_SECRET_KEY=your-secret-key
  110. VOLCENGINE_TOS_REGION=your-region
  111. # Supabase Storage Configuration
  112. SUPABASE_BUCKET_NAME=your-bucket-name
  113. SUPABASE_API_KEY=your-access-key
  114. SUPABASE_URL=your-server-url
  115. # CORS configuration
  116. WEB_API_CORS_ALLOW_ORIGINS=http://localhost:3000,*
  117. CONSOLE_CORS_ALLOW_ORIGINS=http://localhost:3000,*
  118. # Vector database configuration
  119. # Supported values are `weaviate`, `qdrant`, `milvus`, `myscale`, `relyt`, `pgvector`, `pgvecto-rs`, `chroma`, `opensearch`, `oracle`, `tencent`, `elasticsearch`, `elasticsearch-ja`, `analyticdb`, `couchbase`, `vikingdb`, `oceanbase`, `opengauss`, `tablestore`,`vastbase`,`tidb`,`tidb_on_qdrant`,`baidu`,`lindorm`,`huawei_cloud`,`upstash`, `matrixone`.
  120. VECTOR_STORE=weaviate
  121. # Prefix used to create collection name in vector database
  122. VECTOR_INDEX_NAME_PREFIX=Vector_index
  123. # Weaviate configuration
  124. WEAVIATE_ENDPOINT=http://localhost:8080
  125. WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  126. WEAVIATE_GRPC_ENABLED=false
  127. WEAVIATE_BATCH_SIZE=100
  128. # Qdrant configuration, use `http://localhost:6333` for local mode or `https://your-qdrant-cluster-url.qdrant.io` for remote mode
  129. QDRANT_URL=http://localhost:6333
  130. QDRANT_API_KEY=difyai123456
  131. QDRANT_CLIENT_TIMEOUT=20
  132. QDRANT_GRPC_ENABLED=false
  133. QDRANT_GRPC_PORT=6334
  134. QDRANT_REPLICATION_FACTOR=1
  135. #Couchbase configuration
  136. COUCHBASE_CONNECTION_STRING=127.0.0.1
  137. COUCHBASE_USER=Administrator
  138. COUCHBASE_PASSWORD=password
  139. COUCHBASE_BUCKET_NAME=Embeddings
  140. COUCHBASE_SCOPE_NAME=_default
  141. # Milvus configuration
  142. MILVUS_URI=http://127.0.0.1:19530
  143. MILVUS_TOKEN=
  144. MILVUS_USER=root
  145. MILVUS_PASSWORD=Milvus
  146. MILVUS_ANALYZER_PARAMS=
  147. # MyScale configuration
  148. MYSCALE_HOST=127.0.0.1
  149. MYSCALE_PORT=8123
  150. MYSCALE_USER=default
  151. MYSCALE_PASSWORD=
  152. MYSCALE_DATABASE=default
  153. MYSCALE_FTS_PARAMS=
  154. # Relyt configuration
  155. RELYT_HOST=127.0.0.1
  156. RELYT_PORT=5432
  157. RELYT_USER=postgres
  158. RELYT_PASSWORD=postgres
  159. RELYT_DATABASE=postgres
  160. # Tencent configuration
  161. TENCENT_VECTOR_DB_URL=http://127.0.0.1
  162. TENCENT_VECTOR_DB_API_KEY=dify
  163. TENCENT_VECTOR_DB_TIMEOUT=30
  164. TENCENT_VECTOR_DB_USERNAME=dify
  165. TENCENT_VECTOR_DB_DATABASE=dify
  166. TENCENT_VECTOR_DB_SHARD=1
  167. TENCENT_VECTOR_DB_REPLICAS=2
  168. TENCENT_VECTOR_DB_ENABLE_HYBRID_SEARCH=false
  169. # ElasticSearch configuration
  170. ELASTICSEARCH_HOST=127.0.0.1
  171. ELASTICSEARCH_PORT=9200
  172. ELASTICSEARCH_USERNAME=elastic
  173. ELASTICSEARCH_PASSWORD=elastic
  174. # PGVECTO_RS configuration
  175. PGVECTO_RS_HOST=localhost
  176. PGVECTO_RS_PORT=5431
  177. PGVECTO_RS_USER=postgres
  178. PGVECTO_RS_PASSWORD=difyai123456
  179. PGVECTO_RS_DATABASE=postgres
  180. # PGVector configuration
  181. PGVECTOR_HOST=127.0.0.1
  182. PGVECTOR_PORT=5433
  183. PGVECTOR_USER=postgres
  184. PGVECTOR_PASSWORD=postgres
  185. PGVECTOR_DATABASE=postgres
  186. PGVECTOR_MIN_CONNECTION=1
  187. PGVECTOR_MAX_CONNECTION=5
  188. # TableStore Vector configuration
  189. TABLESTORE_ENDPOINT=https://instance-name.cn-hangzhou.ots.aliyuncs.com
  190. TABLESTORE_INSTANCE_NAME=instance-name
  191. TABLESTORE_ACCESS_KEY_ID=xxx
  192. TABLESTORE_ACCESS_KEY_SECRET=xxx
  193. # Tidb Vector configuration
  194. TIDB_VECTOR_HOST=xxx.eu-central-1.xxx.aws.tidbcloud.com
  195. TIDB_VECTOR_PORT=4000
  196. TIDB_VECTOR_USER=xxx.root
  197. TIDB_VECTOR_PASSWORD=xxxxxx
  198. TIDB_VECTOR_DATABASE=dify
  199. # Tidb on qdrant configuration
  200. TIDB_ON_QDRANT_URL=http://127.0.0.1
  201. TIDB_ON_QDRANT_API_KEY=dify
  202. TIDB_ON_QDRANT_CLIENT_TIMEOUT=20
  203. TIDB_ON_QDRANT_GRPC_ENABLED=false
  204. TIDB_ON_QDRANT_GRPC_PORT=6334
  205. TIDB_PUBLIC_KEY=dify
  206. TIDB_PRIVATE_KEY=dify
  207. TIDB_API_URL=http://127.0.0.1
  208. TIDB_IAM_API_URL=http://127.0.0.1
  209. TIDB_REGION=regions/aws-us-east-1
  210. TIDB_PROJECT_ID=dify
  211. TIDB_SPEND_LIMIT=100
  212. # Chroma configuration
  213. CHROMA_HOST=127.0.0.1
  214. CHROMA_PORT=8000
  215. CHROMA_TENANT=default_tenant
  216. CHROMA_DATABASE=default_database
  217. CHROMA_AUTH_PROVIDER=chromadb.auth.token_authn.TokenAuthenticationServerProvider
  218. CHROMA_AUTH_CREDENTIALS=difyai123456
  219. # AnalyticDB configuration
  220. ANALYTICDB_KEY_ID=your-ak
  221. ANALYTICDB_KEY_SECRET=your-sk
  222. ANALYTICDB_REGION_ID=cn-hangzhou
  223. ANALYTICDB_INSTANCE_ID=gp-ab123456
  224. ANALYTICDB_ACCOUNT=testaccount
  225. ANALYTICDB_PASSWORD=testpassword
  226. ANALYTICDB_NAMESPACE=dify
  227. ANALYTICDB_NAMESPACE_PASSWORD=difypassword
  228. ANALYTICDB_HOST=gp-test.aliyuncs.com
  229. ANALYTICDB_PORT=5432
  230. ANALYTICDB_MIN_CONNECTION=1
  231. ANALYTICDB_MAX_CONNECTION=5
  232. # OpenSearch configuration
  233. OPENSEARCH_HOST=127.0.0.1
  234. OPENSEARCH_PORT=9200
  235. OPENSEARCH_USER=admin
  236. OPENSEARCH_PASSWORD=admin
  237. OPENSEARCH_SECURE=true
  238. OPENSEARCH_VERIFY_CERTS=true
  239. # Baidu configuration
  240. BAIDU_VECTOR_DB_ENDPOINT=http://127.0.0.1:5287
  241. BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS=30000
  242. BAIDU_VECTOR_DB_ACCOUNT=root
  243. BAIDU_VECTOR_DB_API_KEY=dify
  244. BAIDU_VECTOR_DB_DATABASE=dify
  245. BAIDU_VECTOR_DB_SHARD=1
  246. BAIDU_VECTOR_DB_REPLICAS=3
  247. # Upstash configuration
  248. UPSTASH_VECTOR_URL=your-server-url
  249. UPSTASH_VECTOR_TOKEN=your-access-token
  250. # ViKingDB configuration
  251. VIKINGDB_ACCESS_KEY=your-ak
  252. VIKINGDB_SECRET_KEY=your-sk
  253. VIKINGDB_REGION=cn-shanghai
  254. VIKINGDB_HOST=api-vikingdb.xxx.volces.com
  255. VIKINGDB_SCHEMA=http
  256. VIKINGDB_CONNECTION_TIMEOUT=30
  257. VIKINGDB_SOCKET_TIMEOUT=30
  258. # Matrixone configration
  259. MATRIXONE_HOST=127.0.0.1
  260. MATRIXONE_PORT=6001
  261. MATRIXONE_USER=dump
  262. MATRIXONE_PASSWORD=111
  263. MATRIXONE_DATABASE=dify
  264. # Lindorm configuration
  265. LINDORM_URL=http://ld-*******************-proxy-search-pub.lindorm.aliyuncs.com:30070
  266. LINDORM_USERNAME=admin
  267. LINDORM_PASSWORD=admin
  268. USING_UGC_INDEX=False
  269. LINDORM_QUERY_TIMEOUT=1
  270. # OceanBase Vector configuration
  271. OCEANBASE_VECTOR_HOST=127.0.0.1
  272. OCEANBASE_VECTOR_PORT=2881
  273. OCEANBASE_VECTOR_USER=root@test
  274. OCEANBASE_VECTOR_PASSWORD=difyai123456
  275. OCEANBASE_VECTOR_DATABASE=test
  276. OCEANBASE_MEMORY_LIMIT=6G
  277. OCEANBASE_ENABLE_HYBRID_SEARCH=false
  278. # openGauss configuration
  279. OPENGAUSS_HOST=127.0.0.1
  280. OPENGAUSS_PORT=6600
  281. OPENGAUSS_USER=postgres
  282. OPENGAUSS_PASSWORD=Dify@123
  283. OPENGAUSS_DATABASE=dify
  284. OPENGAUSS_MIN_CONNECTION=1
  285. OPENGAUSS_MAX_CONNECTION=5
  286. # Upload configuration
  287. UPLOAD_FILE_SIZE_LIMIT=15
  288. UPLOAD_FILE_BATCH_LIMIT=5
  289. UPLOAD_IMAGE_FILE_SIZE_LIMIT=10
  290. UPLOAD_VIDEO_FILE_SIZE_LIMIT=100
  291. UPLOAD_AUDIO_FILE_SIZE_LIMIT=50
  292. # Model configuration
  293. MULTIMODAL_SEND_FORMAT=base64
  294. PROMPT_GENERATION_MAX_TOKENS=512
  295. CODE_GENERATION_MAX_TOKENS=1024
  296. PLUGIN_BASED_TOKEN_COUNTING_ENABLED=false
  297. # Mail configuration, support: resend, smtp, sendgrid
  298. MAIL_TYPE=
  299. # If using SendGrid, use the 'from' field for authentication if necessary.
  300. MAIL_DEFAULT_SEND_FROM=no-reply <no-reply@dify.ai>
  301. # resend configuration
  302. RESEND_API_KEY=
  303. RESEND_API_URL=https://api.resend.com
  304. # smtp configuration
  305. SMTP_SERVER=smtp.gmail.com
  306. SMTP_PORT=465
  307. SMTP_USERNAME=123
  308. SMTP_PASSWORD=abc
  309. SMTP_USE_TLS=true
  310. SMTP_OPPORTUNISTIC_TLS=false
  311. # Sendgid configuration
  312. SENDGRID_API_KEY=
  313. # Sentry configuration
  314. SENTRY_DSN=
  315. # DEBUG
  316. DEBUG=false
  317. ENABLE_REQUEST_LOGGING=False
  318. SQLALCHEMY_ECHO=false
  319. # Notion import configuration, support public and internal
  320. NOTION_INTEGRATION_TYPE=public
  321. NOTION_CLIENT_SECRET=you-client-secret
  322. NOTION_CLIENT_ID=you-client-id
  323. NOTION_INTERNAL_SECRET=you-internal-secret
  324. ETL_TYPE=dify
  325. UNSTRUCTURED_API_URL=
  326. UNSTRUCTURED_API_KEY=
  327. SCARF_NO_ANALYTICS=true
  328. #ssrf
  329. SSRF_PROXY_HTTP_URL=
  330. SSRF_PROXY_HTTPS_URL=
  331. SSRF_DEFAULT_MAX_RETRIES=3
  332. SSRF_DEFAULT_TIME_OUT=5
  333. SSRF_DEFAULT_CONNECT_TIME_OUT=5
  334. SSRF_DEFAULT_READ_TIME_OUT=5
  335. SSRF_DEFAULT_WRITE_TIME_OUT=5
  336. BATCH_UPLOAD_LIMIT=10
  337. KEYWORD_DATA_SOURCE_TYPE=database
  338. # Workflow file upload limit
  339. WORKFLOW_FILE_UPLOAD_LIMIT=10
  340. # CODE EXECUTION CONFIGURATION
  341. CODE_EXECUTION_ENDPOINT=http://127.0.0.1:8194
  342. CODE_EXECUTION_API_KEY=dify-sandbox
  343. CODE_MAX_NUMBER=9223372036854775807
  344. CODE_MIN_NUMBER=-9223372036854775808
  345. CODE_MAX_STRING_LENGTH=80000
  346. TEMPLATE_TRANSFORM_MAX_LENGTH=80000
  347. CODE_MAX_STRING_ARRAY_LENGTH=30
  348. CODE_MAX_OBJECT_ARRAY_LENGTH=30
  349. CODE_MAX_NUMBER_ARRAY_LENGTH=1000
  350. # API Tool configuration
  351. API_TOOL_DEFAULT_CONNECT_TIMEOUT=10
  352. API_TOOL_DEFAULT_READ_TIMEOUT=60
  353. # HTTP Node configuration
  354. HTTP_REQUEST_MAX_CONNECT_TIMEOUT=300
  355. HTTP_REQUEST_MAX_READ_TIMEOUT=600
  356. HTTP_REQUEST_MAX_WRITE_TIMEOUT=600
  357. HTTP_REQUEST_NODE_MAX_BINARY_SIZE=10485760
  358. HTTP_REQUEST_NODE_MAX_TEXT_SIZE=1048576
  359. HTTP_REQUEST_NODE_SSL_VERIFY=True
  360. # Respect X-* headers to redirect clients
  361. RESPECT_XFORWARD_HEADERS_ENABLED=false
  362. # Log file path
  363. LOG_FILE=
  364. # Log file max size, the unit is MB
  365. LOG_FILE_MAX_SIZE=20
  366. # Log file max backup count
  367. LOG_FILE_BACKUP_COUNT=5
  368. # Log dateformat
  369. LOG_DATEFORMAT=%Y-%m-%d %H:%M:%S
  370. # Log Timezone
  371. LOG_TZ=UTC
  372. # Log format
  373. LOG_FORMAT=%(asctime)s,%(msecs)d %(levelname)-2s [%(filename)s:%(lineno)d] %(req_id)s %(message)s
  374. # Indexing configuration
  375. INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH=4000
  376. # Workflow runtime configuration
  377. WORKFLOW_MAX_EXECUTION_STEPS=500
  378. WORKFLOW_MAX_EXECUTION_TIME=1200
  379. WORKFLOW_CALL_MAX_DEPTH=5
  380. WORKFLOW_PARALLEL_DEPTH_LIMIT=3
  381. MAX_VARIABLE_SIZE=204800
  382. # Workflow storage configuration
  383. # Options: rdbms, hybrid
  384. # rdbms: Use only the relational database (default)
  385. # hybrid: Save new data to object storage, read from both object storage and RDBMS
  386. WORKFLOW_NODE_EXECUTION_STORAGE=rdbms
  387. # Repository configuration
  388. # Core workflow execution repository implementation
  389. CORE_WORKFLOW_EXECUTION_REPOSITORY=core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository
  390. # Core workflow node execution repository implementation
  391. CORE_WORKFLOW_NODE_EXECUTION_REPOSITORY=core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository
  392. # API workflow node execution repository implementation
  393. API_WORKFLOW_NODE_EXECUTION_REPOSITORY=repositories.sqlalchemy_api_workflow_node_execution_repository.DifyAPISQLAlchemyWorkflowNodeExecutionRepository
  394. # API workflow run repository implementation
  395. API_WORKFLOW_RUN_REPOSITORY=repositories.sqlalchemy_api_workflow_run_repository.DifyAPISQLAlchemyWorkflowRunRepository
  396. # App configuration
  397. APP_MAX_EXECUTION_TIME=1200
  398. APP_MAX_ACTIVE_REQUESTS=0
  399. # Celery beat configuration
  400. CELERY_BEAT_SCHEDULER_TIME=1
  401. # Celery schedule tasks configuration
  402. ENABLE_CLEAN_EMBEDDING_CACHE_TASK=false
  403. ENABLE_CLEAN_UNUSED_DATASETS_TASK=false
  404. ENABLE_CREATE_TIDB_SERVERLESS_TASK=false
  405. ENABLE_UPDATE_TIDB_SERVERLESS_STATUS_TASK=false
  406. ENABLE_CLEAN_MESSAGES=false
  407. ENABLE_MAIL_CLEAN_DOCUMENT_NOTIFY_TASK=false
  408. ENABLE_DATASETS_QUEUE_MONITOR=false
  409. ENABLE_CHECK_UPGRADABLE_PLUGIN_TASK=true
  410. # Position configuration
  411. POSITION_TOOL_PINS=
  412. POSITION_TOOL_INCLUDES=
  413. POSITION_TOOL_EXCLUDES=
  414. POSITION_PROVIDER_PINS=
  415. POSITION_PROVIDER_INCLUDES=
  416. POSITION_PROVIDER_EXCLUDES=
  417. # Plugin configuration
  418. PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi
  419. PLUGIN_DAEMON_URL=http://127.0.0.1:5002
  420. PLUGIN_REMOTE_INSTALL_PORT=5003
  421. PLUGIN_REMOTE_INSTALL_HOST=localhost
  422. PLUGIN_MAX_PACKAGE_SIZE=15728640
  423. INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1
  424. # Marketplace configuration
  425. MARKETPLACE_ENABLED=true
  426. MARKETPLACE_API_URL=https://marketplace.dify.ai
  427. # Endpoint configuration
  428. ENDPOINT_URL_TEMPLATE=http://localhost:5002/e/{hook_id}
  429. # Reset password token expiry minutes
  430. RESET_PASSWORD_TOKEN_EXPIRY_MINUTES=5
  431. CHANGE_EMAIL_TOKEN_EXPIRY_MINUTES=5
  432. OWNER_TRANSFER_TOKEN_EXPIRY_MINUTES=5
  433. CREATE_TIDB_SERVICE_JOB_ENABLED=false
  434. # Maximum number of submitted thread count in a ThreadPool for parallel node execution
  435. MAX_SUBMIT_COUNT=100
  436. # Lockout duration in seconds
  437. LOGIN_LOCKOUT_DURATION=86400
  438. # Enable OpenTelemetry
  439. ENABLE_OTEL=false
  440. OTLP_TRACE_ENDPOINT=
  441. OTLP_METRIC_ENDPOINT=
  442. OTLP_BASE_ENDPOINT=http://localhost:4318
  443. OTLP_API_KEY=
  444. OTEL_EXPORTER_OTLP_PROTOCOL=
  445. OTEL_EXPORTER_TYPE=otlp
  446. OTEL_SAMPLING_RATE=0.1
  447. OTEL_BATCH_EXPORT_SCHEDULE_DELAY=5000
  448. OTEL_MAX_QUEUE_SIZE=2048
  449. OTEL_MAX_EXPORT_BATCH_SIZE=512
  450. OTEL_METRIC_EXPORT_INTERVAL=60000
  451. OTEL_BATCH_EXPORT_TIMEOUT=10000
  452. OTEL_METRIC_EXPORT_TIMEOUT=30000
  453. # Prevent Clickjacking
  454. ALLOW_EMBED=false
  455. # Dataset queue monitor configuration
  456. QUEUE_MONITOR_THRESHOLD=200
  457. # You can configure multiple ones, separated by commas. eg: test1@dify.ai,test2@dify.ai
  458. QUEUE_MONITOR_ALERT_EMAILS=
  459. # Monitor interval in minutes, default is 30 minutes
  460. QUEUE_MONITOR_INTERVAL=30