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

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