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