+110









Yeuoly
GitHub
takatost
kurokobo
Novice Lee
zxhlyh
AkaraChen
Yi
Joel
JzoNg
twwu
Hiroshi Fujita
AkaraChen
NFish
Wu Tianwei
非法操作
Novice
Hiroki Nagai
Gen Sato
eux
huangzhuo1949
huangzhuo
lotsik
crazywoola
nite-knite
Jyong
github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
gakkiyomi
CN-P5
CN-P5
Chuehnone
yihong
Kevin9703
-LAN-
Boris Feld
mbo
mabo
Warren Chen
JzoNgKVO
jiandanfeng
zhu-an
zhaoqingyu.1075
海狸大師
Xu Song
rayshaw001
Ding Jiatong
Bowen Liang
JasonVV
le0zh
zhuxinliang
k-zaku
luckylhb90
hobo.l
jiangbo721
刘江波
Shun Miyazawa
EricPan
crazywoola
sino
Jhvcc
lowell
Boris Polonsky
Ademílson Tonato
Ademílson Tonato
IWAI, Masaharu <iwaim.sub@gmail.com>
Yueh-Po Peng
Jason
Xin Zhang
yjc980121
heyszt
Abdullah AlOsaimi
Abdullah AlOsaimi
Yingchun Lai
Hash Brown
zuodongxu
Masashi Tomooka
aplio
Obada Khalili
Nam Vu
Kei YAMAZAKI
TechnoHouse
Riddhimaan-Senapati
MaFee921
te-chan
HQidea
Joshbly
xhe
weiwenyan-dev
ex_wenyan.wei
engchina
engchina
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
呆萌闷油瓶
Kemal
Lazy_Frog
Yi Xiao
Steven sun
steven
Kalo Chin
Katy Tao
depy
胡春东
Junjie.M
MuYu
Naoki Takashima
Summer-Gu
Fei He
ybalbert001
Yuanbo Li
douxc
liuzhenghua
Wu Jiayang
Your Name
kimjion
AugNSo
llinvokerl
liusurong.lsr
Vasu Negi
Hundredwz
Xiyuan Chen
403e2d58b9
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>
448 lines
12 KiB
Bash
448 lines
12 KiB
Bash
# Your App secret key will be used for securely signing the session cookie
|
|
# Make sure you are changing this key for your deployment with a strong key.
|
|
# You can generate a strong key using `openssl rand -base64 42`.
|
|
# Alternatively you can set it with `SECRET_KEY` environment variable.
|
|
SECRET_KEY=
|
|
|
|
# Console API base URL
|
|
CONSOLE_API_URL=http://127.0.0.1:5001
|
|
CONSOLE_WEB_URL=http://127.0.0.1:3000
|
|
|
|
# Service API base URL
|
|
SERVICE_API_URL=http://127.0.0.1:5001
|
|
|
|
# Web APP base URL
|
|
APP_WEB_URL=http://127.0.0.1:3000
|
|
|
|
# Files URL
|
|
FILES_URL=http://127.0.0.1:5001
|
|
|
|
# The time in seconds after the signature is rejected
|
|
FILES_ACCESS_TIMEOUT=300
|
|
|
|
# Access token expiration time in minutes
|
|
ACCESS_TOKEN_EXPIRE_MINUTES=60
|
|
|
|
# Refresh token expiration time in days
|
|
REFRESH_TOKEN_EXPIRE_DAYS=30
|
|
|
|
# celery configuration
|
|
CELERY_BROKER_URL=redis://:difyai123456@localhost:6379/1
|
|
|
|
# redis configuration
|
|
REDIS_HOST=localhost
|
|
REDIS_PORT=6379
|
|
REDIS_USERNAME=
|
|
REDIS_PASSWORD=difyai123456
|
|
REDIS_USE_SSL=false
|
|
REDIS_DB=0
|
|
|
|
# redis Sentinel configuration.
|
|
REDIS_USE_SENTINEL=false
|
|
REDIS_SENTINELS=
|
|
REDIS_SENTINEL_SERVICE_NAME=
|
|
REDIS_SENTINEL_USERNAME=
|
|
REDIS_SENTINEL_PASSWORD=
|
|
REDIS_SENTINEL_SOCKET_TIMEOUT=0.1
|
|
|
|
# redis Cluster configuration.
|
|
REDIS_USE_CLUSTERS=false
|
|
REDIS_CLUSTERS=
|
|
REDIS_CLUSTERS_PASSWORD=
|
|
|
|
# PostgreSQL database configuration
|
|
DB_USERNAME=postgres
|
|
DB_PASSWORD=difyai123456
|
|
DB_HOST=localhost
|
|
DB_PORT=5432
|
|
DB_DATABASE=dify
|
|
|
|
# Storage configuration
|
|
# use for store upload files, private keys...
|
|
# storage type: opendal, s3, aliyun-oss, azure-blob, baidu-obs, google-storage, huawei-obs, oci-storage, tencent-cos, volcengine-tos, supabase
|
|
STORAGE_TYPE=opendal
|
|
|
|
# Apache OpenDAL storage configuration, refer to https://github.com/apache/opendal
|
|
OPENDAL_SCHEME=fs
|
|
OPENDAL_FS_ROOT=storage
|
|
|
|
# S3 Storage configuration
|
|
S3_USE_AWS_MANAGED_IAM=false
|
|
S3_ENDPOINT=https://your-bucket-name.storage.s3.cloudflare.com
|
|
S3_BUCKET_NAME=your-bucket-name
|
|
S3_ACCESS_KEY=your-access-key
|
|
S3_SECRET_KEY=your-secret-key
|
|
S3_REGION=your-region
|
|
|
|
# Azure Blob Storage configuration
|
|
AZURE_BLOB_ACCOUNT_NAME=your-account-name
|
|
AZURE_BLOB_ACCOUNT_KEY=your-account-key
|
|
AZURE_BLOB_CONTAINER_NAME=your-container-name
|
|
AZURE_BLOB_ACCOUNT_URL=https://<your_account_name>.blob.core.windows.net
|
|
|
|
# Aliyun oss Storage configuration
|
|
ALIYUN_OSS_BUCKET_NAME=your-bucket-name
|
|
ALIYUN_OSS_ACCESS_KEY=your-access-key
|
|
ALIYUN_OSS_SECRET_KEY=your-secret-key
|
|
ALIYUN_OSS_ENDPOINT=your-endpoint
|
|
ALIYUN_OSS_AUTH_VERSION=v1
|
|
ALIYUN_OSS_REGION=your-region
|
|
# Don't start with '/'. OSS doesn't support leading slash in object names.
|
|
ALIYUN_OSS_PATH=your-path
|
|
|
|
# Google Storage configuration
|
|
GOOGLE_STORAGE_BUCKET_NAME=your-bucket-name
|
|
GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64=your-google-service-account-json-base64-string
|
|
|
|
# Tencent COS Storage configuration
|
|
TENCENT_COS_BUCKET_NAME=your-bucket-name
|
|
TENCENT_COS_SECRET_KEY=your-secret-key
|
|
TENCENT_COS_SECRET_ID=your-secret-id
|
|
TENCENT_COS_REGION=your-region
|
|
TENCENT_COS_SCHEME=your-scheme
|
|
|
|
# Huawei OBS Storage Configuration
|
|
HUAWEI_OBS_BUCKET_NAME=your-bucket-name
|
|
HUAWEI_OBS_SECRET_KEY=your-secret-key
|
|
HUAWEI_OBS_ACCESS_KEY=your-access-key
|
|
HUAWEI_OBS_SERVER=your-server-url
|
|
|
|
# Baidu OBS Storage Configuration
|
|
BAIDU_OBS_BUCKET_NAME=your-bucket-name
|
|
BAIDU_OBS_SECRET_KEY=your-secret-key
|
|
BAIDU_OBS_ACCESS_KEY=your-access-key
|
|
BAIDU_OBS_ENDPOINT=your-server-url
|
|
|
|
# OCI Storage configuration
|
|
OCI_ENDPOINT=your-endpoint
|
|
OCI_BUCKET_NAME=your-bucket-name
|
|
OCI_ACCESS_KEY=your-access-key
|
|
OCI_SECRET_KEY=your-secret-key
|
|
OCI_REGION=your-region
|
|
|
|
# Volcengine tos Storage configuration
|
|
VOLCENGINE_TOS_ENDPOINT=your-endpoint
|
|
VOLCENGINE_TOS_BUCKET_NAME=your-bucket-name
|
|
VOLCENGINE_TOS_ACCESS_KEY=your-access-key
|
|
VOLCENGINE_TOS_SECRET_KEY=your-secret-key
|
|
VOLCENGINE_TOS_REGION=your-region
|
|
|
|
# Supabase Storage Configuration
|
|
SUPABASE_BUCKET_NAME=your-bucket-name
|
|
SUPABASE_API_KEY=your-access-key
|
|
SUPABASE_URL=your-server-url
|
|
|
|
# CORS configuration
|
|
WEB_API_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
|
|
CONSOLE_CORS_ALLOW_ORIGINS=http://127.0.0.1:3000,*
|
|
|
|
# Vector database configuration
|
|
# support: weaviate, qdrant, milvus, myscale, relyt, pgvecto_rs, pgvector, pgvector, chroma, opensearch, tidb_vector, couchbase, vikingdb, upstash, lindorm, oceanbase
|
|
VECTOR_STORE=weaviate
|
|
|
|
# Weaviate configuration
|
|
WEAVIATE_ENDPOINT=http://localhost:8080
|
|
WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
|
|
WEAVIATE_GRPC_ENABLED=false
|
|
WEAVIATE_BATCH_SIZE=100
|
|
|
|
# Qdrant configuration, use `http://localhost:6333` for local mode or `https://your-qdrant-cluster-url.qdrant.io` for remote mode
|
|
QDRANT_URL=http://localhost:6333
|
|
QDRANT_API_KEY=difyai123456
|
|
QDRANT_CLIENT_TIMEOUT=20
|
|
QDRANT_GRPC_ENABLED=false
|
|
QDRANT_GRPC_PORT=6334
|
|
|
|
#Couchbase configuration
|
|
COUCHBASE_CONNECTION_STRING=127.0.0.1
|
|
COUCHBASE_USER=Administrator
|
|
COUCHBASE_PASSWORD=password
|
|
COUCHBASE_BUCKET_NAME=Embeddings
|
|
COUCHBASE_SCOPE_NAME=_default
|
|
|
|
# Milvus configuration
|
|
MILVUS_URI=http://127.0.0.1:19530
|
|
MILVUS_TOKEN=
|
|
MILVUS_USER=root
|
|
MILVUS_PASSWORD=Milvus
|
|
|
|
# MyScale configuration
|
|
MYSCALE_HOST=127.0.0.1
|
|
MYSCALE_PORT=8123
|
|
MYSCALE_USER=default
|
|
MYSCALE_PASSWORD=
|
|
MYSCALE_DATABASE=default
|
|
MYSCALE_FTS_PARAMS=
|
|
|
|
# Relyt configuration
|
|
RELYT_HOST=127.0.0.1
|
|
RELYT_PORT=5432
|
|
RELYT_USER=postgres
|
|
RELYT_PASSWORD=postgres
|
|
RELYT_DATABASE=postgres
|
|
|
|
# Tencent configuration
|
|
TENCENT_VECTOR_DB_URL=http://127.0.0.1
|
|
TENCENT_VECTOR_DB_API_KEY=dify
|
|
TENCENT_VECTOR_DB_TIMEOUT=30
|
|
TENCENT_VECTOR_DB_USERNAME=dify
|
|
TENCENT_VECTOR_DB_DATABASE=dify
|
|
TENCENT_VECTOR_DB_SHARD=1
|
|
TENCENT_VECTOR_DB_REPLICAS=2
|
|
|
|
# ElasticSearch configuration
|
|
ELASTICSEARCH_HOST=127.0.0.1
|
|
ELASTICSEARCH_PORT=9200
|
|
ELASTICSEARCH_USERNAME=elastic
|
|
ELASTICSEARCH_PASSWORD=elastic
|
|
|
|
# PGVECTO_RS configuration
|
|
PGVECTO_RS_HOST=localhost
|
|
PGVECTO_RS_PORT=5431
|
|
PGVECTO_RS_USER=postgres
|
|
PGVECTO_RS_PASSWORD=difyai123456
|
|
PGVECTO_RS_DATABASE=postgres
|
|
|
|
# PGVector configuration
|
|
PGVECTOR_HOST=127.0.0.1
|
|
PGVECTOR_PORT=5433
|
|
PGVECTOR_USER=postgres
|
|
PGVECTOR_PASSWORD=postgres
|
|
PGVECTOR_DATABASE=postgres
|
|
PGVECTOR_MIN_CONNECTION=1
|
|
PGVECTOR_MAX_CONNECTION=5
|
|
|
|
# Tidb Vector configuration
|
|
TIDB_VECTOR_HOST=xxx.eu-central-1.xxx.aws.tidbcloud.com
|
|
TIDB_VECTOR_PORT=4000
|
|
TIDB_VECTOR_USER=xxx.root
|
|
TIDB_VECTOR_PASSWORD=xxxxxx
|
|
TIDB_VECTOR_DATABASE=dify
|
|
|
|
# Tidb on qdrant configuration
|
|
TIDB_ON_QDRANT_URL=http://127.0.0.1
|
|
TIDB_ON_QDRANT_API_KEY=dify
|
|
TIDB_ON_QDRANT_CLIENT_TIMEOUT=20
|
|
TIDB_ON_QDRANT_GRPC_ENABLED=false
|
|
TIDB_ON_QDRANT_GRPC_PORT=6334
|
|
TIDB_PUBLIC_KEY=dify
|
|
TIDB_PRIVATE_KEY=dify
|
|
TIDB_API_URL=http://127.0.0.1
|
|
TIDB_IAM_API_URL=http://127.0.0.1
|
|
TIDB_REGION=regions/aws-us-east-1
|
|
TIDB_PROJECT_ID=dify
|
|
TIDB_SPEND_LIMIT=100
|
|
|
|
# Chroma configuration
|
|
CHROMA_HOST=127.0.0.1
|
|
CHROMA_PORT=8000
|
|
CHROMA_TENANT=default_tenant
|
|
CHROMA_DATABASE=default_database
|
|
CHROMA_AUTH_PROVIDER=chromadb.auth.token_authn.TokenAuthenticationServerProvider
|
|
CHROMA_AUTH_CREDENTIALS=difyai123456
|
|
|
|
# AnalyticDB configuration
|
|
ANALYTICDB_KEY_ID=your-ak
|
|
ANALYTICDB_KEY_SECRET=your-sk
|
|
ANALYTICDB_REGION_ID=cn-hangzhou
|
|
ANALYTICDB_INSTANCE_ID=gp-ab123456
|
|
ANALYTICDB_ACCOUNT=testaccount
|
|
ANALYTICDB_PASSWORD=testpassword
|
|
ANALYTICDB_NAMESPACE=dify
|
|
ANALYTICDB_NAMESPACE_PASSWORD=difypassword
|
|
ANALYTICDB_HOST=gp-test.aliyuncs.com
|
|
ANALYTICDB_PORT=5432
|
|
ANALYTICDB_MIN_CONNECTION=1
|
|
ANALYTICDB_MAX_CONNECTION=5
|
|
|
|
# OpenSearch configuration
|
|
OPENSEARCH_HOST=127.0.0.1
|
|
OPENSEARCH_PORT=9200
|
|
OPENSEARCH_USER=admin
|
|
OPENSEARCH_PASSWORD=admin
|
|
OPENSEARCH_SECURE=true
|
|
|
|
# Baidu configuration
|
|
BAIDU_VECTOR_DB_ENDPOINT=http://127.0.0.1:5287
|
|
BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS=30000
|
|
BAIDU_VECTOR_DB_ACCOUNT=root
|
|
BAIDU_VECTOR_DB_API_KEY=dify
|
|
BAIDU_VECTOR_DB_DATABASE=dify
|
|
BAIDU_VECTOR_DB_SHARD=1
|
|
BAIDU_VECTOR_DB_REPLICAS=3
|
|
|
|
# Upstash configuration
|
|
UPSTASH_VECTOR_URL=your-server-url
|
|
UPSTASH_VECTOR_TOKEN=your-access-token
|
|
|
|
# ViKingDB configuration
|
|
VIKINGDB_ACCESS_KEY=your-ak
|
|
VIKINGDB_SECRET_KEY=your-sk
|
|
VIKINGDB_REGION=cn-shanghai
|
|
VIKINGDB_HOST=api-vikingdb.xxx.volces.com
|
|
VIKINGDB_SCHEMA=http
|
|
VIKINGDB_CONNECTION_TIMEOUT=30
|
|
VIKINGDB_SOCKET_TIMEOUT=30
|
|
|
|
# Lindorm configuration
|
|
LINDORM_URL=http://ld-*******************-proxy-search-pub.lindorm.aliyuncs.com:30070
|
|
LINDORM_USERNAME=admin
|
|
LINDORM_PASSWORD=admin
|
|
USING_UGC_INDEX=False
|
|
|
|
# OceanBase Vector configuration
|
|
OCEANBASE_VECTOR_HOST=127.0.0.1
|
|
OCEANBASE_VECTOR_PORT=2881
|
|
OCEANBASE_VECTOR_USER=root@test
|
|
OCEANBASE_VECTOR_PASSWORD=difyai123456
|
|
OCEANBASE_VECTOR_DATABASE=test
|
|
OCEANBASE_MEMORY_LIMIT=6G
|
|
|
|
|
|
# Upload configuration
|
|
UPLOAD_FILE_SIZE_LIMIT=15
|
|
UPLOAD_FILE_BATCH_LIMIT=5
|
|
UPLOAD_IMAGE_FILE_SIZE_LIMIT=10
|
|
UPLOAD_VIDEO_FILE_SIZE_LIMIT=100
|
|
UPLOAD_AUDIO_FILE_SIZE_LIMIT=50
|
|
|
|
# Model configuration
|
|
MULTIMODAL_SEND_FORMAT=base64
|
|
PROMPT_GENERATION_MAX_TOKENS=512
|
|
CODE_GENERATION_MAX_TOKENS=1024
|
|
|
|
# Mail configuration, support: resend, smtp
|
|
MAIL_TYPE=
|
|
MAIL_DEFAULT_SEND_FROM=no-reply <no-reply@dify.ai>
|
|
RESEND_API_KEY=
|
|
RESEND_API_URL=https://api.resend.com
|
|
# smtp configuration
|
|
SMTP_SERVER=smtp.gmail.com
|
|
SMTP_PORT=465
|
|
SMTP_USERNAME=123
|
|
SMTP_PASSWORD=abc
|
|
SMTP_USE_TLS=true
|
|
SMTP_OPPORTUNISTIC_TLS=false
|
|
|
|
# Sentry configuration
|
|
SENTRY_DSN=
|
|
|
|
# DEBUG
|
|
DEBUG=false
|
|
SQLALCHEMY_ECHO=false
|
|
|
|
# Notion import configuration, support public and internal
|
|
NOTION_INTEGRATION_TYPE=public
|
|
NOTION_CLIENT_SECRET=you-client-secret
|
|
NOTION_CLIENT_ID=you-client-id
|
|
NOTION_INTERNAL_SECRET=you-internal-secret
|
|
|
|
ETL_TYPE=dify
|
|
UNSTRUCTURED_API_URL=
|
|
UNSTRUCTURED_API_KEY=
|
|
SCARF_NO_ANALYTICS=true
|
|
|
|
#ssrf
|
|
SSRF_PROXY_HTTP_URL=
|
|
SSRF_PROXY_HTTPS_URL=
|
|
SSRF_DEFAULT_MAX_RETRIES=3
|
|
SSRF_DEFAULT_TIME_OUT=5
|
|
SSRF_DEFAULT_CONNECT_TIME_OUT=5
|
|
SSRF_DEFAULT_READ_TIME_OUT=5
|
|
SSRF_DEFAULT_WRITE_TIME_OUT=5
|
|
|
|
BATCH_UPLOAD_LIMIT=10
|
|
KEYWORD_DATA_SOURCE_TYPE=database
|
|
|
|
# Workflow file upload limit
|
|
WORKFLOW_FILE_UPLOAD_LIMIT=10
|
|
|
|
# CODE EXECUTION CONFIGURATION
|
|
CODE_EXECUTION_ENDPOINT=http://127.0.0.1:8194
|
|
CODE_EXECUTION_API_KEY=dify-sandbox
|
|
CODE_MAX_NUMBER=9223372036854775807
|
|
CODE_MIN_NUMBER=-9223372036854775808
|
|
CODE_MAX_STRING_LENGTH=80000
|
|
TEMPLATE_TRANSFORM_MAX_LENGTH=80000
|
|
CODE_MAX_STRING_ARRAY_LENGTH=30
|
|
CODE_MAX_OBJECT_ARRAY_LENGTH=30
|
|
CODE_MAX_NUMBER_ARRAY_LENGTH=1000
|
|
|
|
# API Tool configuration
|
|
API_TOOL_DEFAULT_CONNECT_TIMEOUT=10
|
|
API_TOOL_DEFAULT_READ_TIMEOUT=60
|
|
|
|
# HTTP Node configuration
|
|
HTTP_REQUEST_MAX_CONNECT_TIMEOUT=300
|
|
HTTP_REQUEST_MAX_READ_TIMEOUT=600
|
|
HTTP_REQUEST_MAX_WRITE_TIMEOUT=600
|
|
HTTP_REQUEST_NODE_MAX_BINARY_SIZE=10485760
|
|
HTTP_REQUEST_NODE_MAX_TEXT_SIZE=1048576
|
|
|
|
# Respect X-* headers to redirect clients
|
|
RESPECT_XFORWARD_HEADERS_ENABLED=false
|
|
|
|
# Log file path
|
|
LOG_FILE=
|
|
# Log file max size, the unit is MB
|
|
LOG_FILE_MAX_SIZE=20
|
|
# Log file max backup count
|
|
LOG_FILE_BACKUP_COUNT=5
|
|
# Log dateformat
|
|
LOG_DATEFORMAT=%Y-%m-%d %H:%M:%S
|
|
# Log Timezone
|
|
LOG_TZ=UTC
|
|
# Log format
|
|
LOG_FORMAT=%(asctime)s,%(msecs)d %(levelname)-2s [%(filename)s:%(lineno)d] %(req_id)s %(message)s
|
|
|
|
# Indexing configuration
|
|
INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH=4000
|
|
|
|
# Workflow runtime configuration
|
|
WORKFLOW_MAX_EXECUTION_STEPS=500
|
|
WORKFLOW_MAX_EXECUTION_TIME=1200
|
|
WORKFLOW_CALL_MAX_DEPTH=5
|
|
WORKFLOW_PARALLEL_DEPTH_LIMIT=3
|
|
MAX_VARIABLE_SIZE=204800
|
|
|
|
# App configuration
|
|
APP_MAX_EXECUTION_TIME=1200
|
|
APP_MAX_ACTIVE_REQUESTS=0
|
|
|
|
# Celery beat configuration
|
|
CELERY_BEAT_SCHEDULER_TIME=1
|
|
|
|
# Position configuration
|
|
POSITION_TOOL_PINS=
|
|
POSITION_TOOL_INCLUDES=
|
|
POSITION_TOOL_EXCLUDES=
|
|
|
|
POSITION_PROVIDER_PINS=
|
|
POSITION_PROVIDER_INCLUDES=
|
|
POSITION_PROVIDER_EXCLUDES=
|
|
|
|
# Plugin configuration
|
|
PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi
|
|
PLUGIN_DAEMON_URL=http://127.0.0.1:5002
|
|
PLUGIN_REMOTE_INSTALL_PORT=5003
|
|
PLUGIN_REMOTE_INSTALL_HOST=localhost
|
|
PLUGIN_MAX_PACKAGE_SIZE=15728640
|
|
INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1
|
|
INNER_API_KEY_FOR_PLUGIN=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1
|
|
|
|
# Marketplace configuration
|
|
MARKETPLACE_ENABLED=true
|
|
MARKETPLACE_API_URL=https://marketplace.dify.ai
|
|
|
|
# Endpoint configuration
|
|
ENDPOINT_URL_TEMPLATE=http://localhost:5002/e/{hook_id}
|
|
|
|
# Reset password token expiry minutes
|
|
RESET_PASSWORD_TOKEN_EXPIRY_MINUTES=5
|
|
|
|
CREATE_TIDB_SERVICE_JOB_ENABLED=false
|
|
|
|
# Maximum number of submitted thread count in a ThreadPool for parallel node execution
|
|
MAX_SUBMIT_COUNT=100
|
|
# Lockout duration in seconds
|
|
LOGIN_LOCKOUT_DURATION=86400 |