Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
965ad342
authored
Jun 23, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs
parent
986206b6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
client/.env.template
+6
-4
docs/deploy/fastgpt/docker-compose.yml
+4
-1
docs/deploy/one-api/sealos.md
+2
-0
No files found.
client/.env.template
View file @
965ad342
...
...
@@ -17,10 +17,12 @@ aliTemplateCode=xxxx
TOKEN_KEY=dfdasfdas
# root key, 最高权限
ROOT_KEY=fdafasd
# openai
# OPENAI_BASE_URL=http://ai.openai.com/v1
# OPENAI_BASE_URL_AUTH=可选安全凭证,会放到 header.auth 里
OPENAIKEY=sk-xxx
# 使用 oneapi
# ONEAPI_URL=https://xxxx.cloud.sealos.io/v1
# ONEAPI_KEY=sk-xxxx
# openai 的基本地址(国外的可以忽略,默认走 api.openai.com)。不用 oneapi 的话需要下面 2 个参数,用户的 key 也会走下面的参数
OPENAI_BASE_URL=https://xxxx.cloud.sealos.io/openai/v1
OPENAIKEY=sk-xxxx
# db
MONGODB_URI=mongodb://username:password@0.0.0.0:27017/?authSource=admin
MONGODB_NAME=fastgpt
...
...
docs/deploy/fastgpt/docker-compose.yml
View file @
965ad342
...
...
@@ -67,7 +67,10 @@ services:
-
PG_USER=fastgpt
-
PG_PASSWORD=1234
-
PG_DB_NAME=fastgpt
# openai, 推荐使用 one-api 管理key
# oneapi 配置 推荐使用 one-api 管理key
-
ONEAPI_URL=https://kfcwurtbijvh.cloud.sealos.io/v1
-
ONEAPI_KEY=sk-itJ9v8qthRiFDzfs62Ea21Aa9b004c8791937dCf4cC568Ff
# openai 相关配置:使用了 oneapi 后,下面只需要填下 OPENAI_BASE_URL (国外可全忽略)
-
OPENAIKEY=sk-xxxxx
-
OPENAI_BASE_URL=https://api.openai.com/v1
-
OPENAI_BASE_URL_AUTH=可选的安全凭证,会放到 header.auth 里
...
...
docs/deploy/one-api/sealos.md
View file @
965ad342
...
...
@@ -12,6 +12,8 @@ https://cloud.sealos.io/
## 4. 填写对应参数
镜像:ghcr.io/songquanpeng/one-api:latest

打开外网访问开关后,Sealos 会自动分配一个可访问的地址,不需要自己配置。
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment