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.

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 月之前
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 月之前
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162
  1. # ------------------------------
  2. # Environment Variables for API service & worker
  3. # ------------------------------
  4. # ------------------------------
  5. # Common Variables
  6. # ------------------------------
  7. # The backend URL of the console API,
  8. # used to concatenate the authorization callback.
  9. # If empty, it is the same domain.
  10. # Example: https://api.console.dify.ai
  11. CONSOLE_API_URL=
  12. # The front-end URL of the console web,
  13. # used to concatenate some front-end addresses and for CORS configuration use.
  14. # If empty, it is the same domain.
  15. # Example: https://console.dify.ai
  16. CONSOLE_WEB_URL=
  17. # Service API Url,
  18. # used to display Service API Base Url to the front-end.
  19. # If empty, it is the same domain.
  20. # Example: https://api.dify.ai
  21. SERVICE_API_URL=
  22. # WebApp API backend Url,
  23. # used to declare the back-end URL for the front-end API.
  24. # If empty, it is the same domain.
  25. # Example: https://api.app.dify.ai
  26. APP_API_URL=
  27. # WebApp Url,
  28. # used to display WebAPP API Base Url to the front-end.
  29. # If empty, it is the same domain.
  30. # Example: https://app.dify.ai
  31. APP_WEB_URL=
  32. # File preview or download Url prefix.
  33. # used to display File preview or download Url to the front-end or as Multi-model inputs;
  34. # Url is signed and has expiration time.
  35. # Setting FILES_URL is required for file processing plugins.
  36. # - For https://example.com, use FILES_URL=https://example.com
  37. # - For http://example.com, use FILES_URL=http://example.com
  38. # Recommendation: use a dedicated domain (e.g., https://upload.example.com).
  39. # Alternatively, use http://<your-ip>:5001 or http://api:5001,
  40. # ensuring port 5001 is externally accessible (see docker-compose.yaml).
  41. FILES_URL=
  42. # INTERNAL_FILES_URL is used for plugin daemon communication within Docker network.
  43. # Set this to the internal Docker service URL for proper plugin file access.
  44. # Example: INTERNAL_FILES_URL=http://api:5001
  45. INTERNAL_FILES_URL=
  46. # ------------------------------
  47. # Server Configuration
  48. # ------------------------------
  49. # The log level for the application.
  50. # Supported values are `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL`
  51. LOG_LEVEL=INFO
  52. # Log file path
  53. LOG_FILE=/app/logs/server.log
  54. # Log file max size, the unit is MB
  55. LOG_FILE_MAX_SIZE=20
  56. # Log file max backup count
  57. LOG_FILE_BACKUP_COUNT=5
  58. # Log dateformat
  59. LOG_DATEFORMAT=%Y-%m-%d %H:%M:%S
  60. # Log Timezone
  61. LOG_TZ=UTC
  62. # Debug mode, default is false.
  63. # It is recommended to turn on this configuration for local development
  64. # to prevent some problems caused by monkey patch.
  65. DEBUG=false
  66. # Flask debug mode, it can output trace information at the interface when turned on,
  67. # which is convenient for debugging.
  68. FLASK_DEBUG=false
  69. # Enable request logging, which will log the request and response information.
  70. # And the log level is DEBUG
  71. ENABLE_REQUEST_LOGGING=False
  72. # A secret key that is used for securely signing the session cookie
  73. # and encrypting sensitive information on the database.
  74. # You can generate a strong key using `openssl rand -base64 42`.
  75. SECRET_KEY=sk-9f73s3ljTXVcMT3Blb3ljTqtsKiGHXVcMT3BlbkFJLK7U
  76. # Password for admin user initialization.
  77. # If left unset, admin user will not be prompted for a password
  78. # when creating the initial admin account.
  79. # The length of the password cannot exceed 30 characters.
  80. INIT_PASSWORD=
  81. # Deployment environment.
  82. # Supported values are `PRODUCTION`, `TESTING`. Default is `PRODUCTION`.
  83. # Testing environment. There will be a distinct color label on the front-end page,
  84. # indicating that this environment is a testing environment.
  85. DEPLOY_ENV=PRODUCTION
  86. # Whether to enable the version check policy.
  87. # If set to empty, https://updates.dify.ai will be called for version check.
  88. CHECK_UPDATE_URL=https://updates.dify.ai
  89. # Used to change the OpenAI base address, default is https://api.openai.com/v1.
  90. # When OpenAI cannot be accessed in China, replace it with a domestic mirror address,
  91. # or when a local model provides OpenAI compatible API, it can be replaced.
  92. OPENAI_API_BASE=https://api.openai.com/v1
  93. # When enabled, migrations will be executed prior to application startup
  94. # and the application will start after the migrations have completed.
  95. MIGRATION_ENABLED=true
  96. # File Access Time specifies a time interval in seconds for the file to be accessed.
  97. # The default value is 300 seconds.
  98. FILES_ACCESS_TIMEOUT=300
  99. # Access token expiration time in minutes
  100. ACCESS_TOKEN_EXPIRE_MINUTES=60
  101. # Refresh token expiration time in days
  102. REFRESH_TOKEN_EXPIRE_DAYS=30
  103. # The maximum number of active requests for the application, where 0 means unlimited, should be a non-negative integer.
  104. APP_MAX_ACTIVE_REQUESTS=0
  105. APP_MAX_EXECUTION_TIME=1200
  106. # ------------------------------
  107. # Container Startup Related Configuration
  108. # Only effective when starting with docker image or docker-compose.
  109. # ------------------------------
  110. # API service binding address, default: 0.0.0.0, i.e., all addresses can be accessed.
  111. DIFY_BIND_ADDRESS=0.0.0.0
  112. # API service binding port number, default 5001.
  113. DIFY_PORT=5001
  114. # The number of API server workers, i.e., the number of workers.
  115. # Formula: number of cpu cores x 2 + 1 for sync, 1 for Gevent
  116. # Reference: https://docs.gunicorn.org/en/stable/design.html#how-many-workers
  117. SERVER_WORKER_AMOUNT=1
  118. # Defaults to gevent. If using windows, it can be switched to sync or solo.
  119. SERVER_WORKER_CLASS=gevent
  120. # Default number of worker connections, the default is 10.
  121. SERVER_WORKER_CONNECTIONS=10
  122. # Similar to SERVER_WORKER_CLASS.
  123. # If using windows, it can be switched to sync or solo.
  124. CELERY_WORKER_CLASS=
  125. # Request handling timeout. The default is 200,
  126. # it is recommended to set it to 360 to support a longer sse connection time.
  127. GUNICORN_TIMEOUT=360
  128. # The number of Celery workers. The default is 1, and can be set as needed.
  129. CELERY_WORKER_AMOUNT=
  130. # Flag indicating whether to enable autoscaling of Celery workers.
  131. #
  132. # Autoscaling is useful when tasks are CPU intensive and can be dynamically
  133. # allocated and deallocated based on the workload.
  134. #
  135. # When autoscaling is enabled, the maximum and minimum number of workers can
  136. # be specified. The autoscaling algorithm will dynamically adjust the number
  137. # of workers within the specified range.
  138. #
  139. # Default is false (i.e., autoscaling is disabled).
  140. #
  141. # Example:
  142. # CELERY_AUTO_SCALE=true
  143. CELERY_AUTO_SCALE=false
  144. # The maximum number of Celery workers that can be autoscaled.
  145. # This is optional and only used when autoscaling is enabled.
  146. # Default is not set.
  147. CELERY_MAX_WORKERS=
  148. # The minimum number of Celery workers that can be autoscaled.
  149. # This is optional and only used when autoscaling is enabled.
  150. # Default is not set.
  151. CELERY_MIN_WORKERS=
  152. # API Tool configuration
  153. API_TOOL_DEFAULT_CONNECT_TIMEOUT=10
  154. API_TOOL_DEFAULT_READ_TIMEOUT=60
  155. # -------------------------------
  156. # Datasource Configuration
  157. # --------------------------------
  158. ENABLE_WEBSITE_JINAREADER=true
  159. ENABLE_WEBSITE_FIRECRAWL=true
  160. ENABLE_WEBSITE_WATERCRAWL=true
  161. # ------------------------------
  162. # Database Configuration
  163. # The database uses PostgreSQL. Please use the public schema.
  164. # It is consistent with the configuration in the 'db' service below.
  165. # ------------------------------
  166. DB_USERNAME=postgres
  167. DB_PASSWORD=difyai123456
  168. DB_HOST=db
  169. DB_PORT=5432
  170. DB_DATABASE=dify
  171. # The size of the database connection pool.
  172. # The default is 30 connections, which can be appropriately increased.
  173. SQLALCHEMY_POOL_SIZE=30
  174. # Database connection pool recycling time, the default is 3600 seconds.
  175. SQLALCHEMY_POOL_RECYCLE=3600
  176. # Whether to print SQL, default is false.
  177. SQLALCHEMY_ECHO=false
  178. # If True, will test connections for liveness upon each checkout
  179. SQLALCHEMY_POOL_PRE_PING=false
  180. # Whether to enable the Last in first out option or use default FIFO queue if is false
  181. SQLALCHEMY_POOL_USE_LIFO=false
  182. # Maximum number of connections to the database
  183. # Default is 100
  184. #
  185. # Reference: https://www.postgresql.org/docs/current/runtime-config-connection.html#GUC-MAX-CONNECTIONS
  186. POSTGRES_MAX_CONNECTIONS=100
  187. # Sets the amount of shared memory used for postgres's shared buffers.
  188. # Default is 128MB
  189. # Recommended value: 25% of available memory
  190. # Reference: https://www.postgresql.org/docs/current/runtime-config-resource.html#GUC-SHARED-BUFFERS
  191. POSTGRES_SHARED_BUFFERS=128MB
  192. # Sets the amount of memory used by each database worker for working space.
  193. # Default is 4MB
  194. #
  195. # Reference: https://www.postgresql.org/docs/current/runtime-config-resource.html#GUC-WORK-MEM
  196. POSTGRES_WORK_MEM=4MB
  197. # Sets the amount of memory reserved for maintenance activities.
  198. # Default is 64MB
  199. #
  200. # Reference: https://www.postgresql.org/docs/current/runtime-config-resource.html#GUC-MAINTENANCE-WORK-MEM
  201. POSTGRES_MAINTENANCE_WORK_MEM=64MB
  202. # Sets the planner's assumption about the effective cache size.
  203. # Default is 4096MB
  204. #
  205. # Reference: https://www.postgresql.org/docs/current/runtime-config-query.html#GUC-EFFECTIVE-CACHE-SIZE
  206. POSTGRES_EFFECTIVE_CACHE_SIZE=4096MB
  207. # ------------------------------
  208. # Redis Configuration
  209. # This Redis configuration is used for caching and for pub/sub during conversation.
  210. # ------------------------------
  211. REDIS_HOST=redis
  212. REDIS_PORT=6379
  213. REDIS_USERNAME=
  214. REDIS_PASSWORD=difyai123456
  215. REDIS_USE_SSL=false
  216. REDIS_DB=0
  217. # Whether to use Redis Sentinel mode.
  218. # If set to true, the application will automatically discover and connect to the master node through Sentinel.
  219. REDIS_USE_SENTINEL=false
  220. # List of Redis Sentinel nodes. If Sentinel mode is enabled, provide at least one Sentinel IP and port.
  221. # Format: `<sentinel1_ip>:<sentinel1_port>,<sentinel2_ip>:<sentinel2_port>,<sentinel3_ip>:<sentinel3_port>`
  222. REDIS_SENTINELS=
  223. REDIS_SENTINEL_SERVICE_NAME=
  224. REDIS_SENTINEL_USERNAME=
  225. REDIS_SENTINEL_PASSWORD=
  226. REDIS_SENTINEL_SOCKET_TIMEOUT=0.1
  227. # List of Redis Cluster nodes. If Cluster mode is enabled, provide at least one Cluster IP and port.
  228. # Format: `<Cluster1_ip>:<Cluster1_port>,<Cluster2_ip>:<Cluster2_port>,<Cluster3_ip>:<Cluster3_port>`
  229. REDIS_USE_CLUSTERS=false
  230. REDIS_CLUSTERS=
  231. REDIS_CLUSTERS_PASSWORD=
  232. # ------------------------------
  233. # Celery Configuration
  234. # ------------------------------
  235. # Use redis as the broker, and redis db 1 for celery broker.
  236. # Format as follows: `redis://<redis_username>:<redis_password>@<redis_host>:<redis_port>/<redis_database>`
  237. # Example: redis://:difyai123456@redis:6379/1
  238. # If use Redis Sentinel, format as follows: `sentinel://<sentinel_username>:<sentinel_password>@<sentinel_host>:<sentinel_port>/<redis_database>`
  239. # Example: sentinel://localhost:26379/1;sentinel://localhost:26380/1;sentinel://localhost:26381/1
  240. CELERY_BROKER_URL=redis://:difyai123456@redis:6379/1
  241. BROKER_USE_SSL=false
  242. # If you are using Redis Sentinel for high availability, configure the following settings.
  243. CELERY_USE_SENTINEL=false
  244. CELERY_SENTINEL_MASTER_NAME=
  245. CELERY_SENTINEL_PASSWORD=
  246. CELERY_SENTINEL_SOCKET_TIMEOUT=0.1
  247. # ------------------------------
  248. # CORS Configuration
  249. # Used to set the front-end cross-domain access policy.
  250. # ------------------------------
  251. # Specifies the allowed origins for cross-origin requests to the Web API,
  252. # e.g. https://dify.app or * for all origins.
  253. WEB_API_CORS_ALLOW_ORIGINS=*
  254. # Specifies the allowed origins for cross-origin requests to the console API,
  255. # e.g. https://cloud.dify.ai or * for all origins.
  256. CONSOLE_CORS_ALLOW_ORIGINS=*
  257. # ------------------------------
  258. # File Storage Configuration
  259. # ------------------------------
  260. # The type of storage to use for storing user files.
  261. STORAGE_TYPE=opendal
  262. # Apache OpenDAL Configuration
  263. # The configuration for OpenDAL consists of the following format: OPENDAL_<SCHEME_NAME>_<CONFIG_NAME>.
  264. # You can find all the service configurations (CONFIG_NAME) in the repository at: https://github.com/apache/opendal/tree/main/core/src/services.
  265. # Dify will scan configurations starting with OPENDAL_<SCHEME_NAME> and automatically apply them.
  266. # The scheme name for the OpenDAL storage.
  267. OPENDAL_SCHEME=fs
  268. # Configurations for OpenDAL Local File System.
  269. OPENDAL_FS_ROOT=storage
  270. # S3 Configuration
  271. #
  272. S3_ENDPOINT=
  273. S3_REGION=us-east-1
  274. S3_BUCKET_NAME=difyai
  275. S3_ACCESS_KEY=
  276. S3_SECRET_KEY=
  277. # Whether to use AWS managed IAM roles for authenticating with the S3 service.
  278. # If set to false, the access key and secret key must be provided.
  279. S3_USE_AWS_MANAGED_IAM=false
  280. # Azure Blob Configuration
  281. #
  282. AZURE_BLOB_ACCOUNT_NAME=difyai
  283. AZURE_BLOB_ACCOUNT_KEY=difyai
  284. AZURE_BLOB_CONTAINER_NAME=difyai-container
  285. AZURE_BLOB_ACCOUNT_URL=https://<your_account_name>.blob.core.windows.net
  286. # Google Storage Configuration
  287. #
  288. GOOGLE_STORAGE_BUCKET_NAME=your-bucket-name
  289. GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64=
  290. # The Alibaba Cloud OSS configurations,
  291. #
  292. ALIYUN_OSS_BUCKET_NAME=your-bucket-name
  293. ALIYUN_OSS_ACCESS_KEY=your-access-key
  294. ALIYUN_OSS_SECRET_KEY=your-secret-key
  295. ALIYUN_OSS_ENDPOINT=https://oss-ap-southeast-1-internal.aliyuncs.com
  296. ALIYUN_OSS_REGION=ap-southeast-1
  297. ALIYUN_OSS_AUTH_VERSION=v4
  298. # Don't start with '/'. OSS doesn't support leading slash in object names.
  299. ALIYUN_OSS_PATH=your-path
  300. # Tencent COS Configuration
  301. #
  302. TENCENT_COS_BUCKET_NAME=your-bucket-name
  303. TENCENT_COS_SECRET_KEY=your-secret-key
  304. TENCENT_COS_SECRET_ID=your-secret-id
  305. TENCENT_COS_REGION=your-region
  306. TENCENT_COS_SCHEME=your-scheme
  307. # Oracle Storage Configuration
  308. #
  309. OCI_ENDPOINT=https://your-object-storage-namespace.compat.objectstorage.us-ashburn-1.oraclecloud.com
  310. OCI_BUCKET_NAME=your-bucket-name
  311. OCI_ACCESS_KEY=your-access-key
  312. OCI_SECRET_KEY=your-secret-key
  313. OCI_REGION=us-ashburn-1
  314. # Huawei OBS Configuration
  315. #
  316. HUAWEI_OBS_BUCKET_NAME=your-bucket-name
  317. HUAWEI_OBS_SECRET_KEY=your-secret-key
  318. HUAWEI_OBS_ACCESS_KEY=your-access-key
  319. HUAWEI_OBS_SERVER=your-server-url
  320. # Volcengine TOS Configuration
  321. #
  322. VOLCENGINE_TOS_BUCKET_NAME=your-bucket-name
  323. VOLCENGINE_TOS_SECRET_KEY=your-secret-key
  324. VOLCENGINE_TOS_ACCESS_KEY=your-access-key
  325. VOLCENGINE_TOS_ENDPOINT=your-server-url
  326. VOLCENGINE_TOS_REGION=your-region
  327. # Baidu OBS Storage Configuration
  328. #
  329. BAIDU_OBS_BUCKET_NAME=your-bucket-name
  330. BAIDU_OBS_SECRET_KEY=your-secret-key
  331. BAIDU_OBS_ACCESS_KEY=your-access-key
  332. BAIDU_OBS_ENDPOINT=your-server-url
  333. # Supabase Storage Configuration
  334. #
  335. SUPABASE_BUCKET_NAME=your-bucket-name
  336. SUPABASE_API_KEY=your-access-key
  337. SUPABASE_URL=your-server-url
  338. # ------------------------------
  339. # Vector Database Configuration
  340. # ------------------------------
  341. # The type of vector store to use.
  342. # 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`.
  343. VECTOR_STORE=weaviate
  344. # The Weaviate endpoint URL. Only available when VECTOR_STORE is `weaviate`.
  345. WEAVIATE_ENDPOINT=http://weaviate:8080
  346. WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  347. # The Qdrant endpoint URL. Only available when VECTOR_STORE is `qdrant`.
  348. QDRANT_URL=http://qdrant:6333
  349. QDRANT_API_KEY=difyai123456
  350. QDRANT_CLIENT_TIMEOUT=20
  351. QDRANT_GRPC_ENABLED=false
  352. QDRANT_GRPC_PORT=6334
  353. QDRANT_REPLICATION_FACTOR=1
  354. # Milvus configuration. Only available when VECTOR_STORE is `milvus`.
  355. # The milvus uri.
  356. MILVUS_URI=http://host.docker.internal:19530
  357. MILVUS_DATABASE=
  358. MILVUS_TOKEN=
  359. MILVUS_USER=
  360. MILVUS_PASSWORD=
  361. MILVUS_ENABLE_HYBRID_SEARCH=False
  362. MILVUS_ANALYZER_PARAMS=
  363. # MyScale configuration, only available when VECTOR_STORE is `myscale`
  364. # For multi-language support, please set MYSCALE_FTS_PARAMS with referring to:
  365. # https://myscale.com/docs/en/text-search/#understanding-fts-index-parameters
  366. MYSCALE_HOST=myscale
  367. MYSCALE_PORT=8123
  368. MYSCALE_USER=default
  369. MYSCALE_PASSWORD=
  370. MYSCALE_DATABASE=dify
  371. MYSCALE_FTS_PARAMS=
  372. # Couchbase configurations, only available when VECTOR_STORE is `couchbase`
  373. # The connection string must include hostname defined in the docker-compose file (couchbase-server in this case)
  374. COUCHBASE_CONNECTION_STRING=couchbase://couchbase-server
  375. COUCHBASE_USER=Administrator
  376. COUCHBASE_PASSWORD=password
  377. COUCHBASE_BUCKET_NAME=Embeddings
  378. COUCHBASE_SCOPE_NAME=_default
  379. # pgvector configurations, only available when VECTOR_STORE is `pgvector`
  380. PGVECTOR_HOST=pgvector
  381. PGVECTOR_PORT=5432
  382. PGVECTOR_USER=postgres
  383. PGVECTOR_PASSWORD=difyai123456
  384. PGVECTOR_DATABASE=dify
  385. PGVECTOR_MIN_CONNECTION=1
  386. PGVECTOR_MAX_CONNECTION=5
  387. PGVECTOR_PG_BIGM=false
  388. PGVECTOR_PG_BIGM_VERSION=1.2-20240606
  389. # vastbase configurations, only available when VECTOR_STORE is `vastbase`
  390. VASTBASE_HOST=vastbase
  391. VASTBASE_PORT=5432
  392. VASTBASE_USER=dify
  393. VASTBASE_PASSWORD=Difyai123456
  394. VASTBASE_DATABASE=dify
  395. VASTBASE_MIN_CONNECTION=1
  396. VASTBASE_MAX_CONNECTION=5
  397. # pgvecto-rs configurations, only available when VECTOR_STORE is `pgvecto-rs`
  398. PGVECTO_RS_HOST=pgvecto-rs
  399. PGVECTO_RS_PORT=5432
  400. PGVECTO_RS_USER=postgres
  401. PGVECTO_RS_PASSWORD=difyai123456
  402. PGVECTO_RS_DATABASE=dify
  403. # analyticdb configurations, only available when VECTOR_STORE is `analyticdb`
  404. ANALYTICDB_KEY_ID=your-ak
  405. ANALYTICDB_KEY_SECRET=your-sk
  406. ANALYTICDB_REGION_ID=cn-hangzhou
  407. ANALYTICDB_INSTANCE_ID=gp-ab123456
  408. ANALYTICDB_ACCOUNT=testaccount
  409. ANALYTICDB_PASSWORD=testpassword
  410. ANALYTICDB_NAMESPACE=dify
  411. ANALYTICDB_NAMESPACE_PASSWORD=difypassword
  412. ANALYTICDB_HOST=gp-test.aliyuncs.com
  413. ANALYTICDB_PORT=5432
  414. ANALYTICDB_MIN_CONNECTION=1
  415. ANALYTICDB_MAX_CONNECTION=5
  416. # TiDB vector configurations, only available when VECTOR_STORE is `tidb_vector`
  417. TIDB_VECTOR_HOST=tidb
  418. TIDB_VECTOR_PORT=4000
  419. TIDB_VECTOR_USER=
  420. TIDB_VECTOR_PASSWORD=
  421. TIDB_VECTOR_DATABASE=dify
  422. # Matrixone vector configurations.
  423. MATRIXONE_HOST=matrixone
  424. MATRIXONE_PORT=6001
  425. MATRIXONE_USER=dump
  426. MATRIXONE_PASSWORD=111
  427. MATRIXONE_DATABASE=dify
  428. # Tidb on qdrant configuration, only available when VECTOR_STORE is `tidb_on_qdrant`
  429. TIDB_ON_QDRANT_URL=http://127.0.0.1
  430. TIDB_ON_QDRANT_API_KEY=dify
  431. TIDB_ON_QDRANT_CLIENT_TIMEOUT=20
  432. TIDB_ON_QDRANT_GRPC_ENABLED=false
  433. TIDB_ON_QDRANT_GRPC_PORT=6334
  434. TIDB_PUBLIC_KEY=dify
  435. TIDB_PRIVATE_KEY=dify
  436. TIDB_API_URL=http://127.0.0.1
  437. TIDB_IAM_API_URL=http://127.0.0.1
  438. TIDB_REGION=regions/aws-us-east-1
  439. TIDB_PROJECT_ID=dify
  440. TIDB_SPEND_LIMIT=100
  441. # Chroma configuration, only available when VECTOR_STORE is `chroma`
  442. CHROMA_HOST=127.0.0.1
  443. CHROMA_PORT=8000
  444. CHROMA_TENANT=default_tenant
  445. CHROMA_DATABASE=default_database
  446. CHROMA_AUTH_PROVIDER=chromadb.auth.token_authn.TokenAuthClientProvider
  447. CHROMA_AUTH_CREDENTIALS=
  448. # Oracle configuration, only available when VECTOR_STORE is `oracle`
  449. ORACLE_USER=dify
  450. ORACLE_PASSWORD=dify
  451. ORACLE_DSN=oracle:1521/FREEPDB1
  452. ORACLE_CONFIG_DIR=/app/api/storage/wallet
  453. ORACLE_WALLET_LOCATION=/app/api/storage/wallet
  454. ORACLE_WALLET_PASSWORD=dify
  455. ORACLE_IS_AUTONOMOUS=false
  456. # relyt configurations, only available when VECTOR_STORE is `relyt`
  457. RELYT_HOST=db
  458. RELYT_PORT=5432
  459. RELYT_USER=postgres
  460. RELYT_PASSWORD=difyai123456
  461. RELYT_DATABASE=postgres
  462. # open search configuration, only available when VECTOR_STORE is `opensearch`
  463. OPENSEARCH_HOST=opensearch
  464. OPENSEARCH_PORT=9200
  465. OPENSEARCH_SECURE=true
  466. OPENSEARCH_VERIFY_CERTS=true
  467. OPENSEARCH_AUTH_METHOD=basic
  468. OPENSEARCH_USER=admin
  469. OPENSEARCH_PASSWORD=admin
  470. # If using AWS managed IAM, e.g. Managed Cluster or OpenSearch Serverless
  471. OPENSEARCH_AWS_REGION=ap-southeast-1
  472. OPENSEARCH_AWS_SERVICE=aoss
  473. # tencent vector configurations, only available when VECTOR_STORE is `tencent`
  474. TENCENT_VECTOR_DB_URL=http://127.0.0.1
  475. TENCENT_VECTOR_DB_API_KEY=dify
  476. TENCENT_VECTOR_DB_TIMEOUT=30
  477. TENCENT_VECTOR_DB_USERNAME=dify
  478. TENCENT_VECTOR_DB_DATABASE=dify
  479. TENCENT_VECTOR_DB_SHARD=1
  480. TENCENT_VECTOR_DB_REPLICAS=2
  481. TENCENT_VECTOR_DB_ENABLE_HYBRID_SEARCH=false
  482. # ElasticSearch configuration, only available when VECTOR_STORE is `elasticsearch`
  483. ELASTICSEARCH_HOST=0.0.0.0
  484. ELASTICSEARCH_PORT=9200
  485. ELASTICSEARCH_USERNAME=elastic
  486. ELASTICSEARCH_PASSWORD=elastic
  487. KIBANA_PORT=5601
  488. # baidu vector configurations, only available when VECTOR_STORE is `baidu`
  489. BAIDU_VECTOR_DB_ENDPOINT=http://127.0.0.1:5287
  490. BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS=30000
  491. BAIDU_VECTOR_DB_ACCOUNT=root
  492. BAIDU_VECTOR_DB_API_KEY=dify
  493. BAIDU_VECTOR_DB_DATABASE=dify
  494. BAIDU_VECTOR_DB_SHARD=1
  495. BAIDU_VECTOR_DB_REPLICAS=3
  496. # VikingDB configurations, only available when VECTOR_STORE is `vikingdb`
  497. VIKINGDB_ACCESS_KEY=your-ak
  498. VIKINGDB_SECRET_KEY=your-sk
  499. VIKINGDB_REGION=cn-shanghai
  500. VIKINGDB_HOST=api-vikingdb.xxx.volces.com
  501. VIKINGDB_SCHEMA=http
  502. VIKINGDB_CONNECTION_TIMEOUT=30
  503. VIKINGDB_SOCKET_TIMEOUT=30
  504. # Lindorm configuration, only available when VECTOR_STORE is `lindorm`
  505. LINDORM_URL=http://lindorm:30070
  506. LINDORM_USERNAME=lindorm
  507. LINDORM_PASSWORD=lindorm
  508. LINDORM_QUERY_TIMEOUT=1
  509. # OceanBase Vector configuration, only available when VECTOR_STORE is `oceanbase`
  510. OCEANBASE_VECTOR_HOST=oceanbase
  511. OCEANBASE_VECTOR_PORT=2881
  512. OCEANBASE_VECTOR_USER=root@test
  513. OCEANBASE_VECTOR_PASSWORD=difyai123456
  514. OCEANBASE_VECTOR_DATABASE=test
  515. OCEANBASE_CLUSTER_NAME=difyai
  516. OCEANBASE_MEMORY_LIMIT=6G
  517. OCEANBASE_ENABLE_HYBRID_SEARCH=false
  518. # opengauss configurations, only available when VECTOR_STORE is `opengauss`
  519. OPENGAUSS_HOST=opengauss
  520. OPENGAUSS_PORT=6600
  521. OPENGAUSS_USER=postgres
  522. OPENGAUSS_PASSWORD=Dify@123
  523. OPENGAUSS_DATABASE=dify
  524. OPENGAUSS_MIN_CONNECTION=1
  525. OPENGAUSS_MAX_CONNECTION=5
  526. OPENGAUSS_ENABLE_PQ=false
  527. # huawei cloud search service vector configurations, only available when VECTOR_STORE is `huawei_cloud`
  528. HUAWEI_CLOUD_HOSTS=https://127.0.0.1:9200
  529. HUAWEI_CLOUD_USER=admin
  530. HUAWEI_CLOUD_PASSWORD=admin
  531. # Upstash Vector configuration, only available when VECTOR_STORE is `upstash`
  532. UPSTASH_VECTOR_URL=https://xxx-vector.upstash.io
  533. UPSTASH_VECTOR_TOKEN=dify
  534. # TableStore Vector configuration
  535. # (only used when VECTOR_STORE is tablestore)
  536. TABLESTORE_ENDPOINT=https://instance-name.cn-hangzhou.ots.aliyuncs.com
  537. TABLESTORE_INSTANCE_NAME=instance-name
  538. TABLESTORE_ACCESS_KEY_ID=xxx
  539. TABLESTORE_ACCESS_KEY_SECRET=xxx
  540. # ------------------------------
  541. # Knowledge Configuration
  542. # ------------------------------
  543. # Upload file size limit, default 15M.
  544. UPLOAD_FILE_SIZE_LIMIT=15
  545. # The maximum number of files that can be uploaded at a time, default 5.
  546. UPLOAD_FILE_BATCH_LIMIT=5
  547. # ETL type, support: `dify`, `Unstructured`
  548. # `dify` Dify's proprietary file extraction scheme
  549. # `Unstructured` Unstructured.io file extraction scheme
  550. ETL_TYPE=dify
  551. # Unstructured API path and API key, needs to be configured when ETL_TYPE is Unstructured
  552. # Or using Unstructured for document extractor node for pptx.
  553. # For example: http://unstructured:8000/general/v0/general
  554. UNSTRUCTURED_API_URL=
  555. UNSTRUCTURED_API_KEY=
  556. SCARF_NO_ANALYTICS=true
  557. # ------------------------------
  558. # Model Configuration
  559. # ------------------------------
  560. # The maximum number of tokens allowed for prompt generation.
  561. # This setting controls the upper limit of tokens that can be used by the LLM
  562. # when generating a prompt in the prompt generation tool.
  563. # Default: 512 tokens.
  564. PROMPT_GENERATION_MAX_TOKENS=512
  565. # The maximum number of tokens allowed for code generation.
  566. # This setting controls the upper limit of tokens that can be used by the LLM
  567. # when generating code in the code generation tool.
  568. # Default: 1024 tokens.
  569. CODE_GENERATION_MAX_TOKENS=1024
  570. # Enable or disable plugin based token counting. If disabled, token counting will return 0.
  571. # This can improve performance by skipping token counting operations.
  572. # Default: false (disabled).
  573. PLUGIN_BASED_TOKEN_COUNTING_ENABLED=false
  574. # ------------------------------
  575. # Multi-modal Configuration
  576. # ------------------------------
  577. # The format of the image/video/audio/document sent when the multi-modal model is input,
  578. # the default is base64, optional url.
  579. # The delay of the call in url mode will be lower than that in base64 mode.
  580. # It is generally recommended to use the more compatible base64 mode.
  581. # 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.
  582. MULTIMODAL_SEND_FORMAT=base64
  583. # Upload image file size limit, default 10M.
  584. UPLOAD_IMAGE_FILE_SIZE_LIMIT=10
  585. # Upload video file size limit, default 100M.
  586. UPLOAD_VIDEO_FILE_SIZE_LIMIT=100
  587. # Upload audio file size limit, default 50M.
  588. UPLOAD_AUDIO_FILE_SIZE_LIMIT=50
  589. # ------------------------------
  590. # Sentry Configuration
  591. # Used for application monitoring and error log tracking.
  592. # ------------------------------
  593. SENTRY_DSN=
  594. # API Service Sentry DSN address, default is empty, when empty,
  595. # all monitoring information is not reported to Sentry.
  596. # If not set, Sentry error reporting will be disabled.
  597. API_SENTRY_DSN=
  598. # API Service The reporting ratio of Sentry events, if it is 0.01, it is 1%.
  599. API_SENTRY_TRACES_SAMPLE_RATE=1.0
  600. # API Service The reporting ratio of Sentry profiles, if it is 0.01, it is 1%.
  601. API_SENTRY_PROFILES_SAMPLE_RATE=1.0
  602. # Web Service Sentry DSN address, default is empty, when empty,
  603. # all monitoring information is not reported to Sentry.
  604. # If not set, Sentry error reporting will be disabled.
  605. WEB_SENTRY_DSN=
  606. # ------------------------------
  607. # Notion Integration Configuration
  608. # Variables can be obtained by applying for Notion integration: https://www.notion.so/my-integrations
  609. # ------------------------------
  610. # Configure as "public" or "internal".
  611. # Since Notion's OAuth redirect URL only supports HTTPS,
  612. # if deploying locally, please use Notion's internal integration.
  613. NOTION_INTEGRATION_TYPE=public
  614. # Notion OAuth client secret (used for public integration type)
  615. NOTION_CLIENT_SECRET=
  616. # Notion OAuth client id (used for public integration type)
  617. NOTION_CLIENT_ID=
  618. # Notion internal integration secret.
  619. # If the value of NOTION_INTEGRATION_TYPE is "internal",
  620. # you need to configure this variable.
  621. NOTION_INTERNAL_SECRET=
  622. # ------------------------------
  623. # Mail related configuration
  624. # ------------------------------
  625. # Mail type, support: resend, smtp, sendgrid
  626. MAIL_TYPE=resend
  627. # Default send from email address, if not specified
  628. # If using SendGrid, use the 'from' field for authentication if necessary.
  629. MAIL_DEFAULT_SEND_FROM=
  630. # API-Key for the Resend email provider, used when MAIL_TYPE is `resend`.
  631. RESEND_API_URL=https://api.resend.com
  632. RESEND_API_KEY=your-resend-api-key
  633. # SMTP server configuration, used when MAIL_TYPE is `smtp`
  634. SMTP_SERVER=
  635. SMTP_PORT=465
  636. SMTP_USERNAME=
  637. SMTP_PASSWORD=
  638. SMTP_USE_TLS=true
  639. SMTP_OPPORTUNISTIC_TLS=false
  640. # Sendgid configuration
  641. SENDGRID_API_KEY=
  642. # ------------------------------
  643. # Others Configuration
  644. # ------------------------------
  645. # Maximum length of segmentation tokens for indexing
  646. INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH=4000
  647. # Member invitation link valid time (hours),
  648. # Default: 72.
  649. INVITE_EXPIRY_HOURS=72
  650. # Reset password token valid time (minutes),
  651. RESET_PASSWORD_TOKEN_EXPIRY_MINUTES=5
  652. # The sandbox service endpoint.
  653. CODE_EXECUTION_ENDPOINT=http://sandbox:8194
  654. CODE_EXECUTION_API_KEY=dify-sandbox
  655. CODE_MAX_NUMBER=9223372036854775807
  656. CODE_MIN_NUMBER=-9223372036854775808
  657. CODE_MAX_DEPTH=5
  658. CODE_MAX_PRECISION=20
  659. CODE_MAX_STRING_LENGTH=80000
  660. CODE_MAX_STRING_ARRAY_LENGTH=30
  661. CODE_MAX_OBJECT_ARRAY_LENGTH=30
  662. CODE_MAX_NUMBER_ARRAY_LENGTH=1000
  663. CODE_EXECUTION_CONNECT_TIMEOUT=10
  664. CODE_EXECUTION_READ_TIMEOUT=60
  665. CODE_EXECUTION_WRITE_TIMEOUT=10
  666. TEMPLATE_TRANSFORM_MAX_LENGTH=80000
  667. # Workflow runtime configuration
  668. WORKFLOW_MAX_EXECUTION_STEPS=500
  669. WORKFLOW_MAX_EXECUTION_TIME=1200
  670. WORKFLOW_CALL_MAX_DEPTH=5
  671. MAX_VARIABLE_SIZE=204800
  672. WORKFLOW_PARALLEL_DEPTH_LIMIT=3
  673. WORKFLOW_FILE_UPLOAD_LIMIT=10
  674. # Workflow storage configuration
  675. # Options: rdbms, hybrid
  676. # rdbms: Use only the relational database (default)
  677. # hybrid: Save new data to object storage, read from both object storage and RDBMS
  678. WORKFLOW_NODE_EXECUTION_STORAGE=rdbms
  679. # Repository configuration
  680. # Core workflow execution repository implementation
  681. CORE_WORKFLOW_EXECUTION_REPOSITORY=core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository
  682. # Core workflow node execution repository implementation
  683. CORE_WORKFLOW_NODE_EXECUTION_REPOSITORY=core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository
  684. # API workflow node execution repository implementation
  685. API_WORKFLOW_NODE_EXECUTION_REPOSITORY=repositories.sqlalchemy_api_workflow_node_execution_repository.DifyAPISQLAlchemyWorkflowNodeExecutionRepository
  686. # API workflow run repository implementation
  687. API_WORKFLOW_RUN_REPOSITORY=repositories.sqlalchemy_api_workflow_run_repository.DifyAPISQLAlchemyWorkflowRunRepository
  688. # HTTP request node in workflow configuration
  689. HTTP_REQUEST_NODE_MAX_BINARY_SIZE=10485760
  690. HTTP_REQUEST_NODE_MAX_TEXT_SIZE=1048576
  691. HTTP_REQUEST_NODE_SSL_VERIFY=True
  692. # Respect X-* headers to redirect clients
  693. RESPECT_XFORWARD_HEADERS_ENABLED=false
  694. # SSRF Proxy server HTTP URL
  695. SSRF_PROXY_HTTP_URL=http://ssrf_proxy:3128
  696. # SSRF Proxy server HTTPS URL
  697. SSRF_PROXY_HTTPS_URL=http://ssrf_proxy:3128
  698. # Maximum loop count in the workflow
  699. LOOP_NODE_MAX_COUNT=100
  700. # The maximum number of tools that can be used in the agent.
  701. MAX_TOOLS_NUM=10
  702. # Maximum number of Parallelism branches in the workflow
  703. MAX_PARALLEL_LIMIT=10
  704. # The maximum number of iterations for agent setting
  705. MAX_ITERATIONS_NUM=99
  706. # ------------------------------
  707. # Environment Variables for web Service
  708. # ------------------------------
  709. # The timeout for the text generation in millisecond
  710. TEXT_GENERATION_TIMEOUT_MS=60000
  711. # Allow rendering unsafe URLs which have "data:" scheme.
  712. ALLOW_UNSAFE_DATA_SCHEME=false
  713. # ------------------------------
  714. # Environment Variables for db Service
  715. # ------------------------------
  716. # The name of the default postgres user.
  717. POSTGRES_USER=${DB_USERNAME}
  718. # The password for the default postgres user.
  719. POSTGRES_PASSWORD=${DB_PASSWORD}
  720. # The name of the default postgres database.
  721. POSTGRES_DB=${DB_DATABASE}
  722. # postgres data directory
  723. PGDATA=/var/lib/postgresql/data/pgdata
  724. # ------------------------------
  725. # Environment Variables for sandbox Service
  726. # ------------------------------
  727. # The API key for the sandbox service
  728. SANDBOX_API_KEY=dify-sandbox
  729. # The mode in which the Gin framework runs
  730. SANDBOX_GIN_MODE=release
  731. # The timeout for the worker in seconds
  732. SANDBOX_WORKER_TIMEOUT=15
  733. # Enable network for the sandbox service
  734. SANDBOX_ENABLE_NETWORK=true
  735. # HTTP proxy URL for SSRF protection
  736. SANDBOX_HTTP_PROXY=http://ssrf_proxy:3128
  737. # HTTPS proxy URL for SSRF protection
  738. SANDBOX_HTTPS_PROXY=http://ssrf_proxy:3128
  739. # The port on which the sandbox service runs
  740. SANDBOX_PORT=8194
  741. # ------------------------------
  742. # Environment Variables for weaviate Service
  743. # (only used when VECTOR_STORE is weaviate)
  744. # ------------------------------
  745. WEAVIATE_PERSISTENCE_DATA_PATH=/var/lib/weaviate
  746. WEAVIATE_QUERY_DEFAULTS_LIMIT=25
  747. WEAVIATE_AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true
  748. WEAVIATE_DEFAULT_VECTORIZER_MODULE=none
  749. WEAVIATE_CLUSTER_HOSTNAME=node1
  750. WEAVIATE_AUTHENTICATION_APIKEY_ENABLED=true
  751. WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  752. WEAVIATE_AUTHENTICATION_APIKEY_USERS=hello@dify.ai
  753. WEAVIATE_AUTHORIZATION_ADMINLIST_ENABLED=true
  754. WEAVIATE_AUTHORIZATION_ADMINLIST_USERS=hello@dify.ai
  755. # ------------------------------
  756. # Environment Variables for Chroma
  757. # (only used when VECTOR_STORE is chroma)
  758. # ------------------------------
  759. # Authentication credentials for Chroma server
  760. CHROMA_SERVER_AUTHN_CREDENTIALS=difyai123456
  761. # Authentication provider for Chroma server
  762. CHROMA_SERVER_AUTHN_PROVIDER=chromadb.auth.token_authn.TokenAuthenticationServerProvider
  763. # Persistence setting for Chroma server
  764. CHROMA_IS_PERSISTENT=TRUE
  765. # ------------------------------
  766. # Environment Variables for Oracle Service
  767. # (only used when VECTOR_STORE is oracle)
  768. # ------------------------------
  769. ORACLE_PWD=Dify123456
  770. ORACLE_CHARACTERSET=AL32UTF8
  771. # ------------------------------
  772. # Environment Variables for milvus Service
  773. # (only used when VECTOR_STORE is milvus)
  774. # ------------------------------
  775. # ETCD configuration for auto compaction mode
  776. ETCD_AUTO_COMPACTION_MODE=revision
  777. # ETCD configuration for auto compaction retention in terms of number of revisions
  778. ETCD_AUTO_COMPACTION_RETENTION=1000
  779. # ETCD configuration for backend quota in bytes
  780. ETCD_QUOTA_BACKEND_BYTES=4294967296
  781. # ETCD configuration for the number of changes before triggering a snapshot
  782. ETCD_SNAPSHOT_COUNT=50000
  783. # MinIO access key for authentication
  784. MINIO_ACCESS_KEY=minioadmin
  785. # MinIO secret key for authentication
  786. MINIO_SECRET_KEY=minioadmin
  787. # ETCD service endpoints
  788. ETCD_ENDPOINTS=etcd:2379
  789. # MinIO service address
  790. MINIO_ADDRESS=minio:9000
  791. # Enable or disable security authorization
  792. MILVUS_AUTHORIZATION_ENABLED=true
  793. # ------------------------------
  794. # Environment Variables for pgvector / pgvector-rs Service
  795. # (only used when VECTOR_STORE is pgvector / pgvector-rs)
  796. # ------------------------------
  797. PGVECTOR_PGUSER=postgres
  798. # The password for the default postgres user.
  799. PGVECTOR_POSTGRES_PASSWORD=difyai123456
  800. # The name of the default postgres database.
  801. PGVECTOR_POSTGRES_DB=dify
  802. # postgres data directory
  803. PGVECTOR_PGDATA=/var/lib/postgresql/data/pgdata
  804. # ------------------------------
  805. # Environment Variables for opensearch
  806. # (only used when VECTOR_STORE is opensearch)
  807. # ------------------------------
  808. OPENSEARCH_DISCOVERY_TYPE=single-node
  809. OPENSEARCH_BOOTSTRAP_MEMORY_LOCK=true
  810. OPENSEARCH_JAVA_OPTS_MIN=512m
  811. OPENSEARCH_JAVA_OPTS_MAX=1024m
  812. OPENSEARCH_INITIAL_ADMIN_PASSWORD=Qazwsxedc!@#123
  813. OPENSEARCH_MEMLOCK_SOFT=-1
  814. OPENSEARCH_MEMLOCK_HARD=-1
  815. OPENSEARCH_NOFILE_SOFT=65536
  816. OPENSEARCH_NOFILE_HARD=65536
  817. # ------------------------------
  818. # Environment Variables for Nginx reverse proxy
  819. # ------------------------------
  820. NGINX_SERVER_NAME=_
  821. NGINX_HTTPS_ENABLED=false
  822. # HTTP port
  823. NGINX_PORT=80
  824. # SSL settings are only applied when HTTPS_ENABLED is true
  825. NGINX_SSL_PORT=443
  826. # if HTTPS_ENABLED is true, you're required to add your own SSL certificates/keys to the `./nginx/ssl` directory
  827. # and modify the env vars below accordingly.
  828. NGINX_SSL_CERT_FILENAME=dify.crt
  829. NGINX_SSL_CERT_KEY_FILENAME=dify.key
  830. NGINX_SSL_PROTOCOLS=TLSv1.1 TLSv1.2 TLSv1.3
  831. # Nginx performance tuning
  832. NGINX_WORKER_PROCESSES=auto
  833. NGINX_CLIENT_MAX_BODY_SIZE=100M
  834. NGINX_KEEPALIVE_TIMEOUT=65
  835. # Proxy settings
  836. NGINX_PROXY_READ_TIMEOUT=3600s
  837. NGINX_PROXY_SEND_TIMEOUT=3600s
  838. # Set true to accept requests for /.well-known/acme-challenge/
  839. NGINX_ENABLE_CERTBOT_CHALLENGE=false
  840. # ------------------------------
  841. # Certbot Configuration
  842. # ------------------------------
  843. # Email address (required to get certificates from Let's Encrypt)
  844. CERTBOT_EMAIL=your_email@example.com
  845. # Domain name
  846. CERTBOT_DOMAIN=your_domain.com
  847. # certbot command options
  848. # i.e: --force-renewal --dry-run --test-cert --debug
  849. CERTBOT_OPTIONS=
  850. # ------------------------------
  851. # Environment Variables for SSRF Proxy
  852. # ------------------------------
  853. SSRF_HTTP_PORT=3128
  854. SSRF_COREDUMP_DIR=/var/spool/squid
  855. SSRF_REVERSE_PROXY_PORT=8194
  856. SSRF_SANDBOX_HOST=sandbox
  857. SSRF_DEFAULT_TIME_OUT=5
  858. SSRF_DEFAULT_CONNECT_TIME_OUT=5
  859. SSRF_DEFAULT_READ_TIME_OUT=5
  860. SSRF_DEFAULT_WRITE_TIME_OUT=5
  861. # ------------------------------
  862. # docker env var for specifying vector db type at startup
  863. # (based on the vector db type, the corresponding docker
  864. # compose profile will be used)
  865. # if you want to use unstructured, add ',unstructured' to the end
  866. # ------------------------------
  867. COMPOSE_PROFILES=${VECTOR_STORE:-weaviate}
  868. # ------------------------------
  869. # Docker Compose Service Expose Host Port Configurations
  870. # ------------------------------
  871. EXPOSE_NGINX_PORT=80
  872. EXPOSE_NGINX_SSL_PORT=443
  873. # ----------------------------------------------------------------------------
  874. # ModelProvider & Tool Position Configuration
  875. # Used to specify the model providers and tools that can be used in the app.
  876. # ----------------------------------------------------------------------------
  877. # Pin, include, and exclude tools
  878. # Use comma-separated values with no spaces between items.
  879. # Example: POSITION_TOOL_PINS=bing,google
  880. POSITION_TOOL_PINS=
  881. POSITION_TOOL_INCLUDES=
  882. POSITION_TOOL_EXCLUDES=
  883. # Pin, include, and exclude model providers
  884. # Use comma-separated values with no spaces between items.
  885. # Example: POSITION_PROVIDER_PINS=openai,openllm
  886. POSITION_PROVIDER_PINS=
  887. POSITION_PROVIDER_INCLUDES=
  888. POSITION_PROVIDER_EXCLUDES=
  889. # CSP https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
  890. CSP_WHITELIST=
  891. # Enable or disable create tidb service job
  892. CREATE_TIDB_SERVICE_JOB_ENABLED=false
  893. # Maximum number of submitted thread count in a ThreadPool for parallel node execution
  894. MAX_SUBMIT_COUNT=100
  895. # The maximum number of top-k value for RAG.
  896. TOP_K_MAX_VALUE=10
  897. # ------------------------------
  898. # Plugin Daemon Configuration
  899. # ------------------------------
  900. DB_PLUGIN_DATABASE=dify_plugin
  901. EXPOSE_PLUGIN_DAEMON_PORT=5002
  902. PLUGIN_DAEMON_PORT=5002
  903. PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi
  904. PLUGIN_DAEMON_URL=http://plugin_daemon:5002
  905. PLUGIN_MAX_PACKAGE_SIZE=52428800
  906. PLUGIN_PPROF_ENABLED=false
  907. PLUGIN_DEBUGGING_HOST=0.0.0.0
  908. PLUGIN_DEBUGGING_PORT=5003
  909. EXPOSE_PLUGIN_DEBUGGING_HOST=localhost
  910. EXPOSE_PLUGIN_DEBUGGING_PORT=5003
  911. # If this key is changed, DIFY_INNER_API_KEY in plugin_daemon service must also be updated or agent node will fail.
  912. PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1
  913. PLUGIN_DIFY_INNER_API_URL=http://api:5001
  914. ENDPOINT_URL_TEMPLATE=http://localhost/e/{hook_id}
  915. MARKETPLACE_ENABLED=true
  916. MARKETPLACE_API_URL=https://marketplace.dify.ai
  917. FORCE_VERIFYING_SIGNATURE=true
  918. PLUGIN_PYTHON_ENV_INIT_TIMEOUT=120
  919. PLUGIN_MAX_EXECUTION_TIMEOUT=600
  920. # PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple
  921. PIP_MIRROR_URL=
  922. # https://github.com/langgenius/dify-plugin-daemon/blob/main/.env.example
  923. # Plugin storage type, local aws_s3 tencent_cos azure_blob aliyun_oss volcengine_tos
  924. PLUGIN_STORAGE_TYPE=local
  925. PLUGIN_STORAGE_LOCAL_ROOT=/app/storage
  926. PLUGIN_WORKING_PATH=/app/storage/cwd
  927. PLUGIN_INSTALLED_PATH=plugin
  928. PLUGIN_PACKAGE_CACHE_PATH=plugin_packages
  929. PLUGIN_MEDIA_CACHE_PATH=assets
  930. # Plugin oss bucket
  931. PLUGIN_STORAGE_OSS_BUCKET=
  932. # Plugin oss s3 credentials
  933. PLUGIN_S3_USE_AWS=false
  934. PLUGIN_S3_USE_AWS_MANAGED_IAM=false
  935. PLUGIN_S3_ENDPOINT=
  936. PLUGIN_S3_USE_PATH_STYLE=false
  937. PLUGIN_AWS_ACCESS_KEY=
  938. PLUGIN_AWS_SECRET_KEY=
  939. PLUGIN_AWS_REGION=
  940. # Plugin oss azure blob
  941. PLUGIN_AZURE_BLOB_STORAGE_CONTAINER_NAME=
  942. PLUGIN_AZURE_BLOB_STORAGE_CONNECTION_STRING=
  943. # Plugin oss tencent cos
  944. PLUGIN_TENCENT_COS_SECRET_KEY=
  945. PLUGIN_TENCENT_COS_SECRET_ID=
  946. PLUGIN_TENCENT_COS_REGION=
  947. # Plugin oss aliyun oss
  948. PLUGIN_ALIYUN_OSS_REGION=
  949. PLUGIN_ALIYUN_OSS_ENDPOINT=
  950. PLUGIN_ALIYUN_OSS_ACCESS_KEY_ID=
  951. PLUGIN_ALIYUN_OSS_ACCESS_KEY_SECRET=
  952. PLUGIN_ALIYUN_OSS_AUTH_VERSION=v4
  953. PLUGIN_ALIYUN_OSS_PATH=
  954. # Plugin oss volcengine tos
  955. PLUGIN_VOLCENGINE_TOS_ENDPOINT=
  956. PLUGIN_VOLCENGINE_TOS_ACCESS_KEY=
  957. PLUGIN_VOLCENGINE_TOS_SECRET_KEY=
  958. PLUGIN_VOLCENGINE_TOS_REGION=
  959. # ------------------------------
  960. # OTLP Collector Configuration
  961. # ------------------------------
  962. ENABLE_OTEL=false
  963. OTLP_BASE_ENDPOINT=http://localhost:4318
  964. OTLP_API_KEY=
  965. OTEL_EXPORTER_OTLP_PROTOCOL=
  966. OTEL_EXPORTER_TYPE=otlp
  967. OTEL_SAMPLING_RATE=0.1
  968. OTEL_BATCH_EXPORT_SCHEDULE_DELAY=5000
  969. OTEL_MAX_QUEUE_SIZE=2048
  970. OTEL_MAX_EXPORT_BATCH_SIZE=512
  971. OTEL_METRIC_EXPORT_INTERVAL=60000
  972. OTEL_BATCH_EXPORT_TIMEOUT=10000
  973. OTEL_METRIC_EXPORT_TIMEOUT=30000
  974. # Prevent Clickjacking
  975. ALLOW_EMBED=false
  976. # Dataset queue monitor configuration
  977. QUEUE_MONITOR_THRESHOLD=200
  978. # You can configure multiple ones, separated by commas. eg: test1@dify.ai,test2@dify.ai
  979. QUEUE_MONITOR_ALERT_EMAILS=
  980. # Monitor interval in minutes, default is 30 minutes
  981. QUEUE_MONITOR_INTERVAL=30