mirror of
https://github.com/labring/FastGPT.git
synced 2026-01-28 01:10:33 +08:00
* feat: migrate chat files to s3 (#5802) * feat: migrate chat files to s3 * feat: add delete jobs for deleting s3 files * chore: improvements * fix: lockfile * fix: imports * feat: add ttl for those uploaded files but not send yet * feat: init bullmq worker * fix: s3 key * perf: s3 internal url * remove env * fix: re-sign a new url * fix: re-sign a new url * perf: s3 code --------- Co-authored-by: archer <545436317@qq.com> * update pacakge * feat: add more file type for uploading (#5807) * fix: re-sign a new url * wip: file selector * feat: add more file type for uploading * feat: migrate chat files to s3 (#5802) * feat: migrate chat files to s3 * feat: add delete jobs for deleting s3 files * chore: improvements * fix: lockfile * fix: imports * feat: add ttl for those uploaded files but not send yet * feat: init bullmq worker * fix: s3 key * perf: s3 internal url * remove env * fix: re-sign a new url * fix: re-sign a new url * perf: s3 code --------- Co-authored-by: archer <545436317@qq.com> * fix: limit minmax available file upload number * perf: file select modal code * fix: fileselect refresh * fix: ts --------- Co-authored-by: archer <545436317@qq.com> * bugfix: chat page (#5809) * fix: upload avatar * fix: chat page username display issue and setting button visibility * doc * Markdown match base64 performance * feat: improve global variables(time, file, dataset) (#5804) * feat: improve global variables(time, file, dataset) * feat: optimize code * perf: time variables code * fix: model, file * fix: hide file upload * fix: ts * hide dataset select --------- Co-authored-by: archer <545436317@qq.com> * perf: insert training queue * perf: s3 upload error i18n * fix: share page s3 * fix: timeselector ui error * var update node * Timepicker ui * feat: plugin support password * fix: password disabled UX * fix: button size * fix: no model cache for chat page (#5820) * rename function * fix: workflow bug * fix: interactive loop * fix test * perf: common textare no richtext * move system plugin config (#5803) (#5813) * move system plugin config (#5803) * move system plugin config * extract tag bar * filter * tool detail temp * marketplace * params * fix * type * search * tags render * status * ui * code * connect to backend (#5815) * feat: marketplace apis & type definitions (#5817) * chore: marketplace init * chore: marketplace list api type * chore: detail api * marketplace & import * feat: marketplace ui (#5826) * temp * marketplace * import * feat: detail return readme * chore: cache data expire 10 mins * chore: update docs * feat: marketplace ui --------- Co-authored-by: heheer <zhiyu44@qq.com> * feat: marketplace (#5830) * temp * marketplace * chore: tool list tag filter * chore: adjust --------- Co-authored-by: heheer <zhiyu44@qq.com> * tool detail drawer * remove tag filter * fix * fix * fix build * update pnpm-lock * fix type * perf code * marketplace router * fix build * navbar icon * fix ui * fix init * docs: marketplace/plugin (#5832) * temp * marketplace * docs(plugin): system tool docs --------- Co-authored-by: heheer <zhiyu44@qq.com> * default url * feat: i18n/ docker build (#5833) * chore: docker build * feat: i18n selector * fix * fix * fix: i18n parse * fix: i18n parse --------- Co-authored-by: heheer <heheer@sealos.io> Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com> Co-authored-by: heheer <zhiyu44@qq.com> * marketplace url * update action * market place code * market place code * title * fix: nextconfig * fix: copilot review * Remove bypassable regex-based XSS sanitization from marketplace search (#5835) * Initial plan * Remove problematic regex-based XSS sanitization from search inputs Co-authored-by: c121914yu <50446880+c121914yu@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: c121914yu <50446880+c121914yu@users.noreply.github.com> * feat: tool tag openapi * api check * fix: tsc * fix: ts * fix: lock * sdk version * ts * sdk version * remove invalid tip * perf: export data add timezone * perf: admin plugin api move * perf: tool code * move tag code * perf: marketplace and team plugin code * remove workflow invalid request * rename global tool code * rename global tool code * rename api * fix some bugs (#5841) * fix some bugs * fix * perf: Tag filter * fix: ts * fix: ts --------- Co-authored-by: archer <545436317@qq.com> * perf: Concat function * fix: workflow snapshot push * fix: ts type * fix: login to config/* * fix: ts * fix: model avatar (#5848) * fix: model avatar * fix: ts * fix: avatar migration to s3 * update lock * fix: avatar redirect --------- Co-authored-by: archer <545436317@qq.com> * fix tool detail (#5847) * fix tool detail * init script * fix build * perf: plugin detail modal * change tooltags to tags * fix icon --------- Co-authored-by: archer <545436317@qq.com> * fix tag filter scroll (#5852) * fix create app plugin & import info (#5853) * tag size * rename toolkit * download url * import plugin status (#5854) * init doc * fix: init shell --------- Co-authored-by: 伍闲犬 <whoeverimf5@gmail.com> Co-authored-by: Zeng Qingwen <143274079+fishwww-ww@users.noreply.github.com> Co-authored-by: heheer <heheer@sealos.io> Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com> Co-authored-by: heheer <zhiyu44@qq.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
115 lines
3.5 KiB
Plaintext
115 lines
3.5 KiB
Plaintext
LOG_DEPTH=3
|
||
# 默认用户密码,用户名为 root,每次重启时会自动更新。
|
||
DEFAULT_ROOT_PSW=123456
|
||
# 数据库最大连接数
|
||
DB_MAX_LINK=5
|
||
TOKEN_KEY=fastgpt
|
||
# 文件阅读时的密钥
|
||
FILE_TOKEN_KEY=filetokenkey
|
||
# 密钥加密key
|
||
AES256_SECRET_KEY=fastgptsecret
|
||
# root key, 最高权限
|
||
ROOT_KEY=fdafasd
|
||
# 强制将图片转成 base64 传递给模型
|
||
MULTIPLE_DATA_TO_BASE64=true
|
||
|
||
# 临时解决-emb 模型单次并发量
|
||
EMBEDDING_CHUNK_SIZE=10
|
||
|
||
# 是否隐藏版权信息配置,只有值为 'true' 时隐藏
|
||
HIDE_CHAT_COPYRIGHT_SETTING=
|
||
|
||
# Service url
|
||
# 商业版地址
|
||
# PRO_URL=
|
||
# Plugin
|
||
PLUGIN_BASE_URL=http://localhost:3003
|
||
PLUGIN_TOKEN=token
|
||
# code sandbox url
|
||
SANDBOX_URL=http://localhost:3002
|
||
# ai proxy api
|
||
AIPROXY_API_ENDPOINT=https://localhost:3010
|
||
AIPROXY_API_TOKEN=aiproxy
|
||
# OpenAI Base URL
|
||
# OPENAI_BASE_URL=https://api.openai.com/v1
|
||
# CHAT_API_KEY=sk-xxxx
|
||
|
||
# S3 Config
|
||
S3_EXTERNAL_BASE_URL=
|
||
S3_ENDPOINT=localhost
|
||
S3_PORT=9000
|
||
S3_USE_SSL=false
|
||
S3_ACCESS_KEY=minioadmin
|
||
S3_SECRET_KEY=minioadmin
|
||
S3_PUBLIC_BUCKET=fastgpt-public # 插件文件存储公开桶
|
||
S3_PRIVATE_BUCKET=fastgpt-private # 插件文件存储公开桶
|
||
|
||
# Redis URL
|
||
REDIS_URL=redis://default:mypassword@127.0.0.1:6379
|
||
# mongo 数据库连接参数,本地开发连接远程数据库时,可能需要增加 directConnection=true 参数,才能连接上。
|
||
MONGODB_URI="mongodb://myusername:mypassword@localhost:27017/fastgpt?authSource=admin&directConnection=true"
|
||
# 日志库
|
||
MONGODB_LOG_URI="mongodb://myusername:mypassword@localhost:27017/fastgpt?authSource=admin&directConnection=true"
|
||
# 向量库优先级: pg > oceanbase > milvus
|
||
# PG 向量库连接参数
|
||
PG_URL=postgresql://username:password@localhost:5432/postgres
|
||
# OceanBase 向量库连接参数
|
||
# OCEANBASE_URL=
|
||
# # milvus 向量库连接参数
|
||
# MILVUS_ADDRESS=
|
||
# MILVUS_TOKEN=
|
||
|
||
|
||
# 页面的地址,用于自动补全相对路径资源的 domain,注意后面不要跟 /
|
||
FE_DOMAIN=http://localhost:3000
|
||
# 文件域名,也是指向 FastGPT 服务,但是如果希望内容足够安全,可以独立分配一个域名,避免高危文件读取到主域名的内容。
|
||
FILE_DOMAIN=http://localhost:3000
|
||
# 二级路由,需要打包时候就确定
|
||
# NEXT_PUBLIC_BASE_URL=/fastai
|
||
|
||
# 日志等级: debug, info, warn, error
|
||
LOG_LEVEL=debug
|
||
STORE_LOG_LEVEL=warn
|
||
|
||
# Signoz
|
||
SIGNOZ_BASE_URL=
|
||
SIGNOZ_SERVICE_NAME=
|
||
SIGNOZ_STORE_LEVEL=warn
|
||
|
||
# 插件市场
|
||
MARKETPLACE_URL=https://marketplace.fastgpt.cn
|
||
|
||
# 安全配置
|
||
# 启动 IP 限流(true),部分接口增加了 ip 限流策略,防止非正常请求操作。
|
||
USE_IP_LIMIT=false
|
||
# 工作流最大运行次数,避免极端的死循环情况
|
||
WORKFLOW_MAX_RUN_TIMES=500
|
||
# 循环最大运行次数,避免极端的死循环情况
|
||
WORKFLOW_MAX_LOOP_TIMES=50
|
||
# 服务器接收请求,最大大小,单位 MB
|
||
SERVICE_REQUEST_MAX_CONTENT_LENGTH=10
|
||
# 启用内网 IP 检查
|
||
CHECK_INTERNAL_IP=false
|
||
# 密码错误锁时长:s
|
||
PASSWORD_LOGIN_LOCK_SECONDS=
|
||
# 密码过期月份,不设置则不会过期
|
||
PASSWORD_EXPIRED_MONTH=
|
||
# 最大登录客户端数量,默认为 10
|
||
MAX_LOGIN_SESSION=
|
||
|
||
# 特殊配置
|
||
# 自定义跨域,不配置时,默认都允许跨域(逗号分割)
|
||
ALLOWED_ORIGINS=
|
||
# 是否展示兑换码功能
|
||
SHOW_COUPON=false
|
||
# 自定义 config.json 路径
|
||
CONFIG_JSON_PATH=
|
||
|
||
# 对话日志推送服务
|
||
# # 日志服务地址
|
||
# CHAT_LOG_URL=http://localhost:8080
|
||
# # 日志推送间隔
|
||
# CHAT_LOG_INTERVAL=10000
|
||
# # 日志来源ID前缀
|
||
# CHAT_LOG_SOURCE_ID_PREFIX=fastgpt-
|