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.

2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
Introduce Plugins (#13836) Signed-off-by: yihong0618 <zouzou0208@gmail.com> Signed-off-by: -LAN- <laipz8200@outlook.com> Signed-off-by: xhe <xw897002528@gmail.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: takatost <takatost@gmail.com> Co-authored-by: kurokobo <kuro664@gmail.com> Co-authored-by: Novice Lee <novicelee@NoviPro.local> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: AkaraChen <akarachen@outlook.com> Co-authored-by: Yi <yxiaoisme@gmail.com> Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: JzoNg <jzongcode@gmail.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: Hiroshi Fujita <fujita-h@users.noreply.github.com> Co-authored-by: AkaraChen <85140972+AkaraChen@users.noreply.github.com> Co-authored-by: NFish <douxc512@gmail.com> Co-authored-by: Wu Tianwei <30284043+WTW0313@users.noreply.github.com> Co-authored-by: 非法操作 <hjlarry@163.com> Co-authored-by: Novice <857526207@qq.com> Co-authored-by: Hiroki Nagai <82458324+nagaihiroki-git@users.noreply.github.com> Co-authored-by: Gen Sato <52241300+halogen22@users.noreply.github.com> Co-authored-by: eux <euxuuu@gmail.com> Co-authored-by: huangzhuo1949 <167434202+huangzhuo1949@users.noreply.github.com> Co-authored-by: huangzhuo <huangzhuo1@xiaomi.com> Co-authored-by: lotsik <lotsik@mail.ru> Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com> Co-authored-by: nite-knite <nkCoding@gmail.com> Co-authored-by: Jyong <76649700+JohnJyong@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: gakkiyomi <gakkiyomi@aliyun.com> Co-authored-by: CN-P5 <heibai2006@gmail.com> Co-authored-by: CN-P5 <heibai2006@qq.com> Co-authored-by: Chuehnone <1897025+chuehnone@users.noreply.github.com> Co-authored-by: yihong <zouzou0208@gmail.com> Co-authored-by: Kevin9703 <51311316+Kevin9703@users.noreply.github.com> Co-authored-by: -LAN- <laipz8200@outlook.com> Co-authored-by: Boris Feld <lothiraldan@gmail.com> Co-authored-by: mbo <himabo@gmail.com> Co-authored-by: mabo <mabo@aeyes.ai> Co-authored-by: Warren Chen <warren.chen830@gmail.com> Co-authored-by: JzoNgKVO <27049666+JzoNgKVO@users.noreply.github.com> Co-authored-by: jiandanfeng <chenjh3@wangsu.com> Co-authored-by: zhu-an <70234959+xhdd123321@users.noreply.github.com> Co-authored-by: zhaoqingyu.1075 <zhaoqingyu.1075@bytedance.com> Co-authored-by: 海狸大師 <86974027+yenslife@users.noreply.github.com> Co-authored-by: Xu Song <xusong.vip@gmail.com> Co-authored-by: rayshaw001 <396301947@163.com> Co-authored-by: Ding Jiatong <dingjiatong@gmail.com> Co-authored-by: Bowen Liang <liangbowen@gf.com.cn> Co-authored-by: JasonVV <jasonwangiii@outlook.com> Co-authored-by: le0zh <newlight@qq.com> Co-authored-by: zhuxinliang <zhuxinliang@didiglobal.com> Co-authored-by: k-zaku <zaku99@outlook.jp> Co-authored-by: luckylhb90 <luckylhb90@gmail.com> Co-authored-by: hobo.l <hobo.l@binance.com> Co-authored-by: jiangbo721 <365065261@qq.com> Co-authored-by: 刘江波 <jiangbo721@163.com> Co-authored-by: Shun Miyazawa <34241526+miya@users.noreply.github.com> Co-authored-by: EricPan <30651140+Egfly@users.noreply.github.com> Co-authored-by: crazywoola <427733928@qq.com> Co-authored-by: sino <sino2322@gmail.com> Co-authored-by: Jhvcc <37662342+Jhvcc@users.noreply.github.com> Co-authored-by: lowell <lowell.hu@zkteco.in> Co-authored-by: Boris Polonsky <BorisPolonsky@users.noreply.github.com> Co-authored-by: Ademílson Tonato <ademilsonft@outlook.com> Co-authored-by: Ademílson Tonato <ademilson.tonato@refurbed.com> Co-authored-by: IWAI, Masaharu <iwaim.sub@gmail.com> Co-authored-by: Yueh-Po Peng (Yabi) <94939112+y10ab1@users.noreply.github.com> Co-authored-by: Jason <ggbbddjm@gmail.com> Co-authored-by: Xin Zhang <sjhpzx@gmail.com> Co-authored-by: yjc980121 <3898524+yjc980121@users.noreply.github.com> Co-authored-by: heyszt <36215648+hieheihei@users.noreply.github.com> Co-authored-by: Abdullah AlOsaimi <osaimiacc@gmail.com> Co-authored-by: Abdullah AlOsaimi <189027247+osaimi@users.noreply.github.com> Co-authored-by: Yingchun Lai <laiyingchun@apache.org> Co-authored-by: Hash Brown <hi@xzd.me> Co-authored-by: zuodongxu <192560071+zuodongxu@users.noreply.github.com> Co-authored-by: Masashi Tomooka <tmokmss@users.noreply.github.com> Co-authored-by: aplio <ryo.091219@gmail.com> Co-authored-by: Obada Khalili <54270856+obadakhalili@users.noreply.github.com> Co-authored-by: Nam Vu <zuzoovn@gmail.com> Co-authored-by: Kei YAMAZAKI <1715090+kei-yamazaki@users.noreply.github.com> Co-authored-by: TechnoHouse <13776377+deephbz@users.noreply.github.com> Co-authored-by: Riddhimaan-Senapati <114703025+Riddhimaan-Senapati@users.noreply.github.com> Co-authored-by: MaFee921 <31881301+2284730142@users.noreply.github.com> Co-authored-by: te-chan <t-nakanome@sakura-is.co.jp> Co-authored-by: HQidea <HQidea@users.noreply.github.com> Co-authored-by: Joshbly <36315710+Joshbly@users.noreply.github.com> Co-authored-by: xhe <xw897002528@gmail.com> Co-authored-by: weiwenyan-dev <154779315+weiwenyan-dev@users.noreply.github.com> Co-authored-by: ex_wenyan.wei <ex_wenyan.wei@tcl.com> Co-authored-by: engchina <12236799+engchina@users.noreply.github.com> Co-authored-by: engchina <atjapan2015@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: 呆萌闷油瓶 <253605712@qq.com> Co-authored-by: Kemal <kemalmeler@outlook.com> Co-authored-by: Lazy_Frog <4590648+lazyFrogLOL@users.noreply.github.com> Co-authored-by: Yi Xiao <54782454+YIXIAO0@users.noreply.github.com> Co-authored-by: Steven sun <98230804+Tuyohai@users.noreply.github.com> Co-authored-by: steven <sunzwj@digitalchina.com> Co-authored-by: Kalo Chin <91766386+fdb02983rhy@users.noreply.github.com> Co-authored-by: Katy Tao <34019945+KatyTao@users.noreply.github.com> Co-authored-by: depy <42985524+h4ckdepy@users.noreply.github.com> Co-authored-by: 胡春东 <gycm520@gmail.com> Co-authored-by: Junjie.M <118170653@qq.com> Co-authored-by: MuYu <mr.muzea@gmail.com> Co-authored-by: Naoki Takashima <39912547+takatea@users.noreply.github.com> Co-authored-by: Summer-Gu <37869445+gubinjie@users.noreply.github.com> Co-authored-by: Fei He <droxer.he@gmail.com> Co-authored-by: ybalbert001 <120714773+ybalbert001@users.noreply.github.com> Co-authored-by: Yuanbo Li <ybalbert@amazon.com> Co-authored-by: douxc <7553076+douxc@users.noreply.github.com> Co-authored-by: liuzhenghua <1090179900@qq.com> Co-authored-by: Wu Jiayang <62842862+Wu-Jiayang@users.noreply.github.com> Co-authored-by: Your Name <you@example.com> Co-authored-by: kimjion <45935338+kimjion@users.noreply.github.com> Co-authored-by: AugNSo <song.tiankai@icloud.com> Co-authored-by: llinvokerl <38915183+llinvokerl@users.noreply.github.com> Co-authored-by: liusurong.lsr <liusurong.lsr@alibaba-inc.com> Co-authored-by: Vasu Negi <vasu-negi@users.noreply.github.com> Co-authored-by: Hundredwz <1808096180@qq.com> Co-authored-by: Xiyuan Chen <52963600+GareArc@users.noreply.github.com>
8 月之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  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. # The time in seconds after the signature is rejected
  16. FILES_ACCESS_TIMEOUT=300
  17. # Access token expiration time in minutes
  18. ACCESS_TOKEN_EXPIRE_MINUTES=60
  19. # Refresh token expiration time in days
  20. REFRESH_TOKEN_EXPIRE_DAYS=30
  21. # redis configuration
  22. REDIS_HOST=localhost
  23. REDIS_PORT=6379
  24. REDIS_USERNAME=
  25. REDIS_PASSWORD=difyai123456
  26. REDIS_USE_SSL=false
  27. REDIS_DB=0
  28. # redis Sentinel configuration.
  29. REDIS_USE_SENTINEL=false
  30. REDIS_SENTINELS=
  31. REDIS_SENTINEL_SERVICE_NAME=
  32. REDIS_SENTINEL_USERNAME=
  33. REDIS_SENTINEL_PASSWORD=
  34. REDIS_SENTINEL_SOCKET_TIMEOUT=0.1
  35. # redis Cluster configuration.
  36. REDIS_USE_CLUSTERS=false
  37. REDIS_CLUSTERS=
  38. REDIS_CLUSTERS_PASSWORD=
  39. # celery configuration
  40. CELERY_BROKER_URL=redis://:difyai123456@localhost:${REDIS_PORT}/1
  41. # PostgreSQL database configuration
  42. DB_USERNAME=postgres
  43. DB_PASSWORD=difyai123456
  44. DB_HOST=localhost
  45. DB_PORT=5432
  46. DB_DATABASE=dify
  47. # Storage configuration
  48. # use for store upload files, private keys...
  49. # storage type: opendal, s3, aliyun-oss, azure-blob, baidu-obs, google-storage, huawei-obs, oci-storage, tencent-cos, volcengine-tos, supabase
  50. STORAGE_TYPE=opendal
  51. # Apache OpenDAL storage configuration, refer to https://github.com/apache/opendal
  52. OPENDAL_SCHEME=fs
  53. OPENDAL_FS_ROOT=storage
  54. # S3 Storage configuration
  55. S3_USE_AWS_MANAGED_IAM=false
  56. S3_ENDPOINT=https://your-bucket-name.storage.s3.cloudflare.com
  57. S3_BUCKET_NAME=your-bucket-name
  58. S3_ACCESS_KEY=your-access-key
  59. S3_SECRET_KEY=your-secret-key
  60. S3_REGION=your-region
  61. # Azure Blob Storage configuration
  62. AZURE_BLOB_ACCOUNT_NAME=your-account-name
  63. AZURE_BLOB_ACCOUNT_KEY=your-account-key
  64. AZURE_BLOB_CONTAINER_NAME=your-container-name
  65. AZURE_BLOB_ACCOUNT_URL=https://<your_account_name>.blob.core.windows.net
  66. # Aliyun oss Storage configuration
  67. ALIYUN_OSS_BUCKET_NAME=your-bucket-name
  68. ALIYUN_OSS_ACCESS_KEY=your-access-key
  69. ALIYUN_OSS_SECRET_KEY=your-secret-key
  70. ALIYUN_OSS_ENDPOINT=your-endpoint
  71. ALIYUN_OSS_AUTH_VERSION=v1
  72. ALIYUN_OSS_REGION=your-region
  73. # Don't start with '/'. OSS doesn't support leading slash in object names.
  74. ALIYUN_OSS_PATH=your-path
  75. # Google Storage configuration
  76. GOOGLE_STORAGE_BUCKET_NAME=your-bucket-name
  77. GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64=your-google-service-account-json-base64-string
  78. # Tencent COS Storage configuration
  79. TENCENT_COS_BUCKET_NAME=your-bucket-name
  80. TENCENT_COS_SECRET_KEY=your-secret-key
  81. TENCENT_COS_SECRET_ID=your-secret-id
  82. TENCENT_COS_REGION=your-region
  83. TENCENT_COS_SCHEME=your-scheme
  84. # Huawei OBS Storage Configuration
  85. HUAWEI_OBS_BUCKET_NAME=your-bucket-name
  86. HUAWEI_OBS_SECRET_KEY=your-secret-key
  87. HUAWEI_OBS_ACCESS_KEY=your-access-key
  88. HUAWEI_OBS_SERVER=your-server-url
  89. # Baidu OBS Storage Configuration
  90. BAIDU_OBS_BUCKET_NAME=your-bucket-name
  91. BAIDU_OBS_SECRET_KEY=your-secret-key
  92. BAIDU_OBS_ACCESS_KEY=your-access-key
  93. BAIDU_OBS_ENDPOINT=your-server-url
  94. # OCI Storage configuration
  95. OCI_ENDPOINT=your-endpoint
  96. OCI_BUCKET_NAME=your-bucket-name
  97. OCI_ACCESS_KEY=your-access-key
  98. OCI_SECRET_KEY=your-secret-key
  99. OCI_REGION=your-region
  100. # Volcengine tos Storage configuration
  101. VOLCENGINE_TOS_ENDPOINT=your-endpoint
  102. VOLCENGINE_TOS_BUCKET_NAME=your-bucket-name
  103. VOLCENGINE_TOS_ACCESS_KEY=your-access-key
  104. VOLCENGINE_TOS_SECRET_KEY=your-secret-key
  105. VOLCENGINE_TOS_REGION=your-region
  106. # Supabase Storage Configuration
  107. SUPABASE_BUCKET_NAME=your-bucket-name
  108. SUPABASE_API_KEY=your-access-key
  109. SUPABASE_URL=your-server-url
  110. # CORS configuration
  111. WEB_API_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  112. CONSOLE_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
  113. # Vector database configuration
  114. # support: weaviate, qdrant, milvus, myscale, relyt, pgvecto_rs, pgvector, pgvector, chroma, opensearch, tidb_vector, couchbase, vikingdb, upstash, lindorm, oceanbase, opengauss, tablestore
  115. VECTOR_STORE=weaviate
  116. # Weaviate configuration
  117. WEAVIATE_ENDPOINT=http://localhost:8080
  118. WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  119. WEAVIATE_GRPC_ENABLED=false
  120. WEAVIATE_BATCH_SIZE=100
  121. # Qdrant configuration, use `http://localhost:6333` for local mode or `https://your-qdrant-cluster-url.qdrant.io` for remote mode
  122. QDRANT_URL=http://localhost:6333
  123. QDRANT_API_KEY=difyai123456
  124. QDRANT_CLIENT_TIMEOUT=20
  125. QDRANT_GRPC_ENABLED=false
  126. QDRANT_GRPC_PORT=6334
  127. #Couchbase configuration
  128. COUCHBASE_CONNECTION_STRING=127.0.0.1
  129. COUCHBASE_USER=Administrator
  130. COUCHBASE_PASSWORD=password
  131. COUCHBASE_BUCKET_NAME=Embeddings
  132. COUCHBASE_SCOPE_NAME=_default
  133. # Milvus configuration
  134. MILVUS_URI=http://127.0.0.1:19530
  135. MILVUS_TOKEN=
  136. MILVUS_USER=root
  137. MILVUS_PASSWORD=Milvus
  138. MILVUS_ANALYZER_PARAMS=
  139. # MyScale configuration
  140. MYSCALE_HOST=127.0.0.1
  141. MYSCALE_PORT=8123
  142. MYSCALE_USER=default
  143. MYSCALE_PASSWORD=
  144. MYSCALE_DATABASE=default
  145. MYSCALE_FTS_PARAMS=
  146. # Relyt configuration
  147. RELYT_HOST=127.0.0.1
  148. RELYT_PORT=5432
  149. RELYT_USER=postgres
  150. RELYT_PASSWORD=postgres
  151. RELYT_DATABASE=postgres
  152. # Tencent configuration
  153. TENCENT_VECTOR_DB_URL=http://127.0.0.1
  154. TENCENT_VECTOR_DB_API_KEY=dify
  155. TENCENT_VECTOR_DB_TIMEOUT=30
  156. TENCENT_VECTOR_DB_USERNAME=dify
  157. TENCENT_VECTOR_DB_DATABASE=dify
  158. TENCENT_VECTOR_DB_SHARD=1
  159. TENCENT_VECTOR_DB_REPLICAS=2
  160. TENCENT_VECTOR_DB_ENABLE_HYBRID_SEARCH=false
  161. # ElasticSearch configuration
  162. ELASTICSEARCH_HOST=127.0.0.1
  163. ELASTICSEARCH_PORT=9200
  164. ELASTICSEARCH_USERNAME=elastic
  165. ELASTICSEARCH_PASSWORD=elastic
  166. # PGVECTO_RS configuration
  167. PGVECTO_RS_HOST=localhost
  168. PGVECTO_RS_PORT=5431
  169. PGVECTO_RS_USER=postgres
  170. PGVECTO_RS_PASSWORD=difyai123456
  171. PGVECTO_RS_DATABASE=postgres
  172. # PGVector configuration
  173. PGVECTOR_HOST=127.0.0.1
  174. PGVECTOR_PORT=5433
  175. PGVECTOR_USER=postgres
  176. PGVECTOR_PASSWORD=postgres
  177. PGVECTOR_DATABASE=postgres
  178. PGVECTOR_MIN_CONNECTION=1
  179. PGVECTOR_MAX_CONNECTION=5
  180. # TableStore Vector configuration
  181. TABLESTORE_ENDPOINT=https://instance-name.cn-hangzhou.ots.aliyuncs.com
  182. TABLESTORE_INSTANCE_NAME=instance-name
  183. TABLESTORE_ACCESS_KEY_ID=xxx
  184. TABLESTORE_ACCESS_KEY_SECRET=xxx
  185. # Tidb Vector configuration
  186. TIDB_VECTOR_HOST=xxx.eu-central-1.xxx.aws.tidbcloud.com
  187. TIDB_VECTOR_PORT=4000
  188. TIDB_VECTOR_USER=xxx.root
  189. TIDB_VECTOR_PASSWORD=xxxxxx
  190. TIDB_VECTOR_DATABASE=dify
  191. # Tidb on qdrant configuration
  192. TIDB_ON_QDRANT_URL=http://127.0.0.1
  193. TIDB_ON_QDRANT_API_KEY=dify
  194. TIDB_ON_QDRANT_CLIENT_TIMEOUT=20
  195. TIDB_ON_QDRANT_GRPC_ENABLED=false
  196. TIDB_ON_QDRANT_GRPC_PORT=6334
  197. TIDB_PUBLIC_KEY=dify
  198. TIDB_PRIVATE_KEY=dify
  199. TIDB_API_URL=http://127.0.0.1
  200. TIDB_IAM_API_URL=http://127.0.0.1
  201. TIDB_REGION=regions/aws-us-east-1
  202. TIDB_PROJECT_ID=dify
  203. TIDB_SPEND_LIMIT=100
  204. # Chroma configuration
  205. CHROMA_HOST=127.0.0.1
  206. CHROMA_PORT=8000
  207. CHROMA_TENANT=default_tenant
  208. CHROMA_DATABASE=default_database
  209. CHROMA_AUTH_PROVIDER=chromadb.auth.token_authn.TokenAuthenticationServerProvider
  210. CHROMA_AUTH_CREDENTIALS=difyai123456
  211. # AnalyticDB configuration
  212. ANALYTICDB_KEY_ID=your-ak
  213. ANALYTICDB_KEY_SECRET=your-sk
  214. ANALYTICDB_REGION_ID=cn-hangzhou
  215. ANALYTICDB_INSTANCE_ID=gp-ab123456
  216. ANALYTICDB_ACCOUNT=testaccount
  217. ANALYTICDB_PASSWORD=testpassword
  218. ANALYTICDB_NAMESPACE=dify
  219. ANALYTICDB_NAMESPACE_PASSWORD=difypassword
  220. ANALYTICDB_HOST=gp-test.aliyuncs.com
  221. ANALYTICDB_PORT=5432
  222. ANALYTICDB_MIN_CONNECTION=1
  223. ANALYTICDB_MAX_CONNECTION=5
  224. # OpenSearch configuration
  225. OPENSEARCH_HOST=127.0.0.1
  226. OPENSEARCH_PORT=9200
  227. OPENSEARCH_USER=admin
  228. OPENSEARCH_PASSWORD=admin
  229. OPENSEARCH_SECURE=true
  230. # Baidu configuration
  231. BAIDU_VECTOR_DB_ENDPOINT=http://127.0.0.1:5287
  232. BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS=30000
  233. BAIDU_VECTOR_DB_ACCOUNT=root
  234. BAIDU_VECTOR_DB_API_KEY=dify
  235. BAIDU_VECTOR_DB_DATABASE=dify
  236. BAIDU_VECTOR_DB_SHARD=1
  237. BAIDU_VECTOR_DB_REPLICAS=3
  238. # Upstash configuration
  239. UPSTASH_VECTOR_URL=your-server-url
  240. UPSTASH_VECTOR_TOKEN=your-access-token
  241. # ViKingDB configuration
  242. VIKINGDB_ACCESS_KEY=your-ak
  243. VIKINGDB_SECRET_KEY=your-sk
  244. VIKINGDB_REGION=cn-shanghai
  245. VIKINGDB_HOST=api-vikingdb.xxx.volces.com
  246. VIKINGDB_SCHEMA=http
  247. VIKINGDB_CONNECTION_TIMEOUT=30
  248. VIKINGDB_SOCKET_TIMEOUT=30
  249. # Lindorm configuration
  250. LINDORM_URL=http://ld-*******************-proxy-search-pub.lindorm.aliyuncs.com:30070
  251. LINDORM_USERNAME=admin
  252. LINDORM_PASSWORD=admin
  253. USING_UGC_INDEX=False
  254. # OceanBase Vector configuration
  255. OCEANBASE_VECTOR_HOST=127.0.0.1
  256. OCEANBASE_VECTOR_PORT=2881
  257. OCEANBASE_VECTOR_USER=root@test
  258. OCEANBASE_VECTOR_PASSWORD=difyai123456
  259. OCEANBASE_VECTOR_DATABASE=test
  260. OCEANBASE_MEMORY_LIMIT=6G
  261. OCEANBASE_ENABLE_HYBRID_SEARCH=false
  262. # openGauss configuration
  263. OPENGAUSS_HOST=127.0.0.1
  264. OPENGAUSS_PORT=6600
  265. OPENGAUSS_USER=postgres
  266. OPENGAUSS_PASSWORD=Dify@123
  267. OPENGAUSS_DATABASE=dify
  268. OPENGAUSS_MIN_CONNECTION=1
  269. OPENGAUSS_MAX_CONNECTION=5
  270. # Upload configuration
  271. UPLOAD_FILE_SIZE_LIMIT=15
  272. UPLOAD_FILE_BATCH_LIMIT=5
  273. UPLOAD_IMAGE_FILE_SIZE_LIMIT=10
  274. UPLOAD_VIDEO_FILE_SIZE_LIMIT=100
  275. UPLOAD_AUDIO_FILE_SIZE_LIMIT=50
  276. # Model configuration
  277. MULTIMODAL_SEND_FORMAT=base64
  278. PROMPT_GENERATION_MAX_TOKENS=512
  279. CODE_GENERATION_MAX_TOKENS=1024
  280. PLUGIN_BASED_TOKEN_COUNTING_ENABLED=false
  281. # Mail configuration, support: resend, smtp
  282. MAIL_TYPE=
  283. MAIL_DEFAULT_SEND_FROM=no-reply <no-reply@dify.ai>
  284. RESEND_API_KEY=
  285. RESEND_API_URL=https://api.resend.com
  286. # smtp configuration
  287. SMTP_SERVER=smtp.gmail.com
  288. SMTP_PORT=465
  289. SMTP_USERNAME=123
  290. SMTP_PASSWORD=abc
  291. SMTP_USE_TLS=true
  292. SMTP_OPPORTUNISTIC_TLS=false
  293. # Sentry configuration
  294. SENTRY_DSN=
  295. # DEBUG
  296. DEBUG=false
  297. SQLALCHEMY_ECHO=false
  298. # Notion import configuration, support public and internal
  299. NOTION_INTEGRATION_TYPE=public
  300. NOTION_CLIENT_SECRET=you-client-secret
  301. NOTION_CLIENT_ID=you-client-id
  302. NOTION_INTERNAL_SECRET=you-internal-secret
  303. ETL_TYPE=dify
  304. UNSTRUCTURED_API_URL=
  305. UNSTRUCTURED_API_KEY=
  306. SCARF_NO_ANALYTICS=true
  307. #ssrf
  308. SSRF_PROXY_HTTP_URL=
  309. SSRF_PROXY_HTTPS_URL=
  310. SSRF_DEFAULT_MAX_RETRIES=3
  311. SSRF_DEFAULT_TIME_OUT=5
  312. SSRF_DEFAULT_CONNECT_TIME_OUT=5
  313. SSRF_DEFAULT_READ_TIME_OUT=5
  314. SSRF_DEFAULT_WRITE_TIME_OUT=5
  315. BATCH_UPLOAD_LIMIT=10
  316. KEYWORD_DATA_SOURCE_TYPE=database
  317. # Workflow file upload limit
  318. WORKFLOW_FILE_UPLOAD_LIMIT=10
  319. # CODE EXECUTION CONFIGURATION
  320. CODE_EXECUTION_ENDPOINT=http://127.0.0.1:8194
  321. CODE_EXECUTION_API_KEY=dify-sandbox
  322. CODE_MAX_NUMBER=9223372036854775807
  323. CODE_MIN_NUMBER=-9223372036854775808
  324. CODE_MAX_STRING_LENGTH=80000
  325. TEMPLATE_TRANSFORM_MAX_LENGTH=80000
  326. CODE_MAX_STRING_ARRAY_LENGTH=30
  327. CODE_MAX_OBJECT_ARRAY_LENGTH=30
  328. CODE_MAX_NUMBER_ARRAY_LENGTH=1000
  329. # API Tool configuration
  330. API_TOOL_DEFAULT_CONNECT_TIMEOUT=10
  331. API_TOOL_DEFAULT_READ_TIMEOUT=60
  332. # HTTP Node configuration
  333. HTTP_REQUEST_MAX_CONNECT_TIMEOUT=300
  334. HTTP_REQUEST_MAX_READ_TIMEOUT=600
  335. HTTP_REQUEST_MAX_WRITE_TIMEOUT=600
  336. HTTP_REQUEST_NODE_MAX_BINARY_SIZE=10485760
  337. HTTP_REQUEST_NODE_MAX_TEXT_SIZE=1048576
  338. HTTP_REQUEST_NODE_SSL_VERIFY=True
  339. # Respect X-* headers to redirect clients
  340. RESPECT_XFORWARD_HEADERS_ENABLED=false
  341. # Log file path
  342. LOG_FILE=
  343. # Log file max size, the unit is MB
  344. LOG_FILE_MAX_SIZE=20
  345. # Log file max backup count
  346. LOG_FILE_BACKUP_COUNT=5
  347. # Log dateformat
  348. LOG_DATEFORMAT=%Y-%m-%d %H:%M:%S
  349. # Log Timezone
  350. LOG_TZ=UTC
  351. # Log format
  352. LOG_FORMAT=%(asctime)s,%(msecs)d %(levelname)-2s [%(filename)s:%(lineno)d] %(req_id)s %(message)s
  353. # Indexing configuration
  354. INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH=4000
  355. # Workflow runtime configuration
  356. WORKFLOW_MAX_EXECUTION_STEPS=500
  357. WORKFLOW_MAX_EXECUTION_TIME=1200
  358. WORKFLOW_CALL_MAX_DEPTH=5
  359. WORKFLOW_PARALLEL_DEPTH_LIMIT=3
  360. MAX_VARIABLE_SIZE=204800
  361. # Workflow storage configuration
  362. # Options: rdbms, hybrid
  363. # rdbms: Use only the relational database (default)
  364. # hybrid: Save new data to object storage, read from both object storage and RDBMS
  365. WORKFLOW_NODE_EXECUTION_STORAGE=rdbms
  366. # App configuration
  367. APP_MAX_EXECUTION_TIME=1200
  368. APP_MAX_ACTIVE_REQUESTS=0
  369. # Celery beat configuration
  370. CELERY_BEAT_SCHEDULER_TIME=1
  371. # Position configuration
  372. POSITION_TOOL_PINS=
  373. POSITION_TOOL_INCLUDES=
  374. POSITION_TOOL_EXCLUDES=
  375. POSITION_PROVIDER_PINS=
  376. POSITION_PROVIDER_INCLUDES=
  377. POSITION_PROVIDER_EXCLUDES=
  378. # Plugin configuration
  379. PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi
  380. PLUGIN_DAEMON_URL=http://127.0.0.1:5002
  381. PLUGIN_REMOTE_INSTALL_PORT=5003
  382. PLUGIN_REMOTE_INSTALL_HOST=localhost
  383. PLUGIN_MAX_PACKAGE_SIZE=15728640
  384. INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1
  385. # Marketplace configuration
  386. MARKETPLACE_ENABLED=true
  387. MARKETPLACE_API_URL=https://marketplace.dify.ai
  388. # Endpoint configuration
  389. ENDPOINT_URL_TEMPLATE=http://localhost:5002/e/{hook_id}
  390. # Reset password token expiry minutes
  391. RESET_PASSWORD_TOKEN_EXPIRY_MINUTES=5
  392. CREATE_TIDB_SERVICE_JOB_ENABLED=false
  393. # Maximum number of submitted thread count in a ThreadPool for parallel node execution
  394. MAX_SUBMIT_COUNT=100
  395. # Lockout duration in seconds
  396. LOGIN_LOCKOUT_DURATION=86400
  397. # Enable OpenTelemetry
  398. ENABLE_OTEL=false
  399. OTLP_BASE_ENDPOINT=http://localhost:4318
  400. OTLP_API_KEY=
  401. OTEL_EXPORTER_TYPE=otlp
  402. OTEL_SAMPLING_RATE=0.1
  403. OTEL_BATCH_EXPORT_SCHEDULE_DELAY=5000
  404. OTEL_MAX_QUEUE_SIZE=2048
  405. OTEL_MAX_EXPORT_BATCH_SIZE=512
  406. OTEL_METRIC_EXPORT_INTERVAL=60000
  407. OTEL_BATCH_EXPORT_TIMEOUT=10000
  408. OTEL_METRIC_EXPORT_TIMEOUT=30000