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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  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. # Weaviate configuration
  122. WEAVIATE_ENDPOINT=http://localhost:8080
  123. WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  124. WEAVIATE_GRPC_ENABLED=false
  125. WEAVIATE_BATCH_SIZE=100
  126. # Qdrant configuration, use `http://localhost:6333` for local mode or `https://your-qdrant-cluster-url.qdrant.io` for remote mode
  127. QDRANT_URL=http://localhost:6333
  128. QDRANT_API_KEY=difyai123456
  129. QDRANT_CLIENT_TIMEOUT=20
  130. QDRANT_GRPC_ENABLED=false
  131. QDRANT_GRPC_PORT=6334
  132. QDRANT_REPLICATION_FACTOR=1
  133. #Couchbase configuration
  134. COUCHBASE_CONNECTION_STRING=127.0.0.1
  135. COUCHBASE_USER=Administrator
  136. COUCHBASE_PASSWORD=password
  137. COUCHBASE_BUCKET_NAME=Embeddings
  138. COUCHBASE_SCOPE_NAME=_default
  139. # Milvus configuration
  140. MILVUS_URI=http://127.0.0.1:19530
  141. MILVUS_TOKEN=
  142. MILVUS_USER=root
  143. MILVUS_PASSWORD=Milvus
  144. MILVUS_ANALYZER_PARAMS=
  145. # MyScale configuration
  146. MYSCALE_HOST=127.0.0.1
  147. MYSCALE_PORT=8123
  148. MYSCALE_USER=default
  149. MYSCALE_PASSWORD=
  150. MYSCALE_DATABASE=default
  151. MYSCALE_FTS_PARAMS=
  152. # Relyt configuration
  153. RELYT_HOST=127.0.0.1
  154. RELYT_PORT=5432
  155. RELYT_USER=postgres
  156. RELYT_PASSWORD=postgres
  157. RELYT_DATABASE=postgres
  158. # Tencent configuration
  159. TENCENT_VECTOR_DB_URL=http://127.0.0.1
  160. TENCENT_VECTOR_DB_API_KEY=dify
  161. TENCENT_VECTOR_DB_TIMEOUT=30
  162. TENCENT_VECTOR_DB_USERNAME=dify
  163. TENCENT_VECTOR_DB_DATABASE=dify
  164. TENCENT_VECTOR_DB_SHARD=1
  165. TENCENT_VECTOR_DB_REPLICAS=2
  166. TENCENT_VECTOR_DB_ENABLE_HYBRID_SEARCH=false
  167. # ElasticSearch configuration
  168. ELASTICSEARCH_HOST=127.0.0.1
  169. ELASTICSEARCH_PORT=9200
  170. ELASTICSEARCH_USERNAME=elastic
  171. ELASTICSEARCH_PASSWORD=elastic
  172. # PGVECTO_RS configuration
  173. PGVECTO_RS_HOST=localhost
  174. PGVECTO_RS_PORT=5431
  175. PGVECTO_RS_USER=postgres
  176. PGVECTO_RS_PASSWORD=difyai123456
  177. PGVECTO_RS_DATABASE=postgres
  178. # PGVector configuration
  179. PGVECTOR_HOST=127.0.0.1
  180. PGVECTOR_PORT=5433
  181. PGVECTOR_USER=postgres
  182. PGVECTOR_PASSWORD=postgres
  183. PGVECTOR_DATABASE=postgres
  184. PGVECTOR_MIN_CONNECTION=1
  185. PGVECTOR_MAX_CONNECTION=5
  186. # TableStore Vector configuration
  187. TABLESTORE_ENDPOINT=https://instance-name.cn-hangzhou.ots.aliyuncs.com
  188. TABLESTORE_INSTANCE_NAME=instance-name
  189. TABLESTORE_ACCESS_KEY_ID=xxx
  190. TABLESTORE_ACCESS_KEY_SECRET=xxx
  191. # Tidb Vector configuration
  192. TIDB_VECTOR_HOST=xxx.eu-central-1.xxx.aws.tidbcloud.com
  193. TIDB_VECTOR_PORT=4000
  194. TIDB_VECTOR_USER=xxx.root
  195. TIDB_VECTOR_PASSWORD=xxxxxx
  196. TIDB_VECTOR_DATABASE=dify
  197. # Tidb on qdrant configuration
  198. TIDB_ON_QDRANT_URL=http://127.0.0.1
  199. TIDB_ON_QDRANT_API_KEY=dify
  200. TIDB_ON_QDRANT_CLIENT_TIMEOUT=20
  201. TIDB_ON_QDRANT_GRPC_ENABLED=false
  202. TIDB_ON_QDRANT_GRPC_PORT=6334
  203. TIDB_PUBLIC_KEY=dify
  204. TIDB_PRIVATE_KEY=dify
  205. TIDB_API_URL=http://127.0.0.1
  206. TIDB_IAM_API_URL=http://127.0.0.1
  207. TIDB_REGION=regions/aws-us-east-1
  208. TIDB_PROJECT_ID=dify
  209. TIDB_SPEND_LIMIT=100
  210. # Chroma configuration
  211. CHROMA_HOST=127.0.0.1
  212. CHROMA_PORT=8000
  213. CHROMA_TENANT=default_tenant
  214. CHROMA_DATABASE=default_database
  215. CHROMA_AUTH_PROVIDER=chromadb.auth.token_authn.TokenAuthenticationServerProvider
  216. CHROMA_AUTH_CREDENTIALS=difyai123456
  217. # AnalyticDB configuration
  218. ANALYTICDB_KEY_ID=your-ak
  219. ANALYTICDB_KEY_SECRET=your-sk
  220. ANALYTICDB_REGION_ID=cn-hangzhou
  221. ANALYTICDB_INSTANCE_ID=gp-ab123456
  222. ANALYTICDB_ACCOUNT=testaccount
  223. ANALYTICDB_PASSWORD=testpassword
  224. ANALYTICDB_NAMESPACE=dify
  225. ANALYTICDB_NAMESPACE_PASSWORD=difypassword
  226. ANALYTICDB_HOST=gp-test.aliyuncs.com
  227. ANALYTICDB_PORT=5432
  228. ANALYTICDB_MIN_CONNECTION=1
  229. ANALYTICDB_MAX_CONNECTION=5
  230. # OpenSearch configuration
  231. OPENSEARCH_HOST=127.0.0.1
  232. OPENSEARCH_PORT=9200
  233. OPENSEARCH_USER=admin
  234. OPENSEARCH_PASSWORD=admin
  235. OPENSEARCH_SECURE=true
  236. OPENSEARCH_VERIFY_CERTS=true
  237. # Baidu configuration
  238. BAIDU_VECTOR_DB_ENDPOINT=http://127.0.0.1:5287
  239. BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS=30000
  240. BAIDU_VECTOR_DB_ACCOUNT=root
  241. BAIDU_VECTOR_DB_API_KEY=dify
  242. BAIDU_VECTOR_DB_DATABASE=dify
  243. BAIDU_VECTOR_DB_SHARD=1
  244. BAIDU_VECTOR_DB_REPLICAS=3
  245. # Upstash configuration
  246. UPSTASH_VECTOR_URL=your-server-url
  247. UPSTASH_VECTOR_TOKEN=your-access-token
  248. # ViKingDB configuration
  249. VIKINGDB_ACCESS_KEY=your-ak
  250. VIKINGDB_SECRET_KEY=your-sk
  251. VIKINGDB_REGION=cn-shanghai
  252. VIKINGDB_HOST=api-vikingdb.xxx.volces.com
  253. VIKINGDB_SCHEMA=http
  254. VIKINGDB_CONNECTION_TIMEOUT=30
  255. VIKINGDB_SOCKET_TIMEOUT=30
  256. # Matrixone configration
  257. MATRIXONE_HOST=127.0.0.1
  258. MATRIXONE_PORT=6001
  259. MATRIXONE_USER=dump
  260. MATRIXONE_PASSWORD=111
  261. MATRIXONE_DATABASE=dify
  262. # Lindorm configuration
  263. LINDORM_URL=http://ld-*******************-proxy-search-pub.lindorm.aliyuncs.com:30070
  264. LINDORM_USERNAME=admin
  265. LINDORM_PASSWORD=admin
  266. USING_UGC_INDEX=False
  267. LINDORM_QUERY_TIMEOUT=1
  268. # OceanBase Vector configuration
  269. OCEANBASE_VECTOR_HOST=127.0.0.1
  270. OCEANBASE_VECTOR_PORT=2881
  271. OCEANBASE_VECTOR_USER=root@test
  272. OCEANBASE_VECTOR_PASSWORD=difyai123456
  273. OCEANBASE_VECTOR_DATABASE=test
  274. OCEANBASE_MEMORY_LIMIT=6G
  275. OCEANBASE_ENABLE_HYBRID_SEARCH=false
  276. # openGauss configuration
  277. OPENGAUSS_HOST=127.0.0.1
  278. OPENGAUSS_PORT=6600
  279. OPENGAUSS_USER=postgres
  280. OPENGAUSS_PASSWORD=Dify@123
  281. OPENGAUSS_DATABASE=dify
  282. OPENGAUSS_MIN_CONNECTION=1
  283. OPENGAUSS_MAX_CONNECTION=5
  284. # Upload configuration
  285. UPLOAD_FILE_SIZE_LIMIT=15
  286. UPLOAD_FILE_BATCH_LIMIT=5
  287. UPLOAD_IMAGE_FILE_SIZE_LIMIT=10
  288. UPLOAD_VIDEO_FILE_SIZE_LIMIT=100
  289. UPLOAD_AUDIO_FILE_SIZE_LIMIT=50
  290. # Model configuration
  291. MULTIMODAL_SEND_FORMAT=base64
  292. PROMPT_GENERATION_MAX_TOKENS=512
  293. CODE_GENERATION_MAX_TOKENS=1024
  294. PLUGIN_BASED_TOKEN_COUNTING_ENABLED=false
  295. # Mail configuration, support: resend, smtp, sendgrid
  296. MAIL_TYPE=
  297. # If using SendGrid, use the 'from' field for authentication if necessary.
  298. MAIL_DEFAULT_SEND_FROM=no-reply <no-reply@dify.ai>
  299. # resend configuration
  300. RESEND_API_KEY=
  301. RESEND_API_URL=https://api.resend.com
  302. # smtp configuration
  303. SMTP_SERVER=smtp.gmail.com
  304. SMTP_PORT=465
  305. SMTP_USERNAME=123
  306. SMTP_PASSWORD=abc
  307. SMTP_USE_TLS=true
  308. SMTP_OPPORTUNISTIC_TLS=false
  309. # Sendgid configuration
  310. SENDGRID_API_KEY=
  311. # Sentry configuration
  312. SENTRY_DSN=
  313. # DEBUG
  314. DEBUG=false
  315. ENABLE_REQUEST_LOGGING=False
  316. SQLALCHEMY_ECHO=false
  317. # Notion import configuration, support public and internal
  318. NOTION_INTEGRATION_TYPE=public
  319. NOTION_CLIENT_SECRET=you-client-secret
  320. NOTION_CLIENT_ID=you-client-id
  321. NOTION_INTERNAL_SECRET=you-internal-secret
  322. ETL_TYPE=dify
  323. UNSTRUCTURED_API_URL=
  324. UNSTRUCTURED_API_KEY=
  325. SCARF_NO_ANALYTICS=true
  326. #ssrf
  327. SSRF_PROXY_HTTP_URL=
  328. SSRF_PROXY_HTTPS_URL=
  329. SSRF_DEFAULT_MAX_RETRIES=3
  330. SSRF_DEFAULT_TIME_OUT=5
  331. SSRF_DEFAULT_CONNECT_TIME_OUT=5
  332. SSRF_DEFAULT_READ_TIME_OUT=5
  333. SSRF_DEFAULT_WRITE_TIME_OUT=5
  334. BATCH_UPLOAD_LIMIT=10
  335. KEYWORD_DATA_SOURCE_TYPE=database
  336. # Workflow file upload limit
  337. WORKFLOW_FILE_UPLOAD_LIMIT=10
  338. # CODE EXECUTION CONFIGURATION
  339. CODE_EXECUTION_ENDPOINT=http://127.0.0.1:8194
  340. CODE_EXECUTION_API_KEY=dify-sandbox
  341. CODE_MAX_NUMBER=9223372036854775807
  342. CODE_MIN_NUMBER=-9223372036854775808
  343. CODE_MAX_STRING_LENGTH=80000
  344. TEMPLATE_TRANSFORM_MAX_LENGTH=80000
  345. CODE_MAX_STRING_ARRAY_LENGTH=30
  346. CODE_MAX_OBJECT_ARRAY_LENGTH=30
  347. CODE_MAX_NUMBER_ARRAY_LENGTH=1000
  348. # API Tool configuration
  349. API_TOOL_DEFAULT_CONNECT_TIMEOUT=10
  350. API_TOOL_DEFAULT_READ_TIMEOUT=60
  351. # HTTP Node configuration
  352. HTTP_REQUEST_MAX_CONNECT_TIMEOUT=300
  353. HTTP_REQUEST_MAX_READ_TIMEOUT=600
  354. HTTP_REQUEST_MAX_WRITE_TIMEOUT=600
  355. HTTP_REQUEST_NODE_MAX_BINARY_SIZE=10485760
  356. HTTP_REQUEST_NODE_MAX_TEXT_SIZE=1048576
  357. HTTP_REQUEST_NODE_SSL_VERIFY=True
  358. # Respect X-* headers to redirect clients
  359. RESPECT_XFORWARD_HEADERS_ENABLED=false
  360. # Log file path
  361. LOG_FILE=
  362. # Log file max size, the unit is MB
  363. LOG_FILE_MAX_SIZE=20
  364. # Log file max backup count
  365. LOG_FILE_BACKUP_COUNT=5
  366. # Log dateformat
  367. LOG_DATEFORMAT=%Y-%m-%d %H:%M:%S
  368. # Log Timezone
  369. LOG_TZ=UTC
  370. # Log format
  371. LOG_FORMAT=%(asctime)s,%(msecs)d %(levelname)-2s [%(filename)s:%(lineno)d] %(req_id)s %(message)s
  372. # Indexing configuration
  373. INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH=4000
  374. # Workflow runtime configuration
  375. WORKFLOW_MAX_EXECUTION_STEPS=500
  376. WORKFLOW_MAX_EXECUTION_TIME=1200
  377. WORKFLOW_CALL_MAX_DEPTH=5
  378. WORKFLOW_PARALLEL_DEPTH_LIMIT=3
  379. MAX_VARIABLE_SIZE=204800
  380. # Workflow storage configuration
  381. # Options: rdbms, hybrid
  382. # rdbms: Use only the relational database (default)
  383. # hybrid: Save new data to object storage, read from both object storage and RDBMS
  384. WORKFLOW_NODE_EXECUTION_STORAGE=rdbms
  385. # Repository configuration
  386. # Core workflow execution repository implementation
  387. CORE_WORKFLOW_EXECUTION_REPOSITORY=core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository
  388. # Core workflow node execution repository implementation
  389. CORE_WORKFLOW_NODE_EXECUTION_REPOSITORY=core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository
  390. # API workflow node execution repository implementation
  391. API_WORKFLOW_NODE_EXECUTION_REPOSITORY=repositories.sqlalchemy_api_workflow_node_execution_repository.DifyAPISQLAlchemyWorkflowNodeExecutionRepository
  392. # API workflow run repository implementation
  393. API_WORKFLOW_RUN_REPOSITORY=repositories.sqlalchemy_api_workflow_run_repository.DifyAPISQLAlchemyWorkflowRunRepository
  394. # App configuration
  395. APP_MAX_EXECUTION_TIME=1200
  396. APP_MAX_ACTIVE_REQUESTS=0
  397. # Celery beat configuration
  398. CELERY_BEAT_SCHEDULER_TIME=1
  399. # Position configuration
  400. POSITION_TOOL_PINS=
  401. POSITION_TOOL_INCLUDES=
  402. POSITION_TOOL_EXCLUDES=
  403. POSITION_PROVIDER_PINS=
  404. POSITION_PROVIDER_INCLUDES=
  405. POSITION_PROVIDER_EXCLUDES=
  406. # Plugin configuration
  407. PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi
  408. PLUGIN_DAEMON_URL=http://127.0.0.1:5002
  409. PLUGIN_REMOTE_INSTALL_PORT=5003
  410. PLUGIN_REMOTE_INSTALL_HOST=localhost
  411. PLUGIN_MAX_PACKAGE_SIZE=15728640
  412. INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1
  413. # Marketplace configuration
  414. MARKETPLACE_ENABLED=true
  415. MARKETPLACE_API_URL=https://marketplace.dify.ai
  416. # Endpoint configuration
  417. ENDPOINT_URL_TEMPLATE=http://localhost:5002/e/{hook_id}
  418. # Reset password token expiry minutes
  419. RESET_PASSWORD_TOKEN_EXPIRY_MINUTES=5
  420. CHANGE_EMAIL_TOKEN_EXPIRY_MINUTES=5
  421. OWNER_TRANSFER_TOKEN_EXPIRY_MINUTES=5
  422. CREATE_TIDB_SERVICE_JOB_ENABLED=false
  423. # Maximum number of submitted thread count in a ThreadPool for parallel node execution
  424. MAX_SUBMIT_COUNT=100
  425. # Lockout duration in seconds
  426. LOGIN_LOCKOUT_DURATION=86400
  427. # Enable OpenTelemetry
  428. ENABLE_OTEL=false
  429. OTLP_TRACE_ENDPOINT=
  430. OTLP_METRIC_ENDPOINT=
  431. OTLP_BASE_ENDPOINT=http://localhost:4318
  432. OTLP_API_KEY=
  433. OTEL_EXPORTER_OTLP_PROTOCOL=
  434. OTEL_EXPORTER_TYPE=otlp
  435. OTEL_SAMPLING_RATE=0.1
  436. OTEL_BATCH_EXPORT_SCHEDULE_DELAY=5000
  437. OTEL_MAX_QUEUE_SIZE=2048
  438. OTEL_MAX_EXPORT_BATCH_SIZE=512
  439. OTEL_METRIC_EXPORT_INTERVAL=60000
  440. OTEL_BATCH_EXPORT_TIMEOUT=10000
  441. OTEL_METRIC_EXPORT_TIMEOUT=30000
  442. # Prevent Clickjacking
  443. ALLOW_EMBED=false
  444. # Dataset queue monitor configuration
  445. QUEUE_MONITOR_THRESHOLD=200
  446. # You can configure multiple ones, separated by commas. eg: test1@dify.ai,test2@dify.ai
  447. QUEUE_MONITOR_ALERT_EMAILS=
  448. # Monitor interval in minutes, default is 30 minutes
  449. QUEUE_MONITOR_INTERVAL=30