@@ -127,7 +127,7 @@ SERVER_WORKER_AMOUNT=
127
127
# Defaults to gevent. If using windows, it can be switched to sync or solo.
128
128
SERVER_WORKER_CLASS =
129
129
130
- # Similar to SERVER_WORKER_CLASS. Default is gevent.
130
+ # Similar to SERVER_WORKER_CLASS.
131
131
# If using windows, it can be switched to sync or solo.
132
132
CELERY_WORKER_CLASS =
133
133
@@ -227,6 +227,7 @@ REDIS_PORT=6379
227
227
REDIS_USERNAME =
228
228
REDIS_PASSWORD = difyai123456
229
229
REDIS_USE_SSL = false
230
+ REDIS_DB = 0
230
231
231
232
# Whether to use Redis Sentinel mode.
232
233
# If set to true, the application will automatically discover and connect to the master node through Sentinel.
@@ -281,8 +282,6 @@ CONSOLE_CORS_ALLOW_ORIGINS=*
281
282
# ------------------------------
282
283
283
284
# The type of storage to use for storing user files.
284
- # Supported values are `opendal` , `s3` , `azure-blob` , `google-storage`, `tencent-cos`, `huawei-obs`, `volcengine-tos`, `baidu-obs`, `supabase`
285
- # Default: `opendal`
286
285
STORAGE_TYPE = opendal
287
286
288
287
# Apache OpenDAL Configuration, refer to https://github.com/apache/opendal
@@ -292,38 +291,30 @@ OPENDAL_SCHEME=fs
292
291
OPENDAL_FS_ROOT = storage
293
292
294
293
# S3 Configuration
295
- # Whether to use AWS managed IAM roles for authenticating with the S3 service.
296
- # If set to false, the access key and secret key must be provided.
297
- S3_USE_AWS_MANAGED_IAM = false
298
- # The endpoint of the S3 service.
294
+ #
299
295
S3_ENDPOINT =
300
- # The region of the S3 service.
301
296
S3_REGION = us-east-1
302
- # The name of the S3 bucket to use for storing files.
303
297
S3_BUCKET_NAME = difyai
304
- # The access key to use for authenticating with the S3 service.
305
298
S3_ACCESS_KEY =
306
- # The secret key to use for authenticating with the S3 service.
307
299
S3_SECRET_KEY =
300
+ # Whether to use AWS managed IAM roles for authenticating with the S3 service.
301
+ # If set to false, the access key and secret key must be provided.
302
+ S3_USE_AWS_MANAGED_IAM = false
308
303
309
304
# Azure Blob Configuration
310
- # The name of the Azure Blob Storage account to use for storing files.
305
+ #
311
306
AZURE_BLOB_ACCOUNT_NAME = difyai
312
- # The access key to use for authenticating with the Azure Blob Storage account.
313
307
AZURE_BLOB_ACCOUNT_KEY = difyai
314
- # The name of the Azure Blob Storage container to use for storing files.
315
308
AZURE_BLOB_CONTAINER_NAME = difyai-container
316
- # The URL of the Azure Blob Storage account.
317
309
AZURE_BLOB_ACCOUNT_URL = https://<your_account_name>.blob.core.windows.net
318
310
319
311
# Google Storage Configuration
320
- # The name of the Google Storage bucket to use for storing files.
312
+ #
321
313
GOOGLE_STORAGE_BUCKET_NAME = your-bucket-name
322
- # The service account JSON key to use for authenticating with the Google Storage service.
323
314
GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64 = your-google-service-account-json-base64-string
324
315
325
316
# The Alibaba Cloud OSS configurations,
326
- # only available when STORAGE_TYPE is `aliyun-oss`
317
+ #
327
318
ALIYUN_OSS_BUCKET_NAME = your-bucket-name
328
319
ALIYUN_OSS_ACCESS_KEY = your-access-key
329
320
ALIYUN_OSS_SECRET_KEY = your-secret-key
@@ -334,55 +325,47 @@ ALIYUN_OSS_AUTH_VERSION=v4
334
325
ALIYUN_OSS_PATH = your-path
335
326
336
327
# Tencent COS Configuration
337
- # The name of the Tencent COS bucket to use for storing files.
328
+ #
338
329
TENCENT_COS_BUCKET_NAME = your-bucket-name
339
- # The secret key to use for authenticating with the Tencent COS service.
340
330
TENCENT_COS_SECRET_KEY = your-secret-key
341
- # The secret id to use for authenticating with the Tencent COS service.
342
331
TENCENT_COS_SECRET_ID = your-secret-id
343
- # The region of the Tencent COS service.
344
332
TENCENT_COS_REGION = your-region
345
- # The scheme of the Tencent COS service.
346
333
TENCENT_COS_SCHEME = your-scheme
347
334
335
+ # Oracle Storage Configuration
336
+ #
337
+ OCI_ENDPOINT = https://objectstorage.us-ashburn-1.oraclecloud.com
338
+ OCI_BUCKET_NAME = your-bucket-name
339
+ OCI_ACCESS_KEY = your-access-key
340
+ OCI_SECRET_KEY = your-secret-key
341
+ OCI_REGION = us-ashburn-1
342
+
348
343
# Huawei OBS Configuration
349
- # The name of the Huawei OBS bucket to use for storing files.
344
+ #
350
345
HUAWEI_OBS_BUCKET_NAME = your-bucket-name
351
- # The secret key to use for authenticating with the Huawei OBS service.
352
346
HUAWEI_OBS_SECRET_KEY = your-secret-key
353
- # The access key to use for authenticating with the Huawei OBS service.
354
347
HUAWEI_OBS_ACCESS_KEY = your-access-key
355
- # The server url of the HUAWEI OBS service.
356
348
HUAWEI_OBS_SERVER = your-server-url
357
349
358
350
# Volcengine TOS Configuration
359
- # The name of the Volcengine TOS bucket to use for storing files.
351
+ #
360
352
VOLCENGINE_TOS_BUCKET_NAME = your-bucket-name
361
- # The secret key to use for authenticating with the Volcengine TOS service.
362
353
VOLCENGINE_TOS_SECRET_KEY = your-secret-key
363
- # The access key to use for authenticating with the Volcengine TOS service.
364
354
VOLCENGINE_TOS_ACCESS_KEY = your-access-key
365
- # The endpoint of the Volcengine TOS service.
366
355
VOLCENGINE_TOS_ENDPOINT = your-server-url
367
- # The region of the Volcengine TOS service.
368
356
VOLCENGINE_TOS_REGION = your-region
369
357
370
358
# Baidu OBS Storage Configuration
371
- # The name of the Baidu OBS bucket to use for storing files.
359
+ #
372
360
BAIDU_OBS_BUCKET_NAME = your-bucket-name
373
- # The secret key to use for authenticating with the Baidu OBS service.
374
361
BAIDU_OBS_SECRET_KEY = your-secret-key
375
- # The access key to use for authenticating with the Baidu OBS service.
376
362
BAIDU_OBS_ACCESS_KEY = your-access-key
377
- # The endpoint of the Baidu OBS service.
378
363
BAIDU_OBS_ENDPOINT = your-server-url
379
364
380
365
# Supabase Storage Configuration
381
- # The name of the Supabase bucket to use for storing files.
366
+ #
382
367
SUPABASE_BUCKET_NAME = your-bucket-name
383
- # The api key to use for authenticating with the Supabase service.
384
368
SUPABASE_API_KEY = your-access-key
385
- # The project endpoint url of the Supabase service.
386
369
SUPABASE_URL = your-server-url
387
370
388
371
# ------------------------------
@@ -395,28 +378,20 @@ VECTOR_STORE=weaviate
395
378
396
379
# The Weaviate endpoint URL. Only available when VECTOR_STORE is `weaviate`.
397
380
WEAVIATE_ENDPOINT = http://weaviate:8080
398
- # The Weaviate API key.
399
381
WEAVIATE_API_KEY = WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
400
382
401
383
# The Qdrant endpoint URL. Only available when VECTOR_STORE is `qdrant`.
402
384
QDRANT_URL = http://qdrant:6333
403
- # The Qdrant API key.
404
385
QDRANT_API_KEY = difyai123456
405
- # The Qdrant client timeout setting.
406
386
QDRANT_CLIENT_TIMEOUT = 20
407
- # The Qdrant client enable gRPC mode.
408
387
QDRANT_GRPC_ENABLED = false
409
- # The Qdrant server gRPC mode PORT.
410
388
QDRANT_GRPC_PORT = 6334
411
389
412
390
# Milvus configuration Only available when VECTOR_STORE is `milvus`.
413
391
# The milvus uri.
414
392
MILVUS_URI = http://127.0.0.1:19530
415
- # The milvus token.
416
393
MILVUS_TOKEN =
417
- # The milvus username.
418
394
MILVUS_USER = root
419
- # The milvus password.
420
395
MILVUS_PASSWORD = Milvus
421
396
422
397
# MyScale configuration, only available when VECTOR_STORE is `myscale`
@@ -470,8 +445,8 @@ ANALYTICDB_MAX_CONNECTION=5
470
445
# TiDB vector configurations, only available when VECTOR_STORE is `tidb`
471
446
TIDB_VECTOR_HOST = tidb
472
447
TIDB_VECTOR_PORT = 4000
473
- TIDB_VECTOR_USER = xxx.root
474
- TIDB_VECTOR_PASSWORD = xxxxxx
448
+ TIDB_VECTOR_USER =
449
+ TIDB_VECTOR_PASSWORD =
475
450
TIDB_VECTOR_DATABASE = dify
476
451
477
452
# Tidb on qdrant configuration, only available when VECTOR_STORE is `tidb_on_qdrant`
@@ -494,7 +469,7 @@ CHROMA_PORT=8000
494
469
CHROMA_TENANT = default_tenant
495
470
CHROMA_DATABASE = default_database
496
471
CHROMA_AUTH_PROVIDER = chromadb.auth.token_authn.TokenAuthClientProvider
497
- CHROMA_AUTH_CREDENTIALS = xxxxxx
472
+ CHROMA_AUTH_CREDENTIALS =
498
473
499
474
# Oracle configuration, only available when VECTOR_STORE is `oracle`
500
475
ORACLE_HOST = oracle
@@ -531,6 +506,7 @@ ELASTICSEARCH_HOST=0.0.0.0
531
506
ELASTICSEARCH_PORT = 9200
532
507
ELASTICSEARCH_USERNAME = elastic
533
508
ELASTICSEARCH_PASSWORD = elastic
509
+ KIBANA_PORT = 5601
534
510
535
511
# baidu vector configurations, only available when VECTOR_STORE is `baidu`
536
512
BAIDU_VECTOR_DB_ENDPOINT = http://127.0.0.1:5287
@@ -550,20 +526,24 @@ VIKINGDB_SCHEMA=http
550
526
VIKINGDB_CONNECTION_TIMEOUT = 30
551
527
VIKINGDB_SOCKET_TIMEOUT = 30
552
528
553
-
554
529
# Lindorm configuration, only available when VECTOR_STORE is `lindorm`
555
- LINDORM_URL = http://ld-***************-proxy-search-pub. lindorm.aliyuncs.com :30070
556
- LINDORM_USERNAME = username
557
- LINDORM_PASSWORD = password
530
+ LINDORM_URL = http://lindorm:30070
531
+ LINDORM_USERNAME = lindorm
532
+ LINDORM_PASSWORD = lindorm
558
533
559
534
# OceanBase Vector configuration, only available when VECTOR_STORE is `oceanbase`
560
535
OCEANBASE_VECTOR_HOST = oceanbase
561
536
OCEANBASE_VECTOR_PORT = 2881
562
537
OCEANBASE_VECTOR_USER = root@test
563
538
OCEANBASE_VECTOR_PASSWORD = difyai123456
564
539
OCEANBASE_VECTOR_DATABASE = test
540
+ OCEANBASE_CLUSTER_NAME = difyai
565
541
OCEANBASE_MEMORY_LIMIT = 6G
566
542
543
+ # Upstash Vector configuration, only available when VECTOR_STORE is `upstash`
544
+ UPSTASH_VECTOR_URL = https://xxx-vector.upstash.io
545
+ UPSTASH_VECTOR_TOKEN = dify
546
+
567
547
# ------------------------------
568
548
# Knowledge Configuration
569
549
# ------------------------------
@@ -612,13 +592,10 @@ CODE_GENERATION_MAX_TOKENS=1024
612
592
# It is generally recommended to use the more compatible base64 mode.
613
593
# If configured as url, you need to configure FILES_URL as an externally accessible address so that the multi-modal model can access the image/video/audio/document.
614
594
MULTIMODAL_SEND_FORMAT = base64
615
-
616
595
# Upload image file size limit, default 10M.
617
596
UPLOAD_IMAGE_FILE_SIZE_LIMIT = 10
618
-
619
597
# Upload video file size limit, default 100M.
620
598
UPLOAD_VIDEO_FILE_SIZE_LIMIT = 100
621
-
622
599
# Upload audio file size limit, default 50M.
623
600
UPLOAD_AUDIO_FILE_SIZE_LIMIT = 50
624
601
@@ -631,10 +608,8 @@ UPLOAD_AUDIO_FILE_SIZE_LIMIT=50
631
608
# all monitoring information is not reported to Sentry.
632
609
# If not set, Sentry error reporting will be disabled.
633
610
API_SENTRY_DSN =
634
-
635
611
# API Service The reporting ratio of Sentry events, if it is 0.01, it is 1%.
636
612
API_SENTRY_TRACES_SAMPLE_RATE = 1.0
637
-
638
613
# API Service The reporting ratio of Sentry profiles, if it is 0.01, it is 1%.
639
614
API_SENTRY_PROFILES_SAMPLE_RATE = 1.0
640
615
@@ -672,8 +647,10 @@ MAIL_TYPE=resend
672
647
MAIL_DEFAULT_SEND_FROM =
673
648
674
649
# API-Key for the Resend email provider, used when MAIL_TYPE is `resend`.
650
+ RESEND_API_URL = https://api.resend.com
675
651
RESEND_API_KEY = your-resend-api-key
676
652
653
+
677
654
# SMTP server configuration, used when MAIL_TYPE is `smtp`
678
655
SMTP_SERVER =
679
656
SMTP_PORT = 465
@@ -698,18 +675,19 @@ RESET_PASSWORD_TOKEN_EXPIRY_MINUTES=5
698
675
699
676
# The sandbox service endpoint.
700
677
CODE_EXECUTION_ENDPOINT = http://sandbox:8194
678
+ CODE_EXECUTION_API_KEY = dify-sandbox
701
679
CODE_MAX_NUMBER = 9223372036854775807
702
680
CODE_MIN_NUMBER = -9223372036854775808
703
681
CODE_MAX_DEPTH = 5
704
682
CODE_MAX_PRECISION = 20
705
683
CODE_MAX_STRING_LENGTH = 80000
706
- TEMPLATE_TRANSFORM_MAX_LENGTH = 80000
707
684
CODE_MAX_STRING_ARRAY_LENGTH = 30
708
685
CODE_MAX_OBJECT_ARRAY_LENGTH = 30
709
686
CODE_MAX_NUMBER_ARRAY_LENGTH = 1000
710
687
CODE_EXECUTION_CONNECT_TIMEOUT = 10
711
688
CODE_EXECUTION_READ_TIMEOUT = 60
712
689
CODE_EXECUTION_WRITE_TIMEOUT = 10
690
+ TEMPLATE_TRANSFORM_MAX_LENGTH = 80000
713
691
714
692
# Workflow runtime configuration
715
693
WORKFLOW_MAX_EXECUTION_STEPS = 500
@@ -938,3 +916,7 @@ CREATE_TIDB_SERVICE_JOB_ENABLED=false
938
916
939
917
# Maximum number of submitted thread count in a ThreadPool for parallel node execution
940
918
MAX_SUBMIT_COUNT = 100
919
+
920
+ # Proxy
921
+ HTTP_PROXY =
922
+ HTTPS_PROXY =
0 commit comments