document/content/docs/self-host/upgrading/4-12/4120.mdx
修改 FastGPT 商业版(fastgpt-pro) 环境变量:
# 文件阅读时的密钥,与 fastgpt 镜像中环境变量一致
FILE_TOKEN_KEY=filetokenkey
该脚本仅需商业版用户执行。
从任意终端,发起 1 个 HTTP 请求。其中 {{rootkey}} 替换成环境变量里的 rootkey;{{host}} 替换成FastGPT 域名。
curl --location --request POST 'https://{{host}}/api/admin/initv4120' \
--header 'rootkey: {{rootkey}}' \
--header 'Content-Type: application/json'
脚本功能